/* ============================================================
   DHRIT DESIGN SYSTEM — styles.css
   Pure black. Surgical blue. Ice-cold typography.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Color — Dark (default) */
  --black:              #000000;
  --surface-1:          #080810;
  --surface-2:          #0E0E1A;
  --surface-3:          #14141F;
  --surface-4:          #1C1C2E;

  --blue-primary:       #007AFF;
  --blue-hover:         #0A84FF;
  --blue-deep:          #003D99;
  --blue-glow:          rgba(0, 122, 255, 0.12);
  --blue-glow-strong:   rgba(0, 122, 255, 0.22);

  --text-primary:       #FFFFFF;
  --text-secondary:     rgba(255, 255, 255, 0.55);
  --text-muted:         rgba(255, 255, 255, 0.30);

  --border-subtle:      rgba(255, 255, 255, 0.06);
  --border-default:     rgba(255, 255, 255, 0.10);
  --border-strong:      rgba(255, 255, 255, 0.18);

  --glass-bg:           rgba(8, 8, 16, 0.70);
  --glass-border:       rgba(255, 255, 255, 0.08);

  --green-live:         #00C853;
  --green-glow:         rgba(0, 200, 83, 0.15);

  /* Typography Scale */
  --text-hero:    clamp(3.5rem, 8vw, 7rem);
  --text-display: clamp(2rem, 4vw, 3.5rem);
  --text-heading: clamp(1.4rem, 2.5vw, 2rem);
  --text-body:    1rem;
  --text-small:   0.875rem;
  --text-label:   0.75rem;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  /* Content width */
  --content-width: 1160px;
}

/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */
html[data-theme="light"] {
  --black:          #F0F2F5;
  --surface-1:      #E8EBF0;
  --surface-2:      #FFFFFF;
  --surface-3:      #F5F7FA;
  --surface-4:      #EAECF0;

  --text-primary:   #0A0A14;
  --text-secondary: rgba(10, 10, 20, 0.60);
  --text-muted:     rgba(10, 10, 20, 0.35);

  --border-subtle:  rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.10);
  --border-strong:  rgba(0, 0, 0, 0.20);

  --glass-bg:       rgba(255, 255, 255, 0.70);
  --glass-border:   rgba(0, 0, 0, 0.08);

  --blue-glow:      rgba(0, 122, 255, 0.08);
  --blue-glow-strong: rgba(0, 122, 255, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--text-primary);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.section:first-of-type {
  border-top: none;
}

/* ============================================================
   GLASS CARD SYSTEM
   ============================================================ */
.glass-card {
  background: rgba(8, 8, 16, 0.60);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 24, 0.75);
}

html[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.65);
}

html[data-theme="light"] .glass-card:hover {
  background: rgba(255, 255, 255, 0.80);
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  padding: 13px 28px;
  background: var(--blue-primary);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.3),
              0 8px 32px rgba(0, 122, 255, 0.25);
}

.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.4),
              0 12px 40px rgba(10, 132, 255, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  padding: 13px 28px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

html[data-theme="light"] .btn-ghost {
  color: rgba(10, 10, 20, 0.80);
  border-color: rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.30);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 880px;
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 20px;
  border-radius: 100px;
  background: rgba(6, 6, 14, 0.75);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 0 0.5px rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(4, 4, 12, 0.90);
}

html[data-theme="light"] .navbar {
  background: rgba(240, 242, 245, 0.80);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 242, 245, 0.95);
  border-color: rgba(0, 0, 0, 0.15);
}

.navbar-logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
  flex: 1;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 100px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--blue-primary);
  border-radius: 2px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-default);
  background: rgba(0, 122, 255, 0.1);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  display: flex;
  opacity: 1;
}

.mobile-overlay .nav-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0;
}

.mobile-overlay .nav-link:hover {
  color: var(--text-primary);
}

.mobile-overlay .nav-link::after {
  display: none;
}

.mobile-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.mobile-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   PAGE BACKGROUND / HERO GLOW
   ============================================================ */
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(
    ellipse 1000px 600px at 50% 0%,
    rgba(0, 80, 200, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.1;
}

.text-hero {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.text-display {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-heading {
  font-size: var(--text-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.text-body {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
}

.text-small {
  font-size: var(--text-small);
  font-weight: 400;
}

.text-label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: var(--space-2xl);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero-headline {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--text-primary);
  max-width: 800px;
}

.hero-sub {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  margin-top: var(--space-md);
}

.hero-badge .live-dot {
  flex-shrink: 0;
}

/* Play icon in button */
.play-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================================
   LIVE DOT / PULSE
   ============================================================ */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-live);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 200, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

/* ============================================================
   WHAT IS DHRIT — Three Columns
   ============================================================ */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.concept-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.concept-visual {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* CSS geometric shapes */
.shape-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-primary);
  opacity: 0.7;
}

.shape-circles-overlap {
  position: relative;
  width: 60px;
  height: 36px;
}

.shape-circles-overlap::before,
.shape-circles-overlap::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-primary);
  opacity: 0.7;
}

.shape-circles-overlap::before { left: 0; }
.shape-circles-overlap::after  { left: 18px; }

.shape-arc {
  width: 48px;
  height: 24px;
  border: 1.5px solid var(--blue-primary);
  border-bottom: none;
  border-radius: 48px 48px 0 0;
  opacity: 0.7;
}

.concept-title {
  font-size: var(--text-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.concept-body {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   SPLIT SECTION (text + visual)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.split-copy .text-display {
  color: var(--text-primary);
}

.split-copy .text-body {
  color: var(--text-secondary);
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-outer {
  background: rgba(8, 8, 16, 0.60);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  padding: 20px;
}

.phone-frame {
  background: #080810;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  overflow: hidden;
  width: 260px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  height: 44px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.phone-status-bar .time {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
}

.phone-status-bar .icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.phone-status-bar .icons span {
  color: #ffffff;
  font-size: 0.65rem;
}

.phone-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.phone-screen-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ============================================================
   STUDY WALL SECTION
   ============================================================ */
.wall-section {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.wall-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wall-student-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

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

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

.wall-student-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.wall-student-subject {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wall-student-timer {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-primary);
  font-variant-numeric: tabular-nums;
}

.wall-student-room {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.wall-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 4px;
}

.wall-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.wall-divider-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ============================================================
   ROOMS SECTION
   ============================================================ */
.room-list-mock {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
}

.room-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.room-row-info {
  flex: 1;
}

.room-row-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.room-row-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.room-join-btn {
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue-primary);
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.room-join-btn:hover {
  background: rgba(0, 122, 255, 0.20);
  border-color: rgba(0, 122, 255, 0.40);
}

/* ============================================================
   FEATURES STRIP — 3x2 Grid
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card-shape {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.feature-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   FEATURE SHAPES (CSS geometric)
   ============================================================ */
.fs-focus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--blue-primary);
  position: relative;
}
.fs-focus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-primary);
  opacity: 0.5;
}

.fs-wall {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fs-wall span {
  display: block;
  height: 2px;
  background: var(--blue-primary);
  border-radius: 2px;
}
.fs-wall span:nth-child(2) { width: 70%; }
.fs-wall span:nth-child(3) { width: 50%; }

.fs-rooms {
  width: 32px;
  height: 32px;
  position: relative;
}
.fs-rooms::before,
.fs-rooms::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--blue-primary);
}
.fs-rooms::before { width: 20px; height: 20px; top: 0; left: 0; }
.fs-rooms::after  { width: 16px; height: 16px; bottom: 0; right: 0; }

.fs-attendance {
  width: 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  align-items: end;
}
.fs-attendance span {
  border-radius: 2px;
  background: var(--blue-primary);
}
.fs-attendance span:nth-child(1) { height: 8px;  opacity: 0.4; }
.fs-attendance span:nth-child(2) { height: 16px; opacity: 0.6; }
.fs-attendance span:nth-child(3) { height: 24px; opacity: 0.8; }
.fs-attendance span:nth-child(4) { height: 32px; }

.fs-leaderboard {
  width: 32px;
  height: 32px;
  position: relative;
}
.fs-leaderboard::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid transparent;
  border-bottom-color: var(--blue-primary);
  opacity: 0.6;
}
.fs-leaderboard::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-primary);
}

.fs-analytics {
  width: 32px;
  height: 32px;
}
.fs-analytics-svg {
  width: 32px;
  height: 32px;
}

/* ============================================================
   CTA SECTION (Coming soon / email)
   ============================================================ */
.cta-section {
  background: var(--surface-2);
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  width: 100%;
}

.waitlist-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  padding: 13px 20px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.waitlist-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.waitlist-success {
  color: var(--green-live);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  margin-top: 8px;
}

.waitlist-success.visible {
  display: block;
}

/* ============================================================
   BLUE LEFT BORDER BULLET (for feature bullet points)
   ============================================================ */
.feature-bullet {
  padding-left: 16px;
  border-left: 2px solid var(--blue-primary);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   ROADMAP TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding: 0 0 0 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.10);
  transform: translateX(-50%);
}

.timeline-phases {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}

.timeline-phase {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  gap: 0;
}

.timeline-phase:nth-child(even) .phase-card {
  grid-column: 3;
}
.timeline-phase:nth-child(even) .phase-spacer {
  grid-column: 1;
  grid-row: 1;
}
.timeline-phase:nth-child(even) .phase-node-wrap {
  grid-column: 2;
  grid-row: 1;
}

.timeline-phase:nth-child(odd) .phase-card {
  grid-column: 1;
}
.timeline-phase:nth-child(odd) .phase-spacer {
  grid-column: 3;
  grid-row: 1;
}
.timeline-phase:nth-child(odd) .phase-node-wrap {
  grid-column: 2;
  grid-row: 1;
}

.phase-node-wrap {
  display: flex;
  justify-content: center;
  padding-top: 32px;
  position: relative;
  z-index: 1;
}

.phase-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.phase-node.active {
  background: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.phase-node.upcoming {
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.phase-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phase-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  width: fit-content;
}

.phase-status.in-progress {
  background: rgba(0, 122, 255, 0.15);
  color: var(--blue-primary);
  border: 1px solid rgba(0, 122, 255, 0.30);
}

.phase-status.upcoming {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.phase-title {
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.phase-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-item {
  padding-left: 14px;
  border-left: 2px solid var(--blue-primary);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.phase-item.muted {
  border-left-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(8, 8, 16, 0.60);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.open {
  border-color: rgba(255, 255, 255, 0.14);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
}

.faq-question-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

html[data-theme="light"] .faq-answer-inner {
  color: rgba(10, 10, 20, 0.65);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

html[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(0,0,0,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-success {
  color: var(--green-live);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

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

/* ============================================================
   CONTACT CARDS
   ============================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card-type {
  font-size: var(--text-label);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.contact-card-email {
  font-size: 0.95rem;
  color: var(--blue-primary);
  font-weight: 500;
}

/* ============================================================
   ABOUT — Philosophy Cards
   ============================================================ */
.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.philosophy-card {
  padding: 32px 28px;
}

.philosophy-card-title {
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.philosophy-card-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head {
  margin-bottom: var(--space-xl);
}

.section-head.centered {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.section-head h2 {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-head p {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   LEGAL PAGES (Privacy, Terms)
   ============================================================ */
.legal-content {
  max-width: 760px;
  margin-inline: auto;
  padding-top: 140px;
  padding-bottom: var(--space-2xl);
}

.legal-title {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-date {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.legal-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.legal-section p,
.legal-section li {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 12px;
}

html[data-theme="light"] .legal-section p,
html[data-theme="light"] .legal-section li {
  color: rgba(10, 10, 20, 0.65);
}

.legal-section ul {
  list-style: disc;
  padding-left: 20px;
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */
.download-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  margin-inline: auto;
}

.store-badge-grey {
  opacity: 0.35;
  filter: grayscale(1);
  transition: none;
}

.store-badge-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.platform-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.platform-col h3 {
  font-size: var(--text-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.platform-col p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

html[data-theme="light"] .footer-links a {
  color: rgba(10, 10, 20, 0.5);
}

html[data-theme="light"] .footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
}

html[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.04);
}

.footer-bottom span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.20);
}

html[data-theme="light"] .footer-bottom span {
  color: rgba(10, 10, 20, 0.25);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page load — above fold */
.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}

.hero-animate:nth-child(1) { animation-delay: 0s; }
.hero-animate:nth-child(2) { animation-delay: 0.1s; }
.hero-animate:nth-child(3) { animation-delay: 0.2s; }
.hero-animate:nth-child(4) { animation-delay: 0.25s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-animate {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .live-dot {
    animation: none;
  }
}

/* ============================================================
   HERO LEFT-ALIGNED (About page)
   ============================================================ */
.hero-left {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.hero-left .hero-inner {
  align-items: flex-start;
}

.about-mission {
  max-width: 640px;
}

.about-mission p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-mission p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-shell main {
  flex: 1;
}

.google-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Section with left heading + right visual (Study Wall) */
.study-wall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .split.reverse {
    direction: ltr;
  }

  .three-col {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .study-wall-grid,
  .rooms-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .timeline-phase {
    grid-template-columns: 1fr;
  }

  .timeline-phase .phase-node-wrap {
    display: none;
  }

  .timeline-phase .phase-spacer {
    display: none;
  }

  .timeline-line {
    display: none;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .philosophy-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .platform-note {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-2xl: 64px;
    --space-xl: 48px;
  }

  .section {
    padding-block: 64px;
  }

  .navbar-nav,
  .navbar-actions .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar-actions {
    gap: 4px;
  }

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

  .hero-headline {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .waitlist-input {
    border-radius: 12px;
    padding: 14px 16px;
  }

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

  .phone-frame {
    width: 220px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
