/* =============================================
   MLT STUDY HUB V2 — PREMIUM LIGHT DESIGN
   Samsung-inspired. Clean. Medical. Modern.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Core palette */
  --white:    #ffffff;
  --off:      #f8f9fb;
  --off2:     #f0f4f8;
  --border:   #e2e8ef;
  --border2:  #d0d8e4;
  --text:     #0d1117;
  --text2:    #4a5568;
  --text3:    #8896a9;

  /* Brand */
  --blue:     #0066cc;
  --blue-lt:  #e8f0fc;
  --blue-mid: #3b82f6;
  --teal:     #0891b2;
  --teal-lt:  #e0f7fa;
  --cyan:     #06b6d4;

  /* Subject colors */
  --hema-h:   #dc2626; --hema-l:  #fef2f2;
  --micro-h:  #7c3aed; --micro-l: #f5f3ff;
  --chem-h:   #0066cc; --chem-l:  #eff6ff;
  --histo-h:  #db2777; --histo-l: #fdf2f8;
  --immuno-h: #059669; --immuno-l:#ecfdf5;
  --mol-h:    #d97706; --mol-l:   #fffbeb;

  /* Spacing & shape */
  --radius:   10px;
  --radius-lg:18px;
  --radius-xl:28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);

  /* Typography */
  --font:      'Outfit', sans-serif;
  --font-serif:'Crimson Pro', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-w:    1200px;
  --nav-h:    64px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--white); color: var(--text); font-family: var(--font); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- UTILITIES ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.label {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -.03em;
  line-height: 1.15; margin-bottom: 1rem;
}
.section-sub { font-size: 1.05rem; color: var(--text2); max-width: 560px; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 600;
  padding: .7rem 1.6rem; border-radius: 100px;
  border: none; transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #004fa3; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,102,204,.3); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-lt); }
.btn-white { background: var(--white); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.btn-white:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-sm { padding: .45rem 1.1rem; font-size: .8rem; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,239,.8);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em;
}
.nav-logo .logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
}
.nav-logo .logo-icon svg { width: 20px; height: 20px; fill: white; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  font-size: .85rem; font-weight: 500;
  padding: .45rem .85rem; border-radius: 8px;
  color: var(--text2); transition: all .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--blue-lt); }
.nav-cta { margin-left: .75rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--text); padding: .4rem; }

/* ---- HERO ---- */
.hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 50%, #f5fbff 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0,102,204,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(8,145,178,.05) 0%, transparent 60%);
}
.hero-grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #c5d8ef 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .35;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue-lt); color: var(--blue);
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 100px;
  border: 1px solid rgba(0,102,204,.15);
  margin-bottom: 1.5rem;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: blink 2s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; letter-spacing: -.04em;
  line-height: 1.08; margin-bottom: 1.25rem;
  color: var(--text);
}
.hero-title .accent { color: var(--blue); }
.hero-title .serif { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--teal); }

.hero-desc { font-size: 1.1rem; color: var(--text2); max-width: 460px; margin-bottom: 2.25rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.hero-stat .n { font-size: 1.7rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.hero-stat .l { font-size: .78rem; color: var(--text3); font-weight: 500; margin-top: .1rem; }

/* Hero visual */
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-card-float {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  overflow: hidden; width: 100%; max-width: 420px;
}
.hero-card-top {
  background: linear-gradient(135deg, #0066cc 0%, #0891b2 100%);
  padding: 2rem; position: relative; overflow: hidden;
}
.hero-card-top::before {
  content: '';
  position: absolute; width: 200px; height: 200px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
  top: -60px; right: -60px;
}
.hero-card-top::after {
  content: '';
  position: absolute; width: 120px; height: 120px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.1);
  bottom: -30px; left: -30px;
}
.hero-card-top h3 { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; position: relative; z-index: 1; }
.hero-card-top p  { color: rgba(255,255,255,.7); font-size: .82rem; position: relative; z-index: 1; }
.hero-card-body { padding: 1.5rem; }
.progress-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.progress-row:last-child { margin-bottom: 0; }
.progress-label { font-size: .82rem; font-weight: 500; width: 140px; flex-shrink: 0; }
.progress-bar { flex: 1; height: 6px; background: var(--off2); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 100px; }
.progress-pct { font-size: .78rem; font-weight: 600; color: var(--text2); width: 32px; text-align: right; }

/* Floating badges */
.badge-float {
  position: absolute;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: .6rem .9rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  animation: floatY 4s ease-in-out infinite;
}
.badge-float.b1 { top: -20px; right: -30px; animation-delay: 0s; }
.badge-float.b2 { bottom: 40px; left: -40px; animation-delay: 1.5s; }
.badge-float .badge-dot { width: 8px; height: 8px; border-radius: 50%; }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ---- SUBJECTS TICKER ---- */
.ticker { overflow: hidden; background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .85rem 0; }
.ticker-inner { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: .6rem; padding: 0 2rem; font-size: .82rem; font-weight: 500; color: var(--text2); white-space: nowrap; }
.ticker-item .ti { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---- SEARCH BAR ---- */
.search-section { padding: 3rem 0 2rem; background: var(--white); }
.search-wrap {
  max-width: 700px; margin: 0 auto;
  background: var(--white); border: 1.5px solid var(--border2);
  border-radius: 100px; box-shadow: var(--shadow);
  display: flex; align-items: center; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.1); }
.search-icon { padding: 0 1rem 0 1.5rem; color: var(--text3); font-size: 1.1rem; }
.search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: .95rem; color: var(--text);
  padding: .9rem 0;
}
.search-input::placeholder { color: var(--text3); }
.search-btn {
  background: var(--blue); color: var(--white); border: none;
  padding: .7rem 1.5rem; margin: .3rem; border-radius: 100px;
  font-family: var(--font); font-size: .85rem; font-weight: 600;
  transition: background .2s;
}
.search-btn:hover { background: #004fa3; }

/* ---- FEATURE GRID ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all .25s; cursor: pointer;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--card-color, var(--blue)), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.fc-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--icon-bg, var(--blue-lt));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p  { font-size: .88rem; color: var(--text2); line-height: 1.6; margin-bottom: 1.25rem; }
.fc-arrow { font-size: .82rem; font-weight: 600; color: var(--card-color, var(--blue)); display: flex; align-items: center; gap: .3rem; }

/* ---- SEMESTERS GRID ---- */
.sem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media(max-width:900px){ .sem-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px){ .sem-grid { grid-template-columns: 1fr 1fr; } }

.sem-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all .22s; display: block; position: relative;
}
.sem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }
.sem-card.locked { opacity: .55; pointer-events: none; }
.sem-num {
  font-size: 2.5rem; font-weight: 800; color: var(--off2);
  letter-spacing: -.05em; line-height: 1; margin-bottom: .75rem;
  font-variant-numeric: tabular-nums;
}
.sem-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.sem-card p  { font-size: .78rem; color: var(--text3); }
.sem-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .62rem; font-weight: 600; letter-spacing: .06em;
  padding: .2rem .6rem; border-radius: 100px;
  text-transform: uppercase;
}
.sem-badge.active { background: #dcfce7; color: #15803d; }
.sem-badge.coming { background: var(--off2); color: var(--text3); }

/* ---- SUBJECTS SHOWCASE ---- */
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.subj-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); transition: all .25s;
  display: block; background: var(--white);
}
.subj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.subj-header {
  padding: 1.75rem; position: relative; overflow: hidden;
  min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end;
}
.subj-header .bg-shape {
  position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px; opacity: .12;
  font-size: 7rem; line-height: 1;
}
.subj-header h3 { font-size: 1.15rem; font-weight: 700; color: white; position: relative; z-index: 1; }
.subj-header p  { font-size: .8rem; color: rgba(255,255,255,.75); position: relative; z-index: 1; margin-top: .2rem; }
.subj-body { padding: 1.25rem 1.75rem; }
.subj-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.subj-tag {
  font-size: .72rem; font-weight: 500; padding: .25rem .65rem;
  border-radius: 100px; border: 1px solid;
}
.subj-stats { display: flex; gap: 1.5rem; }
.subj-stat .n { font-size: 1.2rem; font-weight: 700; }
.subj-stat .l { font-size: .7rem; color: var(--text3); }

/* ---- MCQ PREVIEW SECTION ---- */
.mcq-preview { background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mcq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media(max-width:700px){ .mcq-grid { grid-template-columns: 1fr; } }
.mcq-mini {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 1.5rem;
  transition: box-shadow .2s;
}
.mcq-mini:hover { box-shadow: var(--shadow); }
.mcq-mini .subject-chip {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 100px; margin-bottom: .9rem; display: inline-block;
}
.mcq-mini h4 { font-size: .92rem; font-weight: 600; margin-bottom: .9rem; line-height: 1.5; }
.mcq-opts { display: flex; flex-direction: column; gap: .45rem; }
.mcq-opt-item {
  font-size: .82rem; padding: .5rem .8rem; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text2);
  display: flex; align-items: center; gap: .5rem;
  transition: all .18s; cursor: pointer;
}
.mcq-opt-item:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.mcq-opt-item .opt-letter {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--off2); font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mcq-opt-item.correct { border-color: #16a34a; color: #15803d; background: #f0fdf4; }
.mcq-opt-item.correct .opt-letter { background: #16a34a; color: white; }
.mcq-opt-item.wrong { border-color: #dc2626; color: #b91c1c; background: #fef2f2; }
.mcq-opt-item.wrong .opt-letter { background: #dc2626; color: white; }

/* ---- FLASHCARD COMPONENT ---- */
.flashcard-section { background: linear-gradient(180deg, var(--white) 0%, var(--off) 100%); }
.fc-demo-wrap {
  max-width: 520px; margin: 0 auto;
}
.fc-card {
  perspective: 1200px; height: 220px; cursor: pointer; margin-bottom: 1.5rem;
}
.fc-inner {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.fc-inner.flipped { transform: rotateY(180deg); }
.fc-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border: 1px solid var(--border);
}
.fc-front { background: var(--white); box-shadow: var(--shadow); }
.fc-back  { background: linear-gradient(135deg, #0066cc, #0891b2); transform: rotateY(180deg); }
.fc-hint { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-bottom: .75rem; }
.fc-question { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.fc-answer { color: white; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.fc-hint-back { color: rgba(255,255,255,.6); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.fc-controls { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }

/* ---- AI TUTOR SECTION ---- */
.ai-section { background: linear-gradient(135deg, #f0f6ff 0%, #f5fbff 100%); }
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ai-chat-demo {
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden;
}
.ai-chat-header {
  background: linear-gradient(135deg, #0066cc, #0891b2);
  padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: .75rem;
}
.ai-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.ai-chat-header h4 { color: white; font-size: .95rem; font-weight: 700; }
.ai-chat-header p  { color: rgba(255,255,255,.7); font-size: .75rem; }
.ai-messages { padding: 1.25rem; display: flex; flex-direction: column; gap: .85rem; min-height: 220px; }
.ai-msg { max-width: 85%; padding: .75rem 1rem; border-radius: 12px; font-size: .87rem; line-height: 1.55; }
.ai-msg.user { align-self: flex-end; background: var(--blue); color: white; border-radius: 12px 12px 2px 12px; }
.ai-msg.bot  { align-self: flex-start; background: var(--off); border: 1px solid var(--border); border-radius: 12px 12px 12px 2px; }
.ai-input-row {
  padding: 1rem; border-top: 1px solid var(--border);
  display: flex; gap: .6rem;
}
.ai-input {
  flex: 1; border: 1px solid var(--border); border-radius: 100px;
  padding: .6rem 1.1rem; font-family: var(--font); font-size: .85rem;
  outline: none; transition: border-color .2s;
}
.ai-input:focus { border-color: var(--blue); }
.ai-send-btn {
  background: var(--blue); color: white; border: none; border-radius: 50%;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background .2s;
}
.ai-send-btn:hover { background: #004fa3; }

/* ---- NOTES SECTION ---- */
.note-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: all .22s;
}
.note-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.note-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.note-subject-badge { font-size: .7rem; font-weight: 600; padding: .25rem .65rem; border-radius: 100px; }
.note-date { font-size: .72rem; color: var(--text3); margin-left: auto; }
.note-card h4 { font-size: .97rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.4; }
.note-card p  { font-size: .84rem; color: var(--text2); line-height: 1.6; margin-bottom: 1rem; }
.note-footer { display: flex; align-items: center; gap: .75rem; }
.note-tag { font-size: .7rem; color: var(--text3); background: var(--off2); padding: .2rem .55rem; border-radius: 6px; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, #0066cc 0%, #0891b2 100%);
  border-radius: var(--radius-xl); padding: 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; width: 300px; height: 300px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.1);
  top: -100px; right: -50px;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: white; letter-spacing: -.03em; margin-bottom: .5rem; }
.cta-banner p  { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 420px; }
.btn-white-solid { background: white; color: var(--blue); font-weight: 700; border: none; }
.btn-white-solid:hover { background: #f0f6ff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* ---- FOOTER ---- */
.footer { background: #0a0e17; color: #c8d0dc; padding: 4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media(max-width:800px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer-brand .nav-logo { color: white; margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; color: #8896a9; line-height: 1.7; max-width: 260px; }
.footer-col h5 { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8896a9; margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: .88rem; color: #c8d0dc; margin-bottom: .6rem; transition: color .18s; }
.footer-col a:hover { color: white; }
.footer-bottom { padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .8rem; color: #8896a9; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  background: var(--off);
  border-bottom: 1px solid var(--border);
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.animate-in { animation: fadeIn .6s ease both; }

/* ---- RESPONSIVE ---- */
@media(max-width:980px){
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .ai-layout { grid-template-columns: 1fr; }
}
@media(max-width:768px){
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: 1rem; gap: .25rem; z-index: 199;
  }
  .nav-toggle { display: flex; }
  .section { padding: 3.5rem 0; }
  .cta-banner { padding: 2.5rem; text-align: center; justify-content: center; }
  .cta-banner::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
