/* AI Growth Angle shared design system. Original CSS, all pages.
   Fonts are self-hosted from /fonts (OFL). See LICENSES.md. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); }
/* Metric-matched fallbacks so the swap does not shift layout */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Times New Roman"); size-adjust: 88%; ascent-override: 100%; descent-override: 28%; line-gap-override: 0%; }

:root {
  --bg: #000;
  --bg-1: #08080a;
  --bg-2: #0e0e11;
  --ink: #ebeced;
  --muted: #a0a0a5;
  --dim: #8a8a90;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #f2b134;
  --lav: #dcdbff;
  --radius: 10px;
  --max: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", "Serif Fallback", "Times New Roman", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cond: "Anton", "Arial Narrow", Impact, sans-serif;
  --header-h: 4rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.35); transition: color 0.2s var(--ease-ui), text-decoration-color 0.2s var(--ease-ui); }
a:hover { color: #fff; text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 0.75rem 1rem; z-index: 100; font-weight: 600; }
.skip:focus { left: 0; }

/* Faint column lines (Factory-style grid), wide screens only */
@media (min-width: 76rem) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      linear-gradient(var(--line), var(--line)) calc(50% - var(--max) / 2) 0 / 1px 100% no-repeat,
      linear-gradient(var(--line), var(--line)) calc(50% + var(--max) / 2) 0 / 1px 100% no-repeat;
    opacity: 0.7;
  }
}
main, .site-footer { position: relative; z-index: 1; }

/* Header: slides down on load */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-ui), background 0.3s var(--ease-ui);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(0, 0, 0, 0.82); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 1.75rem; height: 1.75rem; }
.brand:hover { color: #fff; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.25rem; align-items: center; }
.nav a { display: inline-block; padding: 0.45rem 0.85rem; color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; border-radius: 999px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: #fff; }
.nav a.nav-cta { color: #fff; border: 1px solid var(--line-strong); margin-left: 0.5rem; background: rgba(255, 255, 255, 0.04); }
.nav a.nav-cta:hover { background: #fff; color: #000; border-color: #fff; }
@media (max-width: 47.99rem) {
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; width: 100%; padding-bottom: 0.75rem; }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { display: block; padding: 0.85rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:hover { background: none; }
  .nav a.nav-cta { text-align: center; margin: 0.9rem 0 0; border-radius: 999px; border: 1px solid var(--line-strong); }
  .header-row { padding: 0.4rem 0; }
}

/* Type */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.75rem; color: #fff; font-weight: 600; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.0625rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 36rem; }
.grad {
  background: linear-gradient(180deg, #fff 25%, #8d8d93 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.08em;
}
/* Mono micro-labels */
.eyebrow, .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 1.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  margin: 0 0 1.5rem;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
section { padding: clamp(3.5rem, 9vw, 7rem) 0; position: relative; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin: 0; max-width: 14em; }
.section-head .lead { margin: 0; }
.rule-top { border-top: 1px solid var(--line); }

/* Pages other than home */
.page-head { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 90%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 100%, rgba(242, 177, 52, 0.12), rgba(120, 100, 255, 0.07) 45%, transparent 72%);
}
.page-head h1 { max-width: 12em; margin-bottom: 1.25rem; }
.page-head .lead { margin: 0; }

/* Buttons: conic glowing border */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn {
  --angle: 0deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  isolation: isolate;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(#0c0c0e, #0c0c0e) padding-box,
    conic-gradient(from var(--angle), rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.14) 55%, var(--accent) 78%, #fff 88%, rgba(255, 255, 255, 0.14) 100%) border-box;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease-ui), color 0.2s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0%, transparent 60%, var(--accent) 80%, transparent 100%);
  filter: blur(14px);
  opacity: 0.35;
  transition: opacity 0.3s var(--ease-ui);
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:hover::before { opacity: 0.7; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-weight: 500; text-decoration: none; padding: 0.95rem 0.5rem; }
.btn-ghost:hover { color: #fff; }
.btn-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .btn { animation: angle-spin 6s linear infinite; }
  .btn:hover { animation-duration: 2.5s; }
}
@keyframes angle-spin { to { --angle: 360deg; } }
@supports not (background: conic-gradient(from var(--angle), red, blue)) {
  .btn { border-color: var(--line-strong); background: #0c0c0e; }
}

/* Grid and cards (tight, hairline) */
.grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 48rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--bg-1); padding: clamp(1.4rem, 3vw, 2rem); position: relative; transition: background 0.3s var(--ease-ui); }
.card:hover { background: var(--bg-2); }
.card h2, .card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 0.75rem; }
.card p { color: var(--muted); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 1.5rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.pills li { font-size: 0.85rem; color: var(--muted); padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.pills li.on { color: #000; background: #fff; border-color: #fff; font-weight: 500; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { counter-increment: step; background: var(--bg-1); padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; min-height: 14rem; display: flex; flex-direction: column; transition: background 0.3s var(--ease-ui); }
.steps li:hover { background: var(--bg-2); }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--accent); margin-bottom: auto; padding-bottom: 2rem; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--muted); max-width: 30rem; }

/* Misc blocks */
.prose { max-width: 40rem; }
.prose p { color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 3rem 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.note { border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--bg-1); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }
.note p { margin: 0; color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { padding: 0.9rem 0 0.9rem 2rem; position: relative; border-bottom: 1px solid var(--line); color: var(--ink); }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 1.25rem; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Band (closing call to action) */
.band { text-align: left; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.band::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -55%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(50% 50% at 50% 50%, rgba(242, 177, 52, 0.28), rgba(150, 110, 255, 0.14) 45%, transparent 72%);
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 70%);
  mask-image: linear-gradient(to top, #000, transparent 70%);
  opacity: 0.55;
}
.band h2 { max-width: 11em; }
.band p { color: var(--muted); max-width: 34rem; font-size: 1.15rem; }

/* Form */
.form { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); max-width: 40rem; }
.field { margin-bottom: 1.4rem; }
label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--ink); }
.hint { display: inline; font-weight: 400; color: var(--muted); font-size: 0.88rem; margin-left: 0.35rem; }
input, textarea { width: 100%; font: inherit; color: #fff; background: #000; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0.8rem 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; }
input::placeholder, textarea::placeholder { color: var(--dim); }
textarea { min-height: 9rem; resize: vertical; }
input:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 177, 52, 0.25); }
.privacy { font-weight: 500; font-size: 0.95rem; background: rgba(242, 177, 52, 0.08); border: 1px solid rgba(242, 177, 52, 0.4); border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 1.5rem; color: #fff; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; font-size: 0.92rem; color: var(--muted); background: #000; }
.site-footer a { color: var(--ink); text-decoration-color: var(--line-strong); }
.site-footer p { margin: 0 0 0.5rem; }
.footer-nav { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Reveal on scroll (JS adds .in). Visible by default without JS. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .site-header { animation: header-down 0.8s var(--ease) both; }
  .js .page-head .eyebrow, .js .page-head h1, .js .page-head .lead, .js .page-head .btn-row { animation: rise 0.9s var(--ease) both; }
  .js .page-head h1 { animation-delay: 0.08s; }
  .js .page-head .lead { animation-delay: 0.16s; }
  .js .page-head .btn-row { animation-delay: 0.24s; }
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes header-down { from { opacity: 0; transform: translate3d(0, -16px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
