/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F8F5F0;
  --surface: #FFFFFF;
  --navy: #1A1A2E;
  --amber: #E8A838;
  --amber-light: #FFF3D6;
  --text: #2D2A26;
  --text-muted: #7A7570;
  --border: #E8E4DD;
  --chat-green: #DCF8C6;
  --chat-blue: #E9EFF7;
  --chat-sent-bg: #005C4A;
}

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

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

::selection {
  background: var(--amber);
  color: var(--navy);
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--navy); }

/* === SECTION COMMON === */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

/* === HERO === */
.hero {
  padding: 80px 0 72px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-light);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
}

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

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

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* === CHAT WINDOW === */
.hero-visual { display: flex; flex-direction: column; align-items: flex-start; }

.chat-window {
  width: 100%;
  max-width: 340px;
  background: #ECE5DD;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(26,26,46,0.14), 0 2px 8px rgba(26,26,46,0.08);
  border: 1px solid rgba(26,26,46,0.1);
}

.chat-header {
  background: #006A4E;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
}

.chat-info { display: flex; flex-direction: column; }
.chat-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
}
.chat-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
}

.chat-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
}

.msg-calc {
  background: #FFFFFF;
  border-radius: 7px 7px 7px 0;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.msg-calc-icon { font-size: 0.9rem; }

.msg-sent {
  display: flex;
  justify-content: flex-end;
}

.msg-sent-inner {
  background: var(--chat-sent-bg);
  border-radius: 7px 7px 0 7px;
  padding: 9px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 90%;
}

.msg-sent-inner .msg-calc { background: transparent; box-shadow: none; }
.msg-sent-inner .msg-calc { color: white; }
.msg-sent-inner .msg-calc-icon { color: rgba(255,255,255,0.8); }

.msg-received { display: flex; justify-content: flex-start; }

.msg-received-inner {
  background: linear-gradient(135deg, var(--amber-light), #FFF8E8);
  border-radius: 7px;
  padding: 10px 14px;
  max-width: 75%;
  border: 1.5px solid var(--amber);
}

.received-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7A5010;
  margin-bottom: 4px;
}

.received-amount {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.received-from {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.msg-balance {
  margin-top: 8px;
  background: var(--navy);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); }
.balance-value {
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
}

.usdc {
  font-size: 0.72rem;
  color: var(--amber);
  font-weight: 600;
}

.chat-input-area {
  background: #FFFFFF;
  margin: 0 10px 10px;
  border-radius: 22px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-placeholder { font-size: 0.82rem; color: #A8A09C; }

.chat-send-btn {
  width: 32px;
  height: 32px;
  background: #006A4E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* === PROOF === */
.proof {
  padding: 100px 0;
  background: var(--navy);
  color: white;
}

.proof-header { margin-bottom: 56px; }

.proof-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: white;
  margin-bottom: 16px;
}

.proof-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  line-height: 1.7;
}

.proof .section-eyebrow { color: var(--amber); }

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.proof-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}

.proof-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
}

.card-tag {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.card-scenario {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.scenario-icon { font-size: 1.4rem; flex-shrink: 0; }

.scenario-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 12px;
}

.scenario-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.scenario-detail:last-child { border-bottom: none; }
.detail-label { color: rgba(255,255,255,0.5); }
.detail-value { color: rgba(255,255,255,0.9); font-weight: 500; }

/* === HOW IT WORKS === */
.how-it-works { padding: 100px 0; }

.hiw-header { margin-bottom: 60px; }

.hiw-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy);
}

.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-arrow { color: var(--amber); }

.hiw-security {
  margin-top: 48px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: white;
  padding: 12px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}

.security-badge svg { color: var(--amber); flex-shrink: 0; }

/* === FEATURES === */
.features {
  padding: 100px 0;
  background: #FAFAF8;
}

.features-header { margin-bottom: 56px; }

.features-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.features-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 460px;
}

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

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,26,46,0.08);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 0;
  background: linear-gradient(160deg, #1A1A2E 0%, #0F0F1A 100%);
}

.manifesto-inner { max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; }

.manifesto-badge {
  display: inline-block;
  border: 1px solid rgba(232,168,56,0.4);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.manifesto-quote {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.manifesto-quote::before {
  content: '"';
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  color: var(--amber);
  position: absolute;
  top: -28px;
  left: -20px;
  opacity: 0.6;
  line-height: 1;
}

.manifesto-attr {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
}

.manifesto-divider {
  width: 48px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 32px;
}

.manifesto-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 40px;
}

.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 56px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-head {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-note { color: rgba(255,255,255,0.2) !important; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-content { text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .proof-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 56px 1fr; }
  .step-arrow { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { gap: 32px; }
  .hiw-security { gap: 12px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .proof { padding: 72px 0; }
  .how-it-works { padding: 72px 0; }
  .features { padding: 72px 0; }
  .manifesto { padding: 72px 0; }
  nav { gap: 20px; }
  .footer-links { flex-direction: column; }
}
