/* landing_hero.css — Hero section + glassmorphism navbar for Kivo landing page.
 * "The Digital Surgeon" dark theme with teal accents.
 * Compiled/served file. Edit in sync with landing_hero.scss (documentation).
 * ─────────────────────────────────────────────────────────────────────────── */

/* ── DESIGN TOKENS (dark mode defaults) ─────────────────────────────────── */
:root {
  --lp-primary:       #00F5D4;        /* electric teal */
  --lp-secondary:     #0F172A;        /* deep navy */
  --lp-tertiary:      #38BDF8;        /* sky blue */
  --lp-bg:            #0a0f13;        /* darkest surface */
  --lp-surface:       #0f1418;        /* card surface */
  --lp-surface-high:  #1b2026;        /* elevated card */
  --lp-text:          #f1f4fa;        /* primary text */
  --lp-text-muted:    #a8abb1;        /* secondary text */
  --lp-outline:       #44484d;        /* ghost border */

  /* Transitions */
  --lp-t-fast: 160ms ease;
  --lp-t-med:  260ms ease;

  /* Radii */
  --lp-radius:      20px;
  --lp-radius-sm:   12px;
  --lp-radius-pill: 999px;
}

/* ── LIGHT MODE OVERRIDES ────────────────────────────────────────────────── */
[data-theme="light"] {
  --lp-bg:           #f0fdfa;
  --lp-surface:      #ffffff;
  --lp-surface-high: #e6faf6;
  --lp-text:         #0f172a;
  --lp-text-muted:   #475569;
  --lp-outline:      #cbd5e1;
}

/* ── BASE ────────────────────────────────────────────────────────────────── */
.landing-page {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── CONTAINER ───────────────────────────────────────────────────────────── */
.lp-container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 28px;
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
.lp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--reveal-delay, 0ms);
}
.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO PANEL ENTER ANIMATION ─────────────────────────────────────────── */
@keyframes lp-panel-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-hero__panel.is-entering {
  animation: lp-panel-enter 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ── FLOATING GLASSMORPHISM NAVBAR ──────────────────────────────────────── */
.lp-nav {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 15, 19, 0.72);
  border: 1px solid rgba(0, 245, 212, 0.12);
  border-radius: 16px;
  left: 16px;
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 200;
}

[data-theme="light"] .lp-nav {
  background: rgba(240, 253, 250, 0.82);
  border-color: rgba(0, 245, 212, 0.22);
}

.lp-nav__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 20px;
}

.lp-nav__actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

/* ── BRAND ───────────────────────────────────────────────────────────────── */
.lp-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
  transition: opacity var(--lp-t-fast);
}
.lp-brand:hover { opacity: 0.80; }

.lp-brand__mark {
  align-items: center;
  background: var(--lp-primary);
  border-radius: 10px;
  color: #0a0f13;
  display: flex;
  font-family: "Bungee", cursive;
  font-size: 17px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.lp-brand__name {
  color: var(--lp-text);
  font-family: "Bungee", cursive;
  font-size: 20px;
  letter-spacing: 0.02em;
}

/* ── THEME TOGGLE ────────────────────────────────────────────────────────── */
.lp-theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--lp-outline);
  border-radius: var(--lp-radius-pill);
  color: var(--lp-text-muted);
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  transition: background var(--lp-t-fast), border-color var(--lp-t-fast), color var(--lp-t-fast);
  width: 36px;
}
.lp-theme-toggle:hover {
  background: rgba(0, 245, 212, 0.10);
  border-color: var(--lp-primary);
  color: var(--lp-primary);
}
.lp-theme-toggle:focus-visible {
  outline: 3px solid var(--lp-primary);
  outline-offset: 3px;
}

/* Show moon in dark mode, sun in light mode */
.lp-theme-toggle__moon { display: block; }
.lp-theme-toggle__sun  { display: none;  }

[data-theme="light"] .lp-theme-toggle__moon { display: none;  }
[data-theme="light"] .lp-theme-toggle__sun  { display: block; }

/* ── NAV CTA ─────────────────────────────────────────────────────────────── */
.lp-nav__cta {
  font-size: 14px;
  min-height: 36px;
  padding: 8px 18px;
}

/* ── NAV LINKS ───────────────────────────────────────────────────────────── */
.lp-nav__links {
  align-items: center;
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-nav__link {
  border-radius: 8px;
  color: var(--lp-text-muted);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  text-decoration: none;
  transition: background var(--lp-t-fast), color var(--lp-t-fast);
}

.lp-nav__link:hover {
  background: rgba(0, 245, 212, 0.08);
  color: var(--lp-primary);
}

.lp-nav__link:focus-visible {
  outline: 3px solid var(--lp-primary);
  outline-offset: 3px;
}

[data-theme="light"] .lp-nav__link { color: var(--lp-text-muted); }
[data-theme="light"] .lp-nav__link:hover { color: var(--lp-primary); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.lp-btn {
  align-items: center;
  border: none;
  border-radius: var(--lp-radius-pill);
  cursor: pointer;
  display: inline-flex;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  line-height: 1;
  min-height: 46px;
  padding: 12px 24px;
  text-decoration: none;
  transition:
    background var(--lp-t-fast),
    box-shadow var(--lp-t-fast),
    border-color var(--lp-t-fast),
    color var(--lp-t-fast),
    opacity var(--lp-t-fast),
    transform var(--lp-t-fast);
  white-space: nowrap;
}
.lp-btn:focus-visible {
  outline: 3px solid var(--lp-primary);
  outline-offset: 3px;
}
.lp-btn--lg { font-size: 16px; min-height: 54px; padding: 15px 32px; }

/* Primary — solid teal, dark text */
.lp-btn--primary {
  background: var(--lp-primary);
  box-shadow: 0 4px 22px rgba(0, 245, 212, 0.28);
  color: #0a0f13;
}
.lp-btn--primary:hover {
  box-shadow: 0 8px 32px rgba(0, 245, 212, 0.42);
  color: #0a0f13;
  transform: translateY(-2px) scale(1.02);
}
.lp-btn--primary:active { transform: translateY(0) scale(0.99); }

/* Secondary — ghost with teal border */
.lp-btn--secondary {
  background: transparent;
  border: 1.5px solid var(--lp-primary);
  color: var(--lp-primary);
}
.lp-btn--secondary:hover {
  background: rgba(0, 245, 212, 0.10);
  color: var(--lp-primary);
  transform: translateY(-2px) scale(1.02);
}
.lp-btn--secondary:active { transform: translateY(0) scale(0.99); }

/* Outline — nav link */
.lp-btn--outline {
  background: transparent;
  border: 1.5px solid var(--lp-outline);
  color: var(--lp-text-muted);
  font-size: 14px;
  min-height: 36px;
  padding: 8px 18px;
}
.lp-btn--outline:hover {
  border-color: var(--lp-primary);
  color: var(--lp-primary);
  transform: scale(1.02);
}

/* ── HERO SECTION — audience toggle, light theme ────────────────────────── */
.lp-hero {
  background: var(--kivo-bg, #F8FAFC);
  overflow: hidden;
  padding: 152px 0 88px;
  position: relative;
}

.lp-hero__content {
  position: relative;
  z-index: 1;
}

/* ── AUDIENCE TOGGLE ─────────────────────────────────────────────────────── */
.lp-audience-toggle {
  background: var(--kivo-surface-soft, #F1F5F9);
  border: 1px solid var(--kivo-border, #E2E8F0);
  border-radius: var(--kivo-radius, 9999px);
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 40px;
  padding: 4px;
}

.lp-audience-toggle__btn {
  background: transparent;
  border: none;
  border-radius: var(--kivo-radius, 9999px);
  color: var(--kivo-text-muted, #64748B);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.lp-audience-toggle__btn.is-active {
  background: var(--kivo-surface, #ffffff);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  color: var(--kivo-text, #0F172A);
}

.lp-audience-toggle__btn:focus-visible {
  outline: 3px solid var(--kivo-blue, #3B82F6);
  outline-offset: 2px;
}

/* ── HERO PANEL ──────────────────────────────────────────────────────────── */
.lp-hero__panel {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 1.1fr 1fr;
  text-align: left;
}

.lp-hero__panel[hidden] {
  display: none;
}

/* Eyebrow pill badge */
.lp-hero__eyebrow {
  background: var(--kivo-grad-soft);
  border-radius: var(--kivo-radius, 9999px);
  color: var(--kivo-purple, #7C3AED);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
  padding: 6px 16px;
  text-transform: uppercase;
}

/* Headline */
.lp-hero__headline {
  color: var(--kivo-text, #0F172A);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
}

/* Gradient accent span */
.lp-hero__accent {
  background: var(--kivo-grad);
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  -webkit-text-fill-color: transparent;
}

/* Subtext */
.lp-hero__sub {
  color: var(--kivo-text-muted, #64748B);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 480px;
}

/* CTA row */
.lp-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin-bottom: 0;
}

/* Social-proof line — registered owner counter */
.lp-hero__social-proof {
  align-items: center;
  color: var(--kivo-text-muted, #64748B);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  margin: 16px 0 0;
}

.lp-hero__social-proof::before {
  background: var(--lp-primary, #00F5D4);
  border-radius: 50%;
  content: "";
  display: inline-block;
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}

/* ── HERO CTAs (scoped — gradient primary / outline secondary) ──────────── */
.lp-hero__cta {
  align-items: center;
  border-radius: var(--kivo-radius, 9999px);
  display: inline-flex;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  line-height: 1;
  min-height: 54px;
  padding: 15px 32px;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.lp-hero__cta--primary {
  background: var(--kivo-grad);
  box-shadow: var(--kivo-shadow-lg, 0 16px 40px rgba(15, 23, 42, .10));
  color: #ffffff;
}

.lp-hero__cta--primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.lp-hero__cta--secondary {
  background: var(--kivo-surface, #ffffff);
  border: 1.5px solid var(--kivo-border, #E2E8F0);
  color: var(--kivo-text, #0F172A);
}

.lp-hero__cta--secondary:hover {
  border-color: var(--kivo-blue, #3B82F6);
  transform: translateY(-2px);
}

.lp-hero__cta:focus-visible {
  outline: 3px solid var(--kivo-blue, #3B82F6);
  outline-offset: 3px;
}

/* ── HERO VISUAL ─────────────────────────────────────────────────────────── */
.lp-hero__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--kivo-radius-lg, 16px);
  overflow: hidden;
  width: 100%;
}

.lp-hero__img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* ── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-hero__panel.is-entering { animation: none; }
  .lp-btn,
  .lp-brand,
  .lp-theme-toggle,
  .lp-hero__cta,
  .lp-audience-toggle__btn { transition: none; }
  .lp-btn:hover,
  .lp-btn--primary:hover,
  .lp-btn--secondary:hover,
  .lp-btn--outline:hover,
  .lp-hero__cta:hover { transform: none; }
}

/* ── RESPONSIVE — 1024px ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lp-hero { padding: 140px 0 72px; }
}

/* ── RESPONSIVE — 900px ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lp-hero__sub { margin-left: auto; margin-right: auto; }
  .lp-hero__actions { justify-content: center; }
  .lp-hero__social-proof { justify-content: center; width: 100%; }
  .lp-hero__visual { aspect-ratio: 16 / 9; order: 3; }
}

/* ── RESPONSIVE — 768px ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lp-nav { left: 12px; right: 12px; top: 12px; }
  .lp-nav__inner { min-height: 54px; padding: 0 16px; }
  .lp-nav__links { display: none; }
  .lp-hero { padding: 128px 0 64px; }
}

/* ── RESPONSIVE — 640px ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lp-nav__actions { gap: 8px; }
  .lp-hero { padding: 116px 0 56px; }
  .lp-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .lp-hero__cta { width: 100%; }
  .lp-audience-toggle { width: 100%; }
  .lp-audience-toggle__btn { flex: 1; }
}

/* ── RESPONSIVE — 375px ──────────────────────────────────────────────────── */
@media (max-width: 375px) {
  .lp-nav { border-radius: 12px; left: 8px; right: 8px; top: 8px; }
  .lp-brand__name { font-size: 17px; }
}
