/* ===========================================
   咖团团 Katuantuan — Coffee Brand
   Apple-style minimal design
   =========================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei",
    sans-serif;
  color: #1d1d1f;
  background-color: #f5f5f7;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1d1d1f;
}

.nav-logo .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c47f56;
  margin-left: 2px;
  vertical-align: middle;
  margin-bottom: 4px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 160%;
  height: 200%;
  background: radial-gradient(
    ellipse at 60% 40%,
    rgba(196, 127, 86, 0.08) 0%,
    transparent 60%
  ),
  radial-gradient(
    ellipse at 30% 70%,
    rgba(139, 90, 43, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #c47f56;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #1d1d1f;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #c47f56, #8b5a2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  color: #86868b;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  background: #1d1d1f;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.hero-cta:hover {
  background: #3a3a3c;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-cta .arrow {
  transition: transform 0.25s ease;
}

.hero-cta:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Section Common ---------- */
.section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  color: #c47f56;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: #86868b;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Products Grid ---------- */
.products {
  max-width: 1200px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.product-image-wrap {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrap svg {
  width: 240px;
  height: 280px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image-wrap svg {
  transform: scale(1.06);
}

.product-info {
  padding: 24px 28px 28px;
}

.product-name {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.product-origin {
  font-size: 13px;
  font-weight: 500;
  color: #c47f56;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 14px;
  color: #86868b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: #f5f5f7;
  color: #6e6e73;
  letter-spacing: 0.3px;
}

/* ---------- Features ---------- */
.features {
  background: #fff;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 32px 24px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  font-size: 26px;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: #86868b;
  line-height: 1.6;
}

/* ---------- Story ---------- */
.story {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-visual {
  position: relative;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #faf6f0 0%, #f0e6d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-visual svg {
  width: 280px;
  height: 280px;
}

.story-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.story-text p {
  font-size: 17px;
  color: #86868b;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: #1d1d1f;
  color: #f5f5f7;
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-brand .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c47f56;
  margin-left: 2px;
  vertical-align: middle;
  margin-bottom: 3px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: #a1a1a6;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #6e6e73;
}

.footer-bottom p {
  margin: 0;
}

.footer-icp {
  margin-top: 6px;
  font-size: 12px;
  color: #86868b;
}

.footer-icp a {
  color: #86868b;
  text-decoration: none;
}

.footer-icp a:hover {
  text-decoration: underline;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-visual {
    height: 360px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .section {
    padding: 64px 16px;
  }

  .product-image-wrap {
    height: 260px;
  }

  .product-image-wrap svg {
    width: 180px;
    height: 220px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
