/* =========================================================
   VOLARI. Design System
   ========================================================= */

:root {
  /* Colors */
  --navy-950:  #070B14;
  --navy-900:  #0B1220;
  --navy-800:  #121A2B;
  --navy-700:  #1C2740;

  --slate-500: #6B7891;
  --slate-400: #8A97AE;
  --slate-300: #A9B4C7;
  --slate-200: #C9D1DE;

  --off-white: #F7F8FA;
  --white:     #FFFFFF;
  --line:      #E6E9EF;

  --ink-900:   #0B1220;
  --ink-700:   #2A3346;
  --ink-600:   #4A5568;
  --ink-500:   #6B7688;

  --amber-600: #D98A0F;
  --amber-500: #F5A623;
  --amber-400: #FFB84D;
  --amber-050: #FFF6E6;

  /* Type */
  --font-display: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 1px 1px rgba(11,18,32,.04);
  --shadow-md: 0 4px 16px rgba(11,18,32,.06), 0 2px 4px rgba(11,18,32,.04);
  --shadow-lg: 0 20px 48px rgba(11,18,32,.10), 0 4px 12px rgba(11,18,32,.05);

  /* Layout */
  --container: 1160px;
  --container-tight: 860px;
  --gutter: 24px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-900);
  margin: 0;
  text-transform: capitalize;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin: 0 0 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 16px;
  text-transform: capitalize;
}
.section-lede {
  font-size: 18px;
  color: var(--ink-600);
  max-width: 620px;
  margin: 0 0 48px;
}
.accent { color: var(--amber-500); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .18s var(--ease), color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease),
              border-color .18s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--amber-500);
  color: var(--ink-900);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 18px rgba(245,166,35,.25);
}
.btn--primary:hover {
  background: var(--amber-400);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px rgba(245,166,35,.35);
}
.btn--primary:active { transform: translateY(0); background: var(--amber-600); }

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--ink-900);
  background: rgba(11,18,32,.03);
}
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }

.hero .btn--ghost,
.demo .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.18);
}
.hero .btn--ghost:hover {
  border-color: var(--amber-500);
  background: rgba(245,166,35,.08);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,18,32,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav--scrolled {
  background: rgba(11,18,32,.94);
  border-bottom-color: rgba(255,255,255,.09);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand img { height: 32px; width: auto; display: block; }
.nav__links {
  display: none;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a {
  color: var(--slate-200);
  transition: color .18s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__cta { display: none; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: rgba(11,18,32,.98);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__mobile a {
  padding: 12px 0;
  color: var(--slate-200);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__mobile a.btn {
  margin-top: 12px;
  border-bottom: 0;
  color: var(--ink-900);
}

@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle, .nav__mobile { display: none !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  padding: 168px 0 140px;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,18,32,.75) 0%, rgba(11,18,32,.55) 40%, rgba(11,18,32,.9) 100%),
    radial-gradient(1000px 500px at 80% -10%, rgba(245,166,35,.14), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow { color: var(--amber-400); }
.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--white);
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  text-transform: capitalize;
}
.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--slate-200);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.hero__note {
  font-size: 14px;
  color: var(--slate-400);
  margin: 0;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: 96px 0; }
@media (min-width: 900px) {
  section { padding: 120px 0; }
}

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #D8DDE6;
}
.card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  text-transform: capitalize;
}
.card p { margin: 0; color: var(--ink-600); font-size: 16px; }

.problem { background: var(--off-white); }
.problem .section-title { max-width: 720px; }

/* =========================================================
   PRODUCT
   ========================================================= */
.product {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product__head {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}
@media (min-width: 800px) {
  .product__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 40px;
  }
  .product__head .section-lede { margin: 0; }
}
.product__body {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .product__body { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

.product__layers {
  display: grid;
  gap: 24px;
}

.layer {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 28px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.layer:hover {
  border-color: var(--amber-500);
  background: var(--amber-050);
}
.layer__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--amber-500);
  line-height: 1;
  letter-spacing: -0.03em;
}
.layer__body h3 {
  font-size: 20px;
  margin: 0 0 8px;
  text-transform: capitalize;
}
.layer__body p {
  margin: 0;
  color: var(--ink-600);
  font-size: 15px;
}

.product__figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--off-white);
  box-shadow: var(--shadow-md);
  position: relative;
  aspect-ratio: 4 / 3;
}
.product__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product__figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(11,18,32,.85);
  color: var(--white);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.product__figure.is-placeholder {
  background:
    linear-gradient(135deg, var(--navy-800), var(--navy-700)),
    var(--navy-800);
}
.product__figure.is-placeholder::before {
  content: "Portal preview coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing { background: var(--off-white); }
.pricing__grid { align-items: stretch; }

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.price-card__name {
  font-size: 22px;
  margin: 0 0 6px;
  text-transform: capitalize;
}
.price-card__desc { color: var(--ink-600); font-size: 15px; margin: 0 0 24px; }
.price-card__price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  line-height: 1;
}
.price-card__price span { font-size: 44px; }
.price-card__setup { font-size: 14px; color: var(--ink-500); margin: 0 0 28px; }
.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-card__features li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink-700);
}
.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--amber-050);
  border: 1px solid var(--amber-400);
}
.price-card__features li::after {
  content: "";
  position: absolute;
  left: 5px; top: 10px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--amber-600);
  border-bottom: 2px solid var(--amber-600);
  transform: rotate(-45deg);
}

.price-card--featured {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.price-card--featured .price-card__name { color: var(--white); }
.price-card--featured .price-card__desc { color: var(--slate-300); }
.price-card--featured .price-card__price { color: var(--white); }
.price-card--featured .price-card__setup { color: var(--slate-400); }
.price-card--featured .price-card__features li { color: var(--slate-200); }
.price-card--featured .price-card__features li::before {
  background: rgba(245,166,35,.15);
  border-color: var(--amber-500);
}
.price-card--featured .price-card__features li::after {
  border-color: var(--amber-400);
}
.price-card__badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--amber-500);
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
@media (min-width: 800px) {
  .price-card--featured { transform: translateY(-8px); }
  .price-card--featured:hover { transform: translateY(-10px); }
}

.pricing__note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 40px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--white); }
.about__inner {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .about__inner { grid-template-columns: 1fr 1.3fr; gap: 72px; }
}
.about__figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--off-white);
}
.about__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(11,18,32,.85);
  color: var(--white);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.about__figure.is-placeholder {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}
.about__figure.is-placeholder::before {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about__text p { color: var(--ink-600); margin: 0 0 18px; }
.about__sig {
  font-size: 15px;
  color: var(--ink-600) !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 28px !important;
}
.about__sig strong { color: var(--ink-900); }
.about__sig span { color: var(--ink-500); font-size: 14px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--off-white); }
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--container-tight);
}
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 24px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.faq details[open] {
  border-color: var(--amber-500);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-transform: capitalize;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--amber-500);
  transition: transform .22s var(--ease);
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0 0 20px;
  color: var(--ink-600);
  font-size: 16px;
  max-width: 660px;
}

/* =========================================================
   DEMO
   ========================================================= */
.demo {
  background: var(--navy-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 100% 0%, rgba(245,166,35,.12), transparent 60%);
  pointer-events: none;
}
.demo__inner {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: start;
}
@media (min-width: 900px) {
  .demo__inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.demo .eyebrow { color: var(--amber-400); }
.demo .section-title { color: var(--white); }
.demo__text p { color: var(--slate-200); margin: 0; max-width: 480px; }

.demo__form {
  display: grid;
  gap: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-300);
  letter-spacing: 0.01em;
}
.field .optional { color: var(--slate-500); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(7,11,20,.5);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: 15px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--slate-500); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  background: rgba(7,11,20,.8);
}
.field textarea { resize: vertical; min-height: 100px; font-family: inherit; }

.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.demo__fine {
  font-size: 13px;
  color: var(--slate-400);
  text-align: center;
  margin: 4px 0 0;
}
.demo__fine a { color: var(--amber-400); }
.demo__fine a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 72px 0 32px;
}
.footer__inner {
  display: grid;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (min-width: 800px) {
  .footer__inner { grid-template-columns: 1.6fr 1fr; }
}
.footer__brand img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.footer__brand p { margin: 0; color: var(--slate-400); font-size: 15px; max-width: 320px; }
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer__cols h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-family: var(--font-body);
  margin: 0 0 16px;
}
.footer__cols a {
  display: block;
  color: var(--slate-300);
  font-size: 15px;
  padding: 6px 0;
  transition: color .18s var(--ease);
}
.footer__cols a:hover { color: var(--amber-400); }
.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  font-size: 13px;
  color: var(--slate-500);
}
.footer__base p { margin: 0; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}