/* ============================================================
   MoodChanger.AI — Nav · Hero · Stats · CTA · Footer  (v2)
   ============================================================ */

/* ---------------------------------------------------------------
   NAV
--------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .3s var(--ease);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }

/* wordmark */
.brand { display: flex; align-items: center; gap: var(--s3); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--teal); display: grid; place-items: center; overflow: hidden;
}
[data-theme="dark"] .brand-mark { background: rgba(255,255,255,.08); }
.brand-mark .brand-logo { width: auto; height: 22px; object-fit: contain; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: .01em; }
.brand-word .y { color: var(--accent-text); }

.nav-links { display: flex; align-items: center; gap: var(--s2); }
.nav-item { position: relative; }
/* invisible hover bridge under the label so the menu doesn't close in the gap */
.nav-item::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; display: none;
}
.nav-item:hover::after { display: block; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14.5px; color: var(--fg-muted);
  transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--fg); background: var(--bg-2); }
.nav-link svg.chev { width: 14px; height: 14px; transition: transform .2s var(--ease); opacity: .7; }
.nav-item:hover .nav-link svg.chev { transform: rotate(180deg); }

/* dropdown */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 234px; padding: var(--s3);
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  display: grid; gap: 2px;
}
/* invisible bridge so the cursor can cross the gap without closing the menu */
.dropdown::before {
  content: ""; position: absolute; left: -20px; right: -20px; top: -14px; height: 16px;
}
.dropdown.wide { min-width: 320px; grid-template-columns: 1fr 1fr; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.dd-top {
  grid-column: 1 / -1; font-family: var(--font-body); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700; color: var(--fg-dim); padding: 6px 12px 8px;
}
.dd-link {
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--fg-muted);
  transition: background .15s, color .15s; display: flex; align-items: center; gap: 9px;
}
.dd-link::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transition: transform .15s; }
.dd-link:hover { background: var(--bg-2); color: var(--fg); }
.dd-link:hover::before { transform: scale(1.5); }

/* right cluster */
.nav-right { display: flex; align-items: center; gap: var(--s3); }

/* theme toggle */
.theme-toggle {
  width: 56px; height: 30px; border-radius: var(--r-pill); position: relative;
  background: var(--bg-2); border: 1px solid var(--line-2);
  cursor: pointer; padding: 0; flex: none; transition: background .3s, border-color .3s;
}
.theme-toggle .knob {
  position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; color: #1C4259;
  transition: transform .32s var(--ease);
}
[data-theme="dark"] .theme-toggle .knob { transform: translateX(26px); }
.theme-toggle .knob svg { width: 14px; height: 14px; }
.theme-toggle .sun { display: block; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* mobile burger */
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; background: transparent;
  border: 1px solid var(--line-2); color: var(--fg); cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: grid; }
}

/* mobile sheet */
.sheet {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--bg);
  padding: var(--s6); overflow-y: auto;
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.sheet.open { transform: none; opacity: 1; visibility: visible; }
.sheet a { display: block; padding: 13px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.sheet .grp { font-family: var(--font-body); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--fg-dim); margin-top: var(--s5); }

/* ---------------------------------------------------------------
   HERO — editorial headline + product shot
--------------------------------------------------------------- */
.hero { padding: calc(var(--nav-h) + var(--s10)) 0 var(--s10); border: 0; }
.hero-center { max-width: 880px; margin: 0 auto; text-align: center; }
.eyebrow.center.hero-kicker { justify-content: center; margin-bottom: var(--s5); }

.hero h1.hero-head {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 66px); line-height: 1.06; letter-spacing: -.035em;
  color: var(--fg); margin: 0 auto; max-width: none; text-wrap: pretty;
}
.hero h1.hero-head .y { color: var(--accent-text); }

.hero-sub { font-size: 20px; color: var(--fg-muted); }
.hero-center .hero-sub { margin: var(--s5) auto 0; max-width: 660px; text-wrap: balance; }
.hero-sub strong { color: var(--fg); font-weight: 700; }
.hero-cta { display: flex; gap: var(--s4); flex-wrap: wrap; }
.hero-center .hero-cta { justify-content: center; margin-top: var(--s7); }

/* left-aligned hero (interior pages) */
.hero-left { max-width: 820px; margin: 0; text-align: left; }
.hero-left .hero-kicker { margin-bottom: var(--s5); }
.hero-left .hero-head { margin: 0; max-width: none; text-wrap: balance; }
.hero-left .hero-sub { margin: var(--s5) 0 0; max-width: 720px; text-wrap: pretty; }
.hero-left .hero-cta { justify-content: flex-start; margin-top: var(--s7); }

/* product shot frame — clean, soft, reads as an app */
.hero-shot {
  max-width: 1040px; margin: var(--s10) auto 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px var(--s5); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.hero-shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); flex: none; }
.hero-shot-bar .addr {
  margin-left: var(--s4); font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  color: var(--fg-dim); letter-spacing: .02em;
}
.hero-shot-img {
  position: relative; aspect-ratio: 16 / 9; background: var(--bg-2);
  display: grid; place-items: center; overflow: hidden;
}
.hero-shot-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-shot-ph {
  display: flex; flex-direction: column; align-items: center; gap: var(--s3);
  color: var(--fg-dim); text-align: center; padding: var(--s6);
}
.hero-shot-ph svg { width: 34px; height: 34px; opacity: .7; }
.hero-shot-ph span { font-size: 14px; font-weight: 600; letter-spacing: .01em; }

/* live-presentation card — flat */
.live-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-lg);
  padding: var(--s3);
}
.live-frame {
  position: relative; aspect-ratio: 16/10; border-radius: var(--r);
  overflow: hidden; background: #06141a;
}
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-badge {
  position: absolute; top: var(--s4); left: var(--s4); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  background: rgba(14,38,48,.78); color: #fff; padding: 6px 13px; border-radius: var(--r-pill);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,93,93,.5)} 70%{box-shadow:0 0 0 9px rgba(255,93,93,0)} 100%{box-shadow:0 0 0 0 rgba(255,93,93,0)} }
.live-foot { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s3) var(--s2); }
.live-foot .meta { font-family: var(--font-body); font-size: 13px; color: var(--fg-dim); font-weight: 600; }

@media (max-width: 680px) {
  .hero { padding: calc(var(--nav-h) + var(--s8)) 0 var(--s8); }
  .hero-shot { margin-top: var(--s8); }
}

/* ---------------------------------------------------------------
   AUDIENCE CARDS — "Choose your world" (calm static grid)
--------------------------------------------------------------- */
.aud-grid { margin-top: var(--s2); }
.aud {
  position: relative; border-radius: var(--r-lg);
  border: 1px solid var(--card-line); background: var(--card-bg); box-shadow: var(--shadow);
  padding: var(--s5);
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.aud:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,.22); }
.aud-glyph {
  width: 46px; height: 46px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--card-ico-bg); color: var(--card-ico-fg); margin-bottom: var(--s4);
}
.aud-glyph svg { width: 22px; height: 22px; }
.aud h3 { font-size: 20px; margin-bottom: var(--s2); letter-spacing: -.01em; color: var(--card-title); }
.aud p { color: var(--card-muted); font-size: 14.5px; flex: 1; line-height: 1.55; }
.aud-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s4); font-weight: 700; color: var(--card-title); }
.aud-cta svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }

/* compact variant: tiles without an Explore link (Core Capabilities, Features) */
.aud:not(:has(.aud-cta)) { padding: var(--s5) var(--s5) calc(var(--s5) - 4px); }
.aud:not(:has(.aud-cta)) .aud-glyph { width: 42px; height: 42px; margin-bottom: var(--s3); }
.aud:not(:has(.aud-cta)) .aud-glyph svg { width: 20px; height: 20px; }
.aud:not(:has(.aud-cta)) h3 { font-size: 18px; margin-bottom: 6px; }
.aud:not(:has(.aud-cta)) p { flex: none; font-size: 14px; }
.aud:hover .aud-cta svg { transform: translateX(5px); }

/* ---------------------------------------------------------------
   STATS STRIP
--------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.stat { padding: var(--s5) 0; border-top: 2px solid var(--accent); }
.stat .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.03em; color: var(--fg); }
.stat .v .u { color: var(--accent-text); }
.stat .k { font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--fg-muted); margin-top: 8px; }
@media (max-width: 680px) { .stats { grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s5); } }

/* single feature line — 24/7 AI Support */
.feature-line {
  max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: var(--s7);
  justify-content: center;
}
.feature-line .fl-v {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 8vw, 96px);
  line-height: 1; letter-spacing: -.04em; color: var(--fg); flex: none;
}
.feature-line .fl-v .u { color: var(--accent-text); }
.feature-line .fl-body { border-left: 2px solid var(--accent); padding-left: var(--s6); }
.fl-title { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; color: var(--fg); margin-bottom: 8px; }
.fl-text { color: var(--fg-muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; text-wrap: pretty; }
@media (max-width: 600px) {
  .feature-line { flex-direction: column; text-align: center; gap: var(--s4); }
  .feature-line .fl-body { border-left: 0; border-top: 2px solid var(--accent); padding-left: 0; padding-top: var(--s4); }
}

/* ---------------------------------------------------------------
   CTA BAND — solid teal block (premium full-color moment)
--------------------------------------------------------------- */
.cta-band { padding: var(--s10) 0; }
.cta-inner {
  position: relative; text-align: center;
  border-radius: var(--r-lg);
  padding: var(--s10) var(--s7); background: var(--teal); overflow: hidden;
}
.cta-inner .eyebrow { color: rgba(255,255,255,.62); }
.cta-inner h2 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.03em; }
.cta-inner p { color: rgba(255,255,255,.78); max-width: 620px; margin: var(--s4) auto var(--s7); font-size: 18px; text-wrap: balance; }
.cta-inner .caipo { color: var(--accent); }
.cta-inner .hero-cta { justify-content: center; }
.cta-inner .btn-caipo { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-inner .btn-caipo:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.6fr 1.2fr;
  gap: var(--s7);
  padding-bottom: 28px;
  align-items: start;
}
.fc { min-width: 0; }
.fc-portfolio, .fc-news { border-left: 1px solid var(--line); padding-left: var(--s6); }

.f-head {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: -.01em; margin: 0 0 var(--s4); color: var(--fg);
  white-space: nowrap; line-height: 34px;
}
.f-head .acc { color: var(--accent-text); }

/* col 1 */
.fc-brand .brand { margin-bottom: var(--s4); }
.f-desc { color: var(--fg-muted); font-size: 13.5px; line-height: 1.6; max-width: 340px; margin-bottom: var(--s5); }
.f-social { display: flex; align-items: center; gap: var(--s4); }
.f-social a {
  width: 30px; height: 30px; display: grid; place-items: center; color: var(--fg-dim);
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.f-social a svg { width: 22px; height: 22px; }
.f-social a:hover { color: var(--accent-text); transform: translateY(-2px); }

/* col 2 — portfolio */
.f-port-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s5); }
.f-port-lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.f-port-lists a { color: var(--fg-muted); font-size: 12.5px; line-height: 1.25; white-space: nowrap; transition: color .15s; }
.f-port-lists a:hover { color: var(--accent-text); }

/* col 3 — newsletter */
.f-news-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s5); background: var(--bg-2);
}
.f-news-card p { color: var(--fg-muted); font-size: 13.5px; line-height: 1.55; margin-bottom: var(--s4); }
.f-news-form {
  display: flex; align-items: center; gap: 5px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 5px; background: var(--card);
}
.f-news-input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 13px; color: var(--fg); padding: 12px 14px;
}
.f-news-input::placeholder { color: var(--fg-dim); }
.f-news-btn {
  flex: none; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-body);
  font-weight: 700; font-size: 14.5px; padding: 12px 20px; border-radius: var(--r-sm);
  transition: background .18s, transform .15s;
}
.f-news-btn:hover { background: var(--accent-press); transform: translateY(-1px); }
.f-news-btn:active { transform: translateY(0); }

/* bottom band */
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.f-tagline {
  font-family: var(--font-display); font-weight: 600; color: var(--fg);
  font-size: clamp(17px, 1.9vw, 22px); letter-spacing: -.01em; line-height: 1.4;
  max-width: 1000px; margin: 0 auto 20px; text-wrap: balance;
}
.f-links { display: flex; justify-content: center; gap: var(--s8); flex-wrap: wrap; }
.f-links a { color: var(--accent-text); font-weight: 600; font-size: 15px; transition: opacity .15s; }
.f-links a:hover { opacity: .7; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1.4fr; }
  .fc-news { border-left: 0; padding-left: 0; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--s6); }
  .f-port-lists a { white-space: normal; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .fc-portfolio { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s6); }
}
@media (max-width: 480px) {
  .f-port-lists { grid-template-columns: 1fr; }
  .f-links { gap: var(--s5); }
}
