/* ============================================
   Innovative Legacy — Design System
   ============================================ */

:root {
  --indigo: #1e2a4a;
  --indigo-light: #2d3f6b;
  --amber: #c9913a;
  --amber-light: #e0aa50;
  --cream: #faf6f0;
  --cream-dark: #f0ebe0;
  --charcoal: #1a1a1a;
  --text: #2a2a2a;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --error: #c0392b;
  --success: #27ae60;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --max-width: 1100px;
  --radius: 6px;
  --radius-lg: 12px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--amber); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--indigo);
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-ghost:hover {
  background: var(--indigo);
  color: var(--white);
}
.btn-full { width: 100%; }

/* ---- NAV ---- */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--indigo);
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-links li:nth-child(n+4) { display: none; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--indigo);
}
.ripple-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 145, 58, 0.15);
  animation: rippleExpand 8s ease-in-out infinite;
}
.r1 { width: 400px; height: 400px; animation-delay: 0s; }
.r2 { width: 700px; height: 700px; animation-delay: 1.5s; }
.r3 { width: 1000px; height: 1000px; animation-delay: 3s; }

@keyframes rippleExpand {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { opacity: 0.2; }
  100% { transform: scale(1.2); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.hero-eyebrow {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero .btn { margin: 0.25rem; }

/* ---- SECTION COMMON ---- */
section { padding: 5rem 0; }
.section-eyebrow {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ---- CONCEPT ---- */
.concept { background: var(--white); }
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.concept-visual { display: flex; justify-content: center; }
.eko-circle {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(201,145,58,0.08) 0%, transparent 70%);
}
.eko-inner svg { width: 100%; height: 100%; animation: rotateSlow 30s linear infinite; }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.concept-text h2 { margin-bottom: 1.25rem; }
.concept-text p { color: var(--text-light); font-size: 1.05rem; line-height: 1.8; }
.concept-powered {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .concept-grid { grid-template-columns: 1fr; gap: 2rem; }
  .concept-visual { display: none; }
}

/* ---- HOW IT WORKS ---- */
.how-it-works { background: var(--cream); }
.how-it-works h2 { text-align: center; margin-bottom: 3rem; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.step {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--cream-dark);
}
.step-num {
  width: 48px;
  height: 48px;
  background: var(--indigo);
  color: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step p { color: var(--text-light); font-size: 0.95rem; }
.step-arrow {
  flex-shrink: 0;
  padding-top: 4rem;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); padding: 0; justify-content: center; }
}

/* ---- PITCH ---- */
.pitch { background: var(--indigo); }
.pitch blockquote {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.pitch blockquote p {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.pitch cite {
  display: block;
  color: var(--amber);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---- PRODUCT ---- */
.product { background: var(--white); }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.product-features { margin: 1.5rem 0; }
.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text);
}
.product-features svg { flex-shrink: 0; }
.product-mobile { font-size: 0.85rem; color: var(--text-light); }

.phone-mockup {
  background: var(--indigo);
  border-radius: 28px;
  padding: 12px;
  max-width: 260px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(30,42,74,0.25);
}
.phone-screen {
  background: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9/16;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-content { text-align: center; padding: 2rem 1.5rem; }
.mockup-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--indigo));
  margin: 0 auto 1.5rem;
}
.mockup-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  margin-bottom: 1.5rem;
}
.wave-bar {
  width: 4px;
  background: var(--amber);
  border-radius: 2px;
  animation: waveAnim 1.2s ease-in-out infinite;
}
.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 30px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 45px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 25px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 40px; animation-delay: 0.6s; }
@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
.mockup-code {
  background: var(--indigo);
  color: var(--amber);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.mockup-label { font-size: 0.75rem; color: var(--text-light); }

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

/* ---- WAITLIST ---- */
.waitlist { background: var(--cream); }
.waitlist-box {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 4px 20px rgba(30,42,74,0.06);
}
.waitlist-box h2 { margin-bottom: 0.75rem; }
.waitlist-box > p { color: var(--text-light); margin-bottom: 2rem; }
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--cream);
}
.form-row input:focus { border-color: var(--amber); }
.waitlist-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}
.form-success {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(39, 174, 96, 0.1);
  border-radius: var(--radius);
  color: var(--success);
  font-weight: 500;
}

@media (max-width: 600px) {
  .form-row { flex-direction: column; }
  .waitlist-box { padding: 2rem 1.5rem; }
}

/* ---- FOOTER ---- */
footer {
  background: var(--indigo);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.footer-brand { margin-bottom: 2rem; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-subbrand {
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
