/* ================================================
   Coupon Coin — Apple-inspired minimal landing page
   =============================================== */

:root {
  --navy:      #0a0a0c;
  --navy-deep: #06060a;
  --navy-2:    #13131a;
  --ink:       #1d1d1f;
  --ice:       #f5f5f7;
  --soft:      #fbfbfd;
  --line:      rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.08);
  --muted:     #6e6e73;
  --muted-d:   #86868b;
  --gold:      #e0b250;
  --gold-d:    #b8912f;
  --text:      #1d1d1f;
  --text-inv:  #f5f5f7;
  --accent:    #2e86ab;

  --max: 1200px;
  --pad: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ================== NAV ================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line);
  height: 56px;
}
.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.nav-logo img { width: 26px; height: 26px; border-radius: 50%; }
.nav-links {
  display: flex; gap: 32px; list-style: none;
  font-size: 13px; color: #333;
}
.nav-links a { transition: opacity .25s; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  background: var(--navy); color: #fff;
  transition: transform .25s, background .25s;
}
.nav-cta:hover { transform: translateY(-1px); background: #000; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ================== HERO ================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0a0c 0%, #14141c 100%);
  color: var(--text-inv);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px var(--pad) 80px;
}
.hero-bg-text {
  position: absolute;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(300px, 50vw, 900px);
  color: rgba(224, 178, 80, 0.04);
  line-height: 0.8;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.hero-content {
  position: relative;
  max-width: var(--max);
  width: 100%;
  text-align: center;
  z-index: 1;
}
.hero-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(56px, 10vw, 140px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 32px;
  color: #fff;
}
.hero-subtitle {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.2;
  color: #d4d8e3;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-tagline {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 56px;
  font-weight: 500;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 100px;
}
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.scroll-dot {
  width: 24px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}
.scroll-dot::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50%      { transform: translate(-50%, 10px); opacity: 0.2; }
}

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 999px;
  transition: all .3s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: #f0c86a;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(224, 178, 80, 0.3);
}
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(255,255,255,0.25);
}
.section-dark .btn-ghost,
.hero .btn-ghost {
  color: #fff;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}
/* in light sections */
.section:not(.section-dark):not(.section-closing) .btn-ghost {
  color: var(--text);
  border-color: rgba(0,0,0,0.15);
}
.section:not(.section-dark):not(.section-closing) .btn-ghost:hover {
  border-color: rgba(0,0,0,0.5);
}

/* ================== SECTIONS ================== */
.section {
  padding: clamp(100px, 15vw, 180px) var(--pad);
  background: #fff;
  color: var(--text);
}
.section-dark {
  background: var(--navy);
  color: var(--text-inv);
}
.section-soft {
  background: var(--soft);
}
.container {
  max-width: var(--max);
  margin: 0 auto;
}
.section-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--gold-d);
  margin-bottom: 24px;
}
.section-dark .section-kicker { color: var(--gold); }
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 40px;
}
.section-title .accent {
  color: var(--muted);
}
.section-dark .section-title .accent { color: var(--gold); }
.section-lede {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  max-width: 760px;
  line-height: 1.55;
  margin-bottom: 80px;
  font-weight: 300;
}
.section-dark .section-lede { color: #a8a8b0; }

.sub-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.sub-lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.section-dark .sub-lede { color: #a8a8b0; }

.caption {
  font-size: 13px;
  color: var(--muted-d);
  font-style: italic;
  text-align: center;
  margin-top: 12px;
}

/* ================== STATS ================== */
.section-stats {
  padding: 80px var(--pad);
  background: var(--ice);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  text-align: center;
}
.stat-num {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
}
.stat-unit {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
  font-family: "Inter", sans-serif;
}
.stat-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 720px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

/* ================== PROBLEM ================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.problem-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px 32px;
  transition: border-color .3s;
}
.problem-card:hover { border-color: rgba(224, 178, 80, 0.5); }
.problem-num {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(44px, 5vw, 64px);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.problem-card p {
  color: #c7c9d1;
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ================== ANCHOR FACTS ================== */
.split-image {
  margin: 60px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);
  background: #fff;
  padding: 40px;
}
.anchor-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.anchor-fact {
  text-align: left;
}
.fact-num {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 6px;
}
.fact-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 720px) {
  .anchor-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ================== ARCHITECTURE LAYERS ================== */
.arch-image {
  margin: 40px 0 80px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 100px;
}
.layer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.layer-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
}
.layer-card[data-accent="gold"]::before { background: var(--gold); }
.layer-card[data-accent="teal"]::before { background: var(--accent); }
.layer-card[data-accent="navy"]::before { background: var(--navy); }
.layer-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.layer-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold-d);
  margin-bottom: 16px;
}
.layer-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.layer-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 840px) {
  .layers-grid { grid-template-columns: 1fr; }
}

.lifecycle-block {
  background: #fff;
  border-radius: 24px;
  padding: 56px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.06);
  text-align: center;
}
.lifecycle-block img {
  max-width: 100%;
  margin: 24px auto 0;
}

/* ================== TOKEN TWO-COL ================== */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.col-image {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.col-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.dist-list {
  list-style: none;
}
.dist-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
}
.dist-list li span { color: #c7c9d1; }
.dist-list li b {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (max-width: 840px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
}

.dual-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 56px 40px;
  margin-bottom: 80px;
  text-align: center;
}
.dual-block img { max-width: 100%; margin: 32px auto 0; border-radius: 12px; }

.deflation-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.deflation-card {
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.defl-num {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 54px);
  color: #ec6060;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.defl-text {
  color: #c7c9d1;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .deflation-row { grid-template-columns: 1fr; }
}

/* ================== RADAR ================== */
.radar-image {
  max-width: 780px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* ================== ON-CHAIN ================== */
/* Connect Phantom button in nav */
.nav-cta-btn {
  border: none; cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta-btn .phantom-icon { font-size: 14px; }
.nav-cta-btn.connected { background: #1a8a5c; }
.nav-cta-btn.connected:hover { background: #157a4f; }

/* Live metrics strip */
.live-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  padding: 28px;
  background: rgba(224, 178, 80, 0.04);
  border: 1px solid rgba(224, 178, 80, 0.18);
  border-radius: 24px;
}
.live-metric {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 4px 12px;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.live-metric:first-child { border-left: none; }
.lm-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--gold);
}
.lm-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  min-height: 1.1em;
}
.lm-value .lm-num.pulse {
  animation: pulseGold 0.8s ease-out;
}
@keyframes pulseGold {
  0%   { color: var(--gold); transform: scale(1); }
  50%  { color: #fff; transform: scale(1.04); }
  100% { color: #fff; transform: scale(1); }
}
.lm-net {
  font-size: 0.7em;
  background: rgba(224,178,80,0.12);
  border: 1px solid rgba(224,178,80,0.4);
  color: var(--gold);
  padding: 4px 14px; border-radius: 999px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.08em;
  font-weight: 500;
  display: inline-block;
}
.lm-sub {
  font-size: 12px; color: var(--muted-d);
  letter-spacing: 0.02em;
}
.live-metric-cta {
  justify-content: center;
  align-items: flex-start;
}
.btn-connect {
  border: none; cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
}
.btn-connect.connected {
  background: #1a8a5c; color: #fff;
}
.btn-connect:disabled {
  opacity: 0.7; cursor: default; transform: none;
}
@media (max-width: 900px) {
  .live-metrics { grid-template-columns: repeat(2, 1fr); }
  .live-metric { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; }
  .live-metric:nth-child(-n+2) { border-top: none; padding-top: 4px; }
}

.onchain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.onchain-card {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 36px 32px;
  transition: transform .3s, border-color .3s, background .3s;
}
.onchain-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(224, 178, 80, 0.06);
}
.oc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}
.oc-value {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: #fff;
}
.oc-addr {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: #9ea0a8;
  word-break: break-all;
  margin-bottom: 18px;
}
.oc-link {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .onchain-grid { grid-template-columns: 1fr; }
}

/* ================== ROADMAP ================== */
.roadmap-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 60px;
  position: relative;
}
.roadmap-track::before {
  content: "";
  position: absolute;
  top: 24px; left: 12%; right: 12%;
  height: 1px;
  background: var(--line);
}
.roadmap-step {
  position: relative;
}
.rs-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold);
  margin: 16px auto 20px;
  position: relative;
  z-index: 1;
}
.rs-num {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-align: center;
  opacity: 0.15;
}
.roadmap-step h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  text-align: center;
}
.roadmap-step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  padding: 0 10px;
}
@media (max-width: 840px) {
  .roadmap-track { grid-template-columns: 1fr; }
  .roadmap-track::before { display: none; }
}

/* ================== CLOSING ================== */
.section-closing {
  background: linear-gradient(180deg, #06060a 0%, #1e2761 120%);
  color: var(--text-inv);
  text-align: center;
  padding: clamp(100px, 15vw, 200px) var(--pad);
}
.closing-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #fff;
}
.closing-sub {
  font-size: clamp(17px, 2vw, 22px);
  color: #c7c9d1;
  margin-bottom: 56px;
  font-weight: 300;
  font-style: italic;
  font-family: "Playfair Display", Georgia, serif;
}
.closing-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.closing-ctas .btn-ghost { color: #fff; }

/* ================== FOOTER ================== */
.footer {
  background: var(--navy-deep);
  color: #86868b;
  padding: 60px var(--pad) 40px;
  font-size: 13px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  width: 44px; height: 44px; border-radius: 50%;
}
.footer-title {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.footer-meta { margin-top: 4px; }
.footer-right { text-align: right; line-height: 1.7; }
.footer-line.muted { color: #555558; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 32px;
  text-align: center;
  color: #555558;
  font-size: 12px;
}
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
}

/* ================== REVEAL ANIMATION ================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
