/* ============================================================
   VENDRA — DESIGN SYSTEM
   style.css — shared across all pages
   
   TABLE OF CONTENTS:
   1. Fonts & Reset
   2. CSS Variables (colors, spacing, typography)
   3. Base Elements
   4. Layout — container, grids
   5. Navigation
   6. Footer
   7. Buttons
   8. Components — cards, badges, labels
   9. Forms
   10. Animations & Utilities
   11. Responsive overrides
   ============================================================ */


/* ============================================================
   1. FONTS & RESET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }


/* ============================================================
   2. CSS VARIABLES
   ============================================================ */

:root {
  /* — Colors — */
  --purple:        #6B4EFF;
  --purple-dark:   #4B32D4;
  --purple-light:  #EDE9FF;
  --purple-subtle: #F5F3FF;
  --cream:         #FAFAF8;
  --gold:          #F5C842;
  --gold-light:    #FEF6D0;
  --gold-dark:     #C89F10;
  --ink:           #1A1A2E;
  --ink-mid:       #6B7280;
  --ink-light:     #9CA3AF;
  --success:       #10B981;
  --success-light: #D1FAE5;
  --border:        #E5E7EB;
  --card-bg:       #FFFFFF;
  --white:         #FFFFFF;

  /* — Typography — */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  40px;
  --text-4xl:  52px;
  --text-5xl:  64px;

  --leading-tight:  1.2;
  --leading-snug:   1.4;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  /* — Spacing (8px base unit) — */
  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-7:  56px;
  --space-8:  64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* — Radii — */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-purple: 0 8px 32px rgba(107,78,255,0.2);

  /* — Transitions — */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  /* — Nav height — */
  --nav-height: 68px;
}


/* ============================================================
   3. BASE ELEMENTS
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display headings use serif */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--ink);
}

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--ink);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }

p {
  line-height: var(--leading-relaxed);
  color: var(--ink-mid);
}

strong { font-weight: 600; color: var(--ink); }

em {
  font-style: italic;
  color: var(--purple);
}


/* ============================================================
   4. LAYOUT
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-12) 0;
}

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

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--dark h2 { color: var(--white); }
.section--dark p  { color: rgba(255,255,255,0.65); }

.section--purple {
  background: var(--purple);
  color: var(--white);
}

.section--purple h2 { color: var(--white); }
.section--purple p  { color: rgba(255,255,255,0.75); }

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.grid-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}


/* ============================================================
   5. NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250,250,248,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--purple);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-mid);
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover { color: var(--ink); }

/* Coming soon tooltip */
.nav__link[href="#coming-soon"] {
  color: var(--ink-light);
  cursor: default;
}

.nav__link[href="#coming-soon"]:hover { color: var(--ink-light); }

.nav__link[href="#coming-soon"]::after {
  content: 'Coming soon';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav__link[href="#coming-soon"]:hover::after { opacity: 1; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
  z-index: 99;
}

.nav__mobile.open { display: block; }

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.nav__mobile-link {
  display: block;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink-mid);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav__mobile-link:hover {
  background: var(--purple-subtle);
  color: var(--purple);
}

.nav__mobile-link[href="#coming-soon"] {
  color: var(--ink-light);
}

.nav__mobile-link[href="#coming-soon"]::after {
  content: ' — coming soon';
  font-size: var(--text-xs);
  font-weight: 400;
}


/* ============================================================
   6. FOOTER
   ============================================================ */

.footer {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-10) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  margin-bottom: var(--space-2);
  display: block;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: var(--leading-relaxed);
  max-width: 260px;
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--white); }

.footer__link[href="#coming-soon"] {
  color: rgba(255,255,255,0.3);
  cursor: default;
}

.footer__link[href="#coming-soon"]::after {
  content: ' ↗';
  font-size: 10px;
  opacity: 0.5;
}

.footer__socials {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
  color: rgba(255,255,255,0.6);
}

.footer__social:hover {
  background: rgba(255,255,255,0.16);
  color: var(--white);
}

.footer__contact {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

.footer__contact a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  padding: var(--space-3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}


/* ============================================================
   7. BUTTONS
   ============================================================ */

/* Shared button base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform 0.1s, box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

/* Primary — purple filled */
.btn-primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  box-shadow: var(--shadow-purple);
}

/* Secondary — outlined */
.btn-secondary {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.btn-secondary:hover {
  background: var(--purple-subtle);
}

/* Waitlist — gold CTA, hero only */
.btn-waitlist {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 600;
  padding: 15px 28px;
  font-size: var(--text-base);
}

.btn-waitlist:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 8px 24px rgba(245,200,66,0.35);
}

/* Nav button — compact */
.btn-nav {
  padding: 9px 18px;
  font-size: var(--text-sm);
}

/* Full width */
.btn--full { width: 100%; }


/* ============================================================
   8. COMPONENTS
   ============================================================ */

/* Card */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.card:hover {
  border-color: #D1C4FF;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge--live {
  background: var(--success-light);
  color: #065F46;
}

.badge--coming {
  background: var(--gold-light);
  color: #78580A;
}

.badge--dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Section label */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--space-2);
}

.section-label--light {
  color: rgba(255,255,255,0.6);
}

/* Section header block */
.section-header {
  margin-bottom: var(--space-7);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  max-width: 480px;
  margin: var(--space-2) auto 0;
}

.section-header h2 {
  margin-top: var(--space-1);
}

.section-header p {
  font-size: var(--text-md);
  margin-top: var(--space-2);
}

/* Icon container */
.icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-8) 0;
}


/* ============================================================
   9. FORMS
   ============================================================ */

.form-row {
  display: flex;
  gap: var(--space-1);
}

.form-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 0;
}

.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107,78,255,0.1);
}

.form-input::placeholder { color: var(--ink-light); }

.form-input--dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

.form-input--dark:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.15);
}

.form-input--dark::placeholder { color: rgba(255,255,255,0.4); }

.form-note {
  font-size: var(--text-xs);
  color: var(--ink-light);
  margin-top: var(--space-1);
  text-align: center;
}

.form-note--dark { color: rgba(255,255,255,0.4); }

/* Success state */
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-2);
  background: var(--success-light);
  border: 1.5px solid #6EE7B7;
  color: #065F46;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
}

.form-success.visible { display: flex; }

/* Error state */
.form-input.error { border-color: #EF4444; }


/* ============================================================
   10. ANIMATIONS & UTILITIES
   ============================================================ */

/* Fade in on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* Text utilities */
.text-purple { color: var(--purple); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--ink-mid); }
.text-center { text-align: center; }
.italic { font-style: italic; }

/* Spacing utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* ============================================================
   11. RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --text-5xl: 52px;
    --text-4xl: 44px;
    --text-3xl: 34px;
  }

  .grid-hero {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .footer__col--brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 40px;
    --text-4xl: 34px;
    --text-3xl: 28px;
    --text-2xl: 24px;
    --text-xl:  20px;
  }

  .section { padding: var(--space-10) 0; }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer__col--brand { grid-column: span 1; }

  .form-row {
    flex-direction: column;
  }

  .form-row .btn { width: 100%; text-align: center; }

  /* Hide the horizontal connector line — doesn't make sense in single-column layout */
  .steps-wrap::before { display: none; }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 34px;
    --text-3xl: 26px;
    --text-md:  16px;
  }

  .container { padding: 0 var(--space-2); }
  .section { padding: var(--space-8) 0; }

  /* Prevent digest card from overflowing on very small phones */
  .digest-card { padding: 20px; }
  .digest-action__text { font-size: 12px; }
}
