/* ============================================================
   PHOSITA.AI landing - v2 dark / digital / luminous
   Palette: Ink #0A0A0A · Paper #FFFFFF · Science Blue #2563EB -> Innovation Purple #6D28D9
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --bg: #06070d;          /* page surface, a touch bluer than pure ink */
  --bg-2: #0a0c15;        /* alternating band */
  --surface: #0e1019;     /* cards */
  --surface-2: #12151f;
  --paper: #ffffff;
  --blue: #2563eb;
  --purple: #6d28d9;
  --grad: linear-gradient(120deg, #2563eb 0%, #6d28d9 100%);
  --grad-soft: linear-gradient(120deg, rgba(37,99,235,.16), rgba(109,40,217,.16));
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.60);
  --faint: rgba(255, 255, 255, 0.42);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600; font-size: 0.94rem;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-grad {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 22px -8px rgba(74, 58, 217, 0.65);
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(74, 58, 217, 0.8); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255,255,255,.28); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 7, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled { background: rgba(6, 7, 13, 0.85); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.01em; color: #fff; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 132px 0 120px; isolation: isolate; }
.hero-media {
  position: absolute; inset: 0; z-index: -3;
  background: #04050a url("media/phosita_hero_landscape_16x9_v2.webp") no-repeat;
  background-size: cover; background-position: 72% center;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 72% center;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-video.playing { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(6,7,13,0.86) 36%, rgba(6,7,13,0.28) 62%, rgba(6,7,13,0) 80%),
    linear-gradient(0deg, var(--bg) 2%, rgba(6,7,13,0) 30%);
}
.hero-inner { max-width: 720px; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; color: var(--blue); margin-bottom: 22px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 4.05rem); line-height: 1.05; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 24px;
}
.lede { font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: var(--muted); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 28px; font-size: 0.84rem; color: var(--faint); letter-spacing: 0.01em; }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 30px 24px; }
.trust-item { font-size: 0.88rem; color: var(--muted); display: flex; gap: 11px; align-items: flex-start; line-height: 1.5; }
.trust-item em { color: var(--text); font-style: italic; }
.dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--grad); box-shadow: 0 0 10px rgba(74,58,217,.7); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 1.06rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pillar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 14px 26px; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 24px 50px -28px rgba(74,58,217,.55); }
.pillar-img { border-radius: 11px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--border); aspect-ratio: 16 / 9; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.22rem; color: #fff; margin: 0 8px 10px; letter-spacing: -0.01em; }
.pillar p { color: var(--muted); font-size: 0.96rem; margin: 0 8px; }

/* ---------- Product preview ---------- */
.preview { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.preview-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.preview-copy h2 { margin-bottom: 26px; }
.ticks { list-style: none; display: grid; gap: 14px; margin: 0 0 30px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 5px;
  background: var(--grad-soft); border: 1px solid rgba(124, 92, 240, .45);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 3px;
  border-left: 1.6px solid #9db4ff; border-bottom: 1.6px solid #9db4ff; transform: rotate(-45deg);
}
.preview-figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.preview-figure img { width: 100%; }
.preview-figure figcaption { position: absolute; bottom: 10px; right: 12px; font-size: 0.7rem; color: var(--faint); background: rgba(6,7,13,.6); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); }

/* ---------- Doctrine ---------- */
.doctrine { text-align: center; }
.doctrine-inner { max-width: 880px; margin: 0 auto; }
.doctrine blockquote {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.18; letter-spacing: -0.02em; color: #fff;
  margin: 8px 0 24px;
}
.doctrine-sub { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin: 0 auto; }

/* ---------- Security ---------- */
.security { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.security-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.security-figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.security-copy h2 { margin: 14px 0 18px; }
.security-copy > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; isolation: isolate; }
.cta-media {
  position: absolute; inset: 0; z-index: -2;
  background: #06070d url("media/phosita_marketing_cta_16x9_v2.webp") no-repeat center / cover;
  opacity: 0.85;
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(6,7,13,.4), rgba(6,7,13,.92)); }
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 46px 0; background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.footer-brand .wordmark { font-size: 1.05rem; }
.footer-tag { font-size: 0.78rem; color: var(--faint); margin-top: 2px; }
.footer-disclaimer { font-size: 0.82rem; color: var(--faint); max-width: 560px; text-align: center; line-height: 1.5; }
.footer-copy { font-size: 0.82rem; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Motion: animated gradient text (Magic UI "Animated Gradient Text" spirit) ---------- */
.grad.sweep { background-size: 220% auto; animation: gradShift 7s linear infinite; }
@keyframes gradShift { to { background-position: 220% center; } }

/* ---------- Motion: aurora bloom (Aceternity "Aurora Background" spirit), behind the doctrine band ---------- */
.doctrine { position: relative; overflow: hidden; }
.doctrine::before, .doctrine::after {
  content: ""; position: absolute; z-index: 0; width: 58vw; max-width: 740px; aspect-ratio: 1;
  border-radius: 50%; filter: blur(96px); opacity: 0.2; pointer-events: none;
}
.doctrine::before { background: radial-gradient(circle, var(--blue), transparent 60%); top: -22%; left: -8%; animation: auroraA 16s var(--ease) infinite alternate; }
.doctrine::after  { background: radial-gradient(circle, var(--purple), transparent 60%); bottom: -26%; right: -6%; animation: auroraB 19s var(--ease) infinite alternate; }
.doctrine-inner { position: relative; z-index: 1; }
@keyframes auroraA { to { transform: translate(18%, 14%) scale(1.15); } }
@keyframes auroraB { to { transform: translate(-14%, -10%) scale(1.1); } }

/* ---------- Motion: card spotlight (Aceternity "Card Spotlight" / Magic UI "Magic Card" spirit) ---------- */
.pillar { position: relative; }
.pillar > * { position: relative; z-index: 1; }
.pillar::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 99, 235, 0.20), transparent 68%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.pillar:hover::before { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .preview-inner, .security-inner { grid-template-columns: 1fr; gap: 40px; }
  .security-figure { order: 2; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-disclaimer { text-align: center; }
}
@media (max-width: 560px) {
  .hero { padding: 92px 0 84px; }
  .hero-media, .hero-video { background-position: 64% center; object-position: 64% center; }
  .hero-scrim { background: linear-gradient(0deg, var(--bg) 14%, rgba(6,7,13,.55) 60%, rgba(6,7,13,.35) 100%); }
  .section { padding: 76px 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Reduced motion (hard requirement) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pillar { transition: none; }
  .btn-grad:hover, .pillar:hover { transform: none; }
  .grad.sweep { animation: none; }
  .doctrine::before, .doctrine::after { animation: none; }
  .pillar::before { display: none; }
  .hero-video { display: none; }
}
