/* Vestra Deepfield: corporate house style (guidelines.md), one page, no build step. */
@font-face { font-family: "Vestra Display"; src: url("../fonts/InterDisplay-Bold-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vestra Text"; src: url("../fonts/Inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #000;
  --bg-2: #07080a;
  --text: #f2f4f7;
  --text-2: #b9c0ca;
  --muted: #8c95a2;
  --action: #2563eb;
  --action-hover: #1d4ed8;
  --signal: #8ab4ff;
  --rule: rgba(255, 255, 255, .09);
  --display: "Vestra Display", "Vestra Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Vestra Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(1rem, .6rem + 2vw, 3rem);
  --s: clamp(1rem, .95rem + .25vw, 1.25rem);
  --m: clamp(1.5rem, 1.35rem + .6vw, 2rem);
  --l: clamp(2.5rem, 2rem + 2vw, 4rem);
  --xl: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .9em; color: var(--text); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.sprite { display: none; }
.ico { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: .6rem 1rem; border-radius: 999px; background: var(--action); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: .75rem; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; transition: background-color .3s var(--ease), backdrop-filter .3s var(--ease); }
.nav.is-scrolled { background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-inner { display: flex; align-items: center; gap: var(--m); height: 100%; }
.brand { display: inline-flex; white-space: nowrap; align-items: center; gap: .6rem; font: 700 1.05rem/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 28px; height: auto; }
.nav-links { display: flex; gap: var(--m); margin-left: auto; font-size: .9rem; }
.nav-links a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; border-radius: 999px; background: var(--action); color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.nav-cta:hover { background: var(--action-hover); }

/* Hero */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(100svh, 980px); padding-top: calc(64px + var(--xl)); overflow: hidden; isolation: isolate; }
.hero-copy { position: relative; z-index: 2; padding-bottom: max(18rem, 31vw); }
.hero-title { margin: 0; max-width: 12ch; font: 700 clamp(2.5rem, 1.1rem + 6vw, 6.25rem)/.98 var(--display); letter-spacing: -.048em; }
.hero-lede { margin: var(--m) 0 0; max-width: 44rem; color: var(--text-2); font-size: clamp(1.06rem, .98rem + .35vw, 1.3rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s) var(--m); margin-top: var(--l); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; background: var(--action); color: #fff; font-size: .98rem; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.btn:hover { background: var(--action-hover); }
.link-chev, .title-link { display: inline-flex; align-items: center; gap: .3em; color: var(--signal); font-weight: 600; text-decoration: none; }
.link-chev:hover, .title-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.link-chev .ico { transition: transform .25s var(--ease); }
.link-chev:hover .ico { transform: translateX(2px); }
.horizon { position: absolute; inset: auto 0 0; z-index: 1; pointer-events: none; }
.horizon img { width: 100%; min-width: 820px; margin-left: 50%; transform: translateX(-50%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 55%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 55%, transparent); }

/* Sections */
.section { padding: var(--xl) 0; background: var(--bg); }
.section-head { margin-bottom: var(--l); }
.h2 { margin: 0; font: 700 clamp(2.25rem, 1.3rem + 3.8vw, 4.75rem)/1.02 var(--display); letter-spacing: -.042em; }
.title-link { color: var(--text); font-weight: 700; }
.title-link .ico { width: .55em; height: .55em; color: var(--signal); }
.section-note { margin: var(--m) 0 0; max-width: 44rem; color: var(--text-2); font-size: clamp(1.06rem, .98rem + .35vw, 1.3rem); line-height: 1.55; }
@media (min-width: 960px) {
  .section-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2.5rem); align-items: end; }
  .section-head .h2 { grid-column: 1 / 7; }
  .section-head .section-note { grid-column: 7 / 13; margin: 0; }
}

/* Typographic rows: label left, value right */
.rows { margin: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; padding: var(--s) 0; }
.row + .row { margin-top: .25rem; }
.row dt { font-weight: 600; }
.row dd { margin: 0; color: var(--text-2); }
@media (min-width: 760px) {
  .row { grid-template-columns: minmax(12rem, 1fr) 2fr; gap: var(--m); }
}
.tag { display: inline-block; margin-left: .35rem; color: var(--signal); font-size: .85rem; font-weight: 600; white-space: nowrap; }

/* Numbers as the hero */
.figures { display: grid; gap: var(--l) var(--m); margin: var(--xl) 0 var(--l); }
@media (min-width: 760px) { .figures { grid-template-columns: 1fr 1fr; } }
.figure { padding: var(--l) var(--m); border-radius: clamp(16px, 1.6vw, 22px); background: var(--bg-2); }
.num { margin: 0; font: 700 clamp(3rem, 1.8rem + 5vw, 6rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.unit { margin: var(--s) 0 0; max-width: 28rem; color: var(--muted); font-size: .95rem; }

/* Plans comparison: hairlines only inside the table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plans { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plans caption { padding-bottom: var(--s); color: var(--muted); font-size: .9rem; text-align: left; }
.plans th, .plans td { padding: 1rem .75rem; border-bottom: 1px solid var(--rule); text-align: right; font-weight: 400; }
.plans thead th { color: var(--text); font: 700 1.1rem/1.2 var(--display); white-space: nowrap; }
.plans tbody th { color: var(--text-2); text-align: left; padding-left: 0; }
.plans thead th:first-child { padding-left: 0; }
.plans td { color: var(--text-2); }
.plans .price { color: var(--text); font: 700 1.5rem/1 var(--display); }
.plans .num-cell { color: var(--text); }
.fine { margin: var(--m) 0 0; max-width: 48rem; color: var(--muted); font-size: .9rem; }
.fine a, .updates a { color: var(--signal); text-underline-offset: .2em; }

/* Models */
.models { display: grid; gap: var(--m); margin: 0 0 var(--l); padding: 0; list-style: none; }
@media (min-width: 760px) { .models { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .models { grid-template-columns: repeat(4, 1fr); } }
.model { display: flex; flex-direction: column; padding: var(--m); border-radius: clamp(16px, 1.6vw, 22px); background: var(--bg-2); }
.model p { margin: 0; }
.model-id { color: var(--muted); font-size: .85rem; }
.model-id code { color: var(--muted); }
.model-name { margin-top: .5rem !important; font: 700 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--display); letter-spacing: -.02em; }
.model-desc { margin-top: .5rem !important; color: var(--text-2); }
.model-rate { display: flex; flex-direction: column; margin-top: auto !important; padding-top: var(--l); }
.rate { font: 700 2.4rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.model-rate .unit { margin-top: .4rem; font-size: .85rem; }

/* Updates: a short dated list */
.updates { margin: 0; padding: 0; list-style: none; }
.updates li { display: grid; gap: .4rem var(--m); padding: var(--m) 0; }
@media (min-width: 760px) { .updates li { grid-template-columns: minmax(12rem, 1fr) 2fr; } }
.updates time { color: var(--muted); font-variant-numeric: tabular-nums; }
.updates h3 { margin: 0; font: 700 1.5rem/1.2 var(--display); letter-spacing: -.02em; }
.updates p { margin: .5rem 0 0; color: var(--text-2); }

/* Footer */
.footer { position: relative; padding: var(--xl) 0 var(--m); overflow: hidden; background: var(--bg); }
.footer-horizon { position: absolute; inset: auto 0 0; height: 60%; background: radial-gradient(120% 100% at 50% 130%, rgba(37, 99, 235, .28), transparent 60%); pointer-events: none; }
.footer .wrap { position: relative; }
.footer-mark { margin: 0; color: rgba(255, 255, 255, .06); font: 700 clamp(2.6rem, .6rem + 9.4vw, 10.5rem)/.9 var(--display); letter-spacing: -.05em; white-space: nowrap; user-select: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s) var(--m); margin-top: var(--l); }
.footer-links a, .footer-bar a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover, .footer-bar a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s); margin-top: var(--l); color: var(--muted); font-size: .85rem; }
.footer-bar p { margin: 0; }
.footer-bar nav { display: flex; gap: var(--m); }

@media (max-width: 759px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 559px) {
  .plans { font-size: .85rem; }
  .plans th, .plans td { padding: .8rem .35rem; }
  .plans thead th { font-size: .9rem; }
  .plans .price { font-size: 1.1rem; }
}
/* Small screens: the hero carries the Deepfield Studio button, so the nav shows the name only. */
@media (max-width: 559px) {
  .nav-cta { display: none; }
}

/* Motion: fade and rise, only when the visitor allows motion and JS is on. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
  .horizon img { animation: settle 1.6s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav-links a, .nav-cta, .btn, .link-chev .ico { transition: none; }
  .link-chev:hover .ico { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* Stagger without inline styles (the CSP allows no style attributes). */
[data-d="1"] { --d: .12s; }
[data-d="2"] { --d: .24s; }
