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

:root {
  --bg:      #07090f;
  --bg2:     #0d111b;
  --bg3:     #121826;
  --border:  rgba(255,255,255,0.07);
  --green:   #10b981;
  --blue:    #0ea5e9;
  --gold:    #f59e0b;
  --purple:  #8b5cf6;
  --text:    #e2e8f0;
  --muted:   #64748b;
  --subtle:  rgba(255,255,255,0.04);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--green);
  color: #07090f;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #0fca8f; transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 10px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: var(--subtle); }
.btn-ghost.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 10px; }

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,9,15,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--subtle); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background: var(--green);
  color: #07090f;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover { background: #0fca8f; }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.nav-mobile a {
  display: block;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--muted);
  border-radius: 6px;
}
.nav-mobile a:hover { background: var(--subtle); color: var(--text); }
.mobile-cta {
  margin-top: 8px;
  background: var(--green) !important;
  color: #07090f !important;
  font-weight: 600;
  text-align: center;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 30%, rgba(16,185,129,0.12) 0%, rgba(14,165,233,0.06) 50%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #f1f5f9;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-desc strong { color: var(--text); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  opacity: 0.9;
  filter: drop-shadow(0 0 60px rgba(16,185,129,0.25));
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13,17,27,0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  backdrop-filter: blur(8px);
}

.card-float-1 { bottom: 30px; left: -10px; }
.card-float-2 { top: 30px; right: -10px; }

.hcard-icon { font-size: 1.4rem; }
.hcard-label { font-size: 0.7rem; color: var(--muted); }
.hcard-value { font-size: 0.88rem; font-weight: 600; color: var(--text); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 8px 20px;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-num span { font-size: 1.3rem; }

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── SECTIONS ── */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg2);
}

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

.section-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.2);
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-green { background: rgba(16,185,129,0.12); color: var(--green); }
.icon-blue  { background: rgba(14,165,233,0.12);  color: var(--blue); }
.icon-gold  { background: rgba(245,158,11,0.12);  color: var(--gold); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.feature-list li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.7rem;
  top: 2px;
}

/* Split chart */
.split-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.split-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.split-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.split-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
}
.fill-blue   { background: var(--blue); }
.fill-gold   { background: var(--gold); }
.fill-purple { background: var(--purple); }
.split-pct { font-size: 0.72rem; text-align: right; color: var(--text); }

/* Tea types */
.tea-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tea-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}
.tea-tag.green  { color: #4ade80; border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.06); }
.tea-tag.white  { color: #e2e8f0; border-color: rgba(226,232,240,0.2); background: rgba(226,232,240,0.04); }
.tea-tag.yellow { color: var(--gold); border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.06); }
.tea-tag.oolong { color: #67e8f9; border-color: rgba(103,232,249,0.3); background: rgba(103,232,249,0.06); }
.tea-tag.black  { color: #f87171; border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.06); }
.tea-tag.dark   { color: #c084fc; border-color: rgba(192,132,252,0.3); background: rgba(192,132,252,0.06); }

/* Algo weights */
.algo-weights { display: flex; flex-direction: column; gap: 7px; }
.weight-row {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}
.weight-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.weight-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 2px;
}

/* NFT preview */
.nft-preview { margin-top: 8px; }
.nft-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(14,165,233,0.05));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  padding: 16px;
}
.nft-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(16,185,129,0.15);
  color: var(--green);
  font-size: 0.72rem;
  border-radius: 4px;
  margin-bottom: 8px;
}
.nft-id {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 4px;
}
.nft-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.nft-chain { font-size: 0.72rem; color: var(--green); }

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
}

.step-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 10px;
  line-height: 1.4;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.step-icon {
  font-size: 2rem;
  margin-top: 16px;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  padding: 0 16px;
  flex-shrink: 0;
}

/* ── PARTNERS ── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.partner-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.partner-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }

.partner-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #07090f;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
}

.partner-channel { border-color: rgba(245,158,11,0.2); }

.partner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.partner-emoji { font-size: 2rem; }

.partner-type {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.partner-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.partner-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.partner-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.partner-perks li { font-size: 0.82rem; color: var(--muted); }

.tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tier-pill {
  padding: 3px 10px;
  font-size: 0.72rem;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--gold);
  border-radius: 4px;
}

.partner-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.partner-btn:hover { border-color: rgba(255,255,255,0.2); background: var(--subtle); }

.partner-btn-primary {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
  color: var(--gold);
}
.partner-btn-primary:hover {
  background: rgba(245,158,11,0.18);
  border-color: rgba(245,158,11,0.5);
}

/* ── TRACEABILITY ── */
.trace-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

.trace-timeline-wrap {
  position: relative;
  padding-left: 32px;
}

.trace-line {
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), rgba(16,185,129,0.1));
}

.trace-node {
  position: relative;
  margin-bottom: 32px;
}

.trace-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg2);
  box-shadow: 0 0 12px rgba(16,185,129,0.5);
}

.trace-step-label {
  font-size: 0.7rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.trace-content h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.trace-content p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

.trace-cta-panel {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-mock {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.qr-inner {
  width: 96px;
  height: 96px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--muted);
}

.qr-label { font-size: 0.82rem; color: var(--muted); }

.chain-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}

.chain-badge-icon { font-size: 1.4rem; }
.chain-badge-title { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.chain-badge-sub { font-size: 0.75rem; color: var(--muted); }

/* ── CTA SECTION ── */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.footer-sub { font-size: 0.72rem; color: var(--muted); }

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

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-arrow { display: none; }
  .partners-grid { grid-template-columns: 1fr; }
  .trace-layout { grid-template-columns: 1fr; }
  .trace-cta-panel { position: static; }
  .stat-div { display: none; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
  .nav-mobile.open { display: flex; }
  .hero { padding: 100px 0 60px; }
  .section { padding: 64px 0; }
  .partner-card { padding: 24px 20px; }
  .feature-card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .split-row { grid-template-columns: 80px 1fr 44px; }
}
