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

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --bg:            #060D09;
  --surface:       #0C1610;
  --surface-2:     #132019;
  --surface-3:     #1A2B21;
  --text:          #F0EDE8;
  --text-muted:    #7A8C82;
  --text-dim:      #4A5E53;
  --accent:        #006949;
  --accent-light:  #00A876;
  --accent-bright: #00D494;
  --accent-dim:    rgba(0, 105, 73, 0.12);
  --accent-border: rgba(0, 168, 118, 0.25);
  --accent-glow:   rgba(0, 212, 148, 0.15);
  --border:        rgba(240, 237, 232, 0.06);
  --border-mid:    rgba(240, 237, 232, 0.10);
  --border-bright: rgba(240, 237, 232, 0.16);

  --font-display: 'Fraunces', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:    20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

/* ── Base ─────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0, 168, 118, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
}

/* ── Nav ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 52px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 13, 9, 0.80);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 80px;
  padding: 112px 80px 80px;
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-body);
  margin-bottom: 32px;
  animation: fadeUp 0.5s ease both;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
  animation: blink 2.8s ease infinite;
  box-shadow: 0 0 6px var(--accent-bright);
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent-bright); }
  50%       { opacity: 0.3; box-shadow: none; }
}

.hero h1 {
  font-size: clamp(52px, 5.5vw, 86px);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 26px;
  animation: fadeUp 0.55s ease 0.08s both;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-bright);
  font-weight: 900;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.78;
  animation: fadeUp 0.55s ease 0.16s both;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.55s ease 0.24s both;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 168, 118, 0.3), 0 8px 24px rgba(0, 105, 73, 0.35);
}
.btn-primary:hover {
  background: #007B56;
  box-shadow: 0 0 0 1px rgba(0, 168, 118, 0.5), 0 12px 32px rgba(0, 105, 73, 0.45);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
  background: var(--surface-3);
  border-color: var(--border-bright);
}

/* ── Phone mockup ────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(0, 168, 118, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95) rotate(-2deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.phone {
  width: 280px;
  background: var(--surface);
  border-radius: 50px;
  border: 1.5px solid rgba(240, 237, 232, 0.09);
  padding: 0 0 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 168, 118, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 48px 96px rgba(0,0,0,0.6),
    0 24px 48px rgba(0,0,0,0.4),
    0 0 80px rgba(0, 105, 73, 0.12);
  animation: float 6s ease-in-out infinite 1s;
  position: relative;
}

.phone-status {
  height: 50px;
  padding: 14px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.phone-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.phone-icons span {
  display: block;
  background: var(--text);
  border-radius: 2px;
  opacity: 0.8;
}

.phone-icons .wifi { width: 14px; height: 10px; clip-path: polygon(50% 100%, 0% 35%, 100% 35%); background: none; }
.phone-icons .signal { width: 12px; height: 10px; }
.phone-icons .bat { width: 18px; height: 10px; border-radius: 2px; border: 1.5px solid var(--text); opacity: 0.7; position: relative; }

.phone-island {
  width: 96px; height: 30px;
  background: #000;
  border-radius: 0 0 20px 20px;
  margin: 0 auto 22px;
}

.phone-inner {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.ph-group-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ph-label-tiny {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.ph-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ph-members {
  display: flex;
}

.ph-member-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-member-dot:first-child { margin-left: 0; }
.ph-member-dot:nth-child(1) { background: linear-gradient(135deg, #2D6A4F, #40916C); }
.ph-member-dot:nth-child(2) { background: linear-gradient(135deg, #1B4332, #2D6A4F); }
.ph-member-dot:nth-child(3) { background: linear-gradient(135deg, #081C15, #1B4332); }

.ph-balance {
  background: linear-gradient(135deg, rgba(0, 105, 73, 0.20), rgba(0, 168, 118, 0.08));
  border: 1px solid rgba(0, 168, 118, 0.22);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-bal-left {}

.ph-bal-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 3px;
}

.ph-bal-amount {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.ph-bal-chip {
  background: rgba(0, 212, 148, 0.15);
  border: 1px solid rgba(0, 212, 148, 0.25);
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.ph-divider {
  height: 1px;
  background: var(--border);
}

.ph-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 600;
  padding: 0 2px;
}

.ph-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ph-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.025);
  border-radius: 13px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  transition: background 0.15s;
}

.ph-row:hover { background: rgba(255,255,255,0.04); }

.ph-icon-wrap {
  width: 32px; height: 32px;
  background: var(--surface-3);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.ph-info { flex: 1; min-width: 0; }

.ph-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.ph-who {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.ph-amt {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

/* ── Section shared ───────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent-bright);
  opacity: 0.6;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 58px);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 56px;
  max-width: 600px;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

/* ── Features ────────────────────────────────────────── */
.features {
  padding: 60px 80px 80px;
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border-mid);
  border-radius: 24px;
  overflow: hidden;
}

.feat-card {
  background: var(--bg);
  padding: 36px 30px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.25s;
}

.feat-card:hover { background: var(--surface); }
.feat-card:hover::before { opacity: 1; }

.feat-icon-wrap {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feat-card:hover .feat-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.feat-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.feat-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.78;
}

/* ── Steps ────────────────────────────────────────────── */
.steps {
  padding: 60px 80px 80px;
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.step:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.step-num-bg {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 900;
  font-style: italic;
  color: var(--accent);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.78;
}

/* ── CTA band ─────────────────────────────────────────── */
.cta-band {
  margin: 0 80px 80px;
  padding: 72px 80px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 168, 118, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(32px, 3vw, 50px);
  margin-bottom: 12px;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.cta-band p {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 440px;
  line-height: 1.72;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  padding: 32px 80px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-logo img {
  height: 22px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}

.footer-logo:hover img {
  opacity: 1;
  filter: none;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--text); }

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Legal pages ──────────────────────────────────────── */
.legal-header {
  padding: 140px 80px 56px;
  max-width: 860px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.legal-header .section-label { margin-bottom: 14px; }

.legal-header h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.legal-header .last-update {
  font-size: 13px;
  color: var(--text-muted);
}

.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 80px 128px;
}

.legal-body h2 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 52px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-body ul, .legal-body ol {
  margin: 0 0 18px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

.legal-body li { margin-bottom: 5px; }

.legal-body a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body strong { color: var(--text); font-weight: 600; }

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

@media (max-width: 860px) {
  nav { padding: 0 24px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 64px;
    gap: 56px;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .phone { width: 250px; }

  .features, .steps { padding: 48px 24px 64px; }
  .section-label { justify-content: center; }
  .section-title { margin-left: auto; margin-right: auto; text-align: center; }

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

  .steps-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-band {
    margin: 0 24px 64px;
    padding: 48px 36px;
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .cta-band p { margin: 0 auto; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  footer {
    padding: 28px 24px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .legal-header, .legal-body {
    padding-left: 24px;
    padding-right: 24px;
  }
}
