/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #14120f;
  --bg-2:      #1d1a16;
  --bg-3:      #262219;
  --ink:       #fafafa;
  --ink-mute:  rgba(250, 250, 250, 0.66);
  --ink-dim:   rgba(250, 250, 250, 0.42);
  --accent:    #e8503f;
  --accent-2:  #f26855;
  --accent-rgb: 232, 80, 63;
  --accent-dim: rgba(232, 80, 63, 0.14);
  --line:      rgba(250, 250, 250, 0.13);
  --line-soft: rgba(250, 250, 250, 0.07);

  --bg-light:    #eeece7;
  --bg-light-2:  #e3e0d9;
  --bg-light-3:  #d7d3c9;
  --ink-light:      #1d1b17;
  --ink-mute-light: rgba(29, 27, 23, 0.66);
  --ink-dim-light:  rgba(29, 27, 23, 0.42);
  --line-light:      rgba(29, 27, 23, 0.14);
  --line-soft-light: rgba(29, 27, 23, 0.08);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial, var(--sans);
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.02em; font-family: var(--display); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 6px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.light {
  --bg:        var(--bg-light);
  --bg-2:      var(--bg-light-2);
  --bg-3:      var(--bg-light-3);
  --ink:       var(--ink-light);
  --ink-mute:  var(--ink-mute-light);
  --ink-dim:   var(--ink-dim-light);
  --line:      var(--line-light);
  --line-soft: var(--line-soft-light);
  background: var(--bg);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 960px) { .container { padding-inline: 2.5rem; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before,
.eyebrow::after { content: ""; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-mute); transform: translateY(-2px); }
.btn-text {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
  padding-bottom: .2em;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn-text:hover { color: var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(20, 18, 15, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-brand span { color: var(--accent); }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

/* Corner-bracket frame marks (F3-style viewfinder accents) */
.frame-mark {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.frame-mark--sm {
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.frame-mark--sm.frame-mark--tl { top: -8px; left: -11px; border-top-width: 1.5px; border-left-width: 1.5px; }
.frame-mark--sm.frame-mark--tr { top: -8px; right: -11px; border-top-width: 1.5px; border-right-width: 1.5px; }
.frame-mark--sm.frame-mark--bl { bottom: -8px; left: -11px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.frame-mark--sm.frame-mark--br { bottom: -8px; right: -11px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: clip;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: clamp(140px, 22vw, 260px);
  background: linear-gradient(to bottom, transparent, var(--bg-light));
  pointer-events: none;
}
.hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(circle 620px at var(--mx, 30%) var(--my, 28%), rgba(var(--accent-rgb), 0.15) 0%, transparent 60%),
    radial-gradient(circle 720px at calc(100% - var(--mx, 30%)) calc(100% - var(--my, 28%)), rgba(var(--accent-rgb), 0.08) 0%, transparent 60%),
    var(--bg);
  filter: blur(50px);
  transition: background .6s ease-out;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
}
.hero-inner {
  padding-block: 4rem 3rem;
}
.hero-eyebrow { margin-bottom: 1.75rem; }
.hero-title {
  font-size: clamp(2.4rem, 6.6vw, 5.4rem);
  font-weight: 800;
  max-width: 15ch;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-mute);
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.hero-meta {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-meta .dot { animation: none; }
}
.hero-meta .sep { opacity: .4; }

/* =============================================================
   7. Section shell
   ============================================================= */
.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  border-top: 1px solid var(--line-soft);
}
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub {
  margin-top: 1.1rem;
  color: var(--ink-mute);
  max-width: 52ch;
  font-size: 1.02rem;
}

/* =============================================================
   7b. About / portrait
   ============================================================= */
.about-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 4.5rem;
  }
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  max-width: 380px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transform: scale(1.7);
  transform-origin: center 14%;
  filter: grayscale(0.8) contrast(1.05) brightness(1.05);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.14), rgba(20, 18, 15, 0.3) 75%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.frame-mark--lg {
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.frame-mark--lg.frame-mark--tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.frame-mark--lg.frame-mark--tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.frame-mark--lg.frame-mark--bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.frame-mark--lg.frame-mark--br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }
.frame-tick {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: var(--accent);
  pointer-events: none;
}
.about-copy .section-title { margin-top: .6rem; }
.about-text {
  margin-top: 1.15rem;
  color: var(--ink-mute);
  max-width: 52ch;
}
.about-copy .btn-text { margin-top: 1.75rem; display: inline-block; }

/* =============================================================
   8. Plans grid
   ============================================================= */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
@media (min-width: 720px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
}

.plan-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 2.4rem 1.85rem 2.1rem;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: background .45s var(--ease-out), border-color .45s var(--ease-out), transform .45s var(--ease-out);
}
.plan-card:hover {
  background: var(--bg-2);
  border-color: rgba(var(--accent-rgb), 0.32);
  transform: translateY(-5px);
}
.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease-out);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.16), transparent 72%);
}
.plan-card:hover::before { opacity: 1; }
.plan-card > * {
  position: relative;
  z-index: 2;
}

.plan-num {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent);
}
.plan-code {
  margin-top: .9rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.plan-name {
  margin-top: .5rem;
  font-size: 1.3rem;
  font-weight: 700;
  min-height: 2.6em;
}
.plan-price {
  margin-top: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: .4em;
}
.plan-price .amount {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 800;
}
.plan-price .period {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.plan-desc {
  margin-top: 1rem;
  font-size: .92rem;
  color: var(--ink-mute);
  min-height: 3em;
}
.plan-bullets {
  margin-top: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.plan-bullets li {
  display: flex;
  gap: .6em;
  font-size: .86rem;
  color: var(--ink-mute);
  line-height: 1.45;
}
.plan-bullets li::before {
  content: "\2014";
  color: var(--ink-dim);
  flex-shrink: 0;
}
.plan-bullets li.is-excluded { color: var(--ink-dim); }
.plan-bullets li.is-excluded::before { content: "\00d7"; color: var(--ink-dim); }

.plan-cta { margin-top: 1.75rem; }

/* =============================================================
   9. Enterprise band (Plan 05)
   ============================================================= */
.enterprise {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: 2.5rem;
  transition: border-color .45s var(--ease-out);
}
.enterprise:hover { border-color: rgba(var(--accent-rgb), 0.32); }
.enterprise::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease-out);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.12), transparent 72%);
}
.enterprise:hover::before { opacity: 1; }
.enterprise > * { position: relative; z-index: 2; }
@media (min-width: 960px) {
  .enterprise { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
.enterprise-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-top: 1rem;
}
.enterprise-title em { font-style: normal; color: var(--accent); }
.enterprise-desc {
  margin-top: 1.1rem;
  color: var(--ink-mute);
  max-width: 46ch;
}
.enterprise-price {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.enterprise-cta { margin-top: 2rem; }

.enterprise-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.enterprise-feature {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.enterprise-feature:last-child { border-bottom: 0; padding-bottom: 0; }
.enterprise-feature .arrow {
  font-family: var(--mono);
  color: var(--accent);
  flex-shrink: 0;
}
.enterprise-feature h4 {
  font-size: .98rem;
  font-weight: 700;
}
.enterprise-feature p {
  margin-top: .35rem;
  font-size: .86rem;
  color: var(--ink-mute);
}

/* =============================================================
   10. Final CTA
   ============================================================= */
.final-cta {
  text-align: center;
}
.final-cta .section-head { margin-inline: auto; text-align: center; }
.final-cta .eyebrow { justify-content: center; }
.final-cta-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.final-cta .btn-primary {
  padding: 1.2rem 2.4rem;
  font-size: .88rem;
}

/* =============================================================
   11. Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.5rem;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
}
.footer-brand span { color: var(--accent); }
.footer-meta {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* =============================================================
   12. Responsive tune-ups
   ============================================================= */
@media (max-width: 719px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .enterprise-features { gap: 1.25rem; }
}
