/* ============================================================
   CULS — Design System
   Apple-grade: SF Pro system type, generous rhythm,
   light/dark editorial sections, restrained accent.
   ============================================================ */

:root {
  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Menlo", "Roboto Mono", monospace;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-tint: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-2: rgba(0, 0, 0, 0.06);

  /* Accent — Apple system blue */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-press: #006edb;

  /* Radii */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Layout */
  --maxw: 1024px;
  --maxw-wide: 1280px;
  --gut: 22px;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(0, 113, 227, 0.18); }

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

/* ---------- Typographic scale ---------- */
.eyebrow {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.004em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.eyebrow.accent { color: var(--accent); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }

.display {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.h-xl { font-size: clamp(40px, 5.2vw, 72px); letter-spacing: -0.022em; line-height: 1.05; }
.h-lg { font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.02em; line-height: 1.07; }
.h-md { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.018em; line-height: 1.1; }
.h-sm { font-size: clamp(21px, 1.9vw, 28px); letter-spacing: -0.015em; line-height: 1.15; }

.lead {
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--text-2);
}
.body {
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-2);
}
.small { font-size: 14px; line-height: 1.45; color: var(--text-3); }
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(90px, 13vh, 160px) 0; }
.section-tight { padding: clamp(64px, 8vh, 110px) 0; }

.dark {
  background-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  background-blend-mode: soft-light;
  color: #f5f5f7;
}
.dark .lead, .dark .body { color: #a1a1a6; }
.dark .eyebrow { color: #86868b; }
.dark .eyebrow.accent { color: #2997ff; }
.dark .small { color: #6e6e73; }

/* ---------- Focus-visible (keyboard) accessibility ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}
.btn:focus-visible { outline-offset: 4px; }
.dark :focus-visible,
.nav.on-dark :focus-visible { outline-color: #2997ff; }
.nav-cta:focus-visible { outline-color: #fff; outline-offset: 3px; }

/* skip link */
.skip-link {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%) translateY(-150%);
  z-index: 2000; background: var(--accent); color: #fff;
  padding: 10px 20px; border-radius: 980px; font-size: 14px; font-weight: 500;
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); outline: none; }

.tint { background: var(--bg-alt); }

/* ---------- Gradient / color text accents ----------
   Each instance uses a DISTINCT palette and they are spread down the page.
   Never repeat the same gradient on adjacent/related words. */
.grad, [class*="grad-"] {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: 0.04em;
}
/* hero "reputation" — full spectrum */
.grad-rainbow { background-image: linear-gradient(100deg, #ff7a3c 0%, #ff5fa2 24%, #b15cff 46%, #5b8cff 64%, #34c0c8 82%, #46cf8b 100%); }
/* stats — purple / orange / green (bright for the dark band) */
.grad-purple { background-image: linear-gradient(125deg, #c77dff 0%, #9d4edd 100%); }
.grad-orange { background-image: linear-gradient(125deg, #ffb340 0%, #ff7a1a 100%); }
.grad-green  { background-image: linear-gradient(125deg, #5fe08a 0%, #20c45e 100%); }
/* lower-page accents */
.grad-blue { background-image: linear-gradient(120deg, #0a84ff 0%, #32d5d0 100%); }
.grad-warm { background-image: linear-gradient(120deg, #ff6b9d 0%, #ff9a5b 100%); }

.center { text-align: center; }
.measure { max-width: 760px; }
.measure-sm { max-width: 600px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 17px; font-weight: 400;
  line-height: 1; cursor: pointer; border: none;
  padding: 12px 22px; border-radius: 980px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease-out);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:hover::after { left: 140%; }
.btn-primary:active { background: var(--accent-press); transform: scale(0.98); }

.btn-ghost {
  background: transparent; color: var(--accent);
  border: 1px solid rgba(0,113,227,0.4); padding: 11px 21px;
}
.btn-ghost:hover { background: rgba(0,113,227,0.06); }
.dark .btn-ghost { color: #2997ff; border-color: rgba(41,151,255,0.5); }
.dark .btn-ghost:hover { background: rgba(41,151,255,0.1); }

/* text link with chevron */
.link {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--accent); font-size: clamp(17px, 1.3vw, 19px); font-weight: 400;
}
.dark .link { color: #2997ff; }
.link .chev { transition: transform .3s var(--ease); }
.link:hover .chev { transform: translateX(3px); }
.link:hover .label { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 1100;
  transition: width .1s linear; pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: 48px;
  display: flex; align-items: center;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-2);
}
.nav.on-dark { color: #f5f5f7; }
.nav.on-dark.scrolled {
  background: rgba(22,22,23,0.72);
  border-bottom-color: rgba(255,255,255,0.1);
}
.nav-inner {
  width: 100%; max-width: var(--maxw-wide); margin: 0 auto;
  padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: "Open Sauce Sans", "Open Sauce One", var(--font-sans);
  font-size: 23px; font-weight: 700; letter-spacing: -0.058em;
  padding-left: 2px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 13px; font-weight: 400; opacity: 0.86;
  transition: opacity .2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 13px; font-weight: 400;
  background: var(--accent); color: #fff !important;
  padding: 5px 14px; border-radius: 980px; opacity: 1 !important;
}
.nav-cta:hover { background: var(--accent-hover); }
.nav-toggle { display: none; }

@media (max-width: 740px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  will-change: opacity, transform, filter;
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Cards / tiles ---------- */
.tile {
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: 34px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  position: relative; overflow: hidden;
  min-height: 0;
}
a.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.08); }
.dark .tile { background: #1d1d1f; }
.dark a.tile:hover { box-shadow: 0 18px 50px rgba(0,0,0,0.5); }

/* service cards lift off the tinted background */
.svc-tile {
  background: #fff;
  border: 1px solid var(--hairline-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.04);
}
a.svc-tile:hover {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 22px 50px rgba(0,0,0,0.1);
}

/* logo inline beside the title */
.svc-tile-head { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.svc-tile-head .glyph { flex: none; }
.svc-tile-head h3 { margin: 0; }

.tile-platform {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
}
.tile h3 { margin: 10px 0 8px; }
.tile-meta {
  margin-top: auto; padding-top: 22px;
  display: flex; align-items: baseline; gap: 10px;
  font-size: 15px;
}
.tile-price { font-weight: 600; color: var(--text); }
.dark .tile-price { color: #f5f5f7; }
.tile-time { color: var(--text-3); }

/* platform logo glyph — real brand PNG, transparent (no tile) */
.glyph {
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  background: transparent; flex: none;
}
.glyph .pf-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.cov-glyph { width: 40px; height: 40px; }
.cat-ic { display: none; }

/* hairline divider */
.rule { height: 1px; background: var(--hairline); border: 0; }
.dark .rule { background: rgba(255,255,255,0.12); }

/* pill badge */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  padding: 6px 13px; border-radius: 980px;
  background: rgba(0,0,0,0.05); color: var(--text-2);
}
.dark .pill { background: rgba(255,255,255,0.1); color: #d2d2d7; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #30d158; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--text-3); font-size: 12px; }
.footer .wrap-wide { padding-top: 40px; padding-bottom: 40px; }
.footer a { color: var(--text-3); }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 18px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 18px; line-height: 1.6; }

/* ---------- Premium motion: word reveal ---------- */
.word-reveal .w {
  display: inline-block; white-space: pre;
  opacity: 0; filter: blur(10px); transform: translateY(0.42em);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  will-change: opacity, transform, filter;
}
.word-reveal.in .w { opacity: 1; filter: none; transform: none; }

.hero-intro { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.hero-intro.in { opacity: 1; transform: none; }

/* ---------- Page-load choreography ---------- */
@keyframes navDrop { from { opacity: 0; transform: translateY(-105%); } to { opacity: 1; transform: none; } }
html.preload .nav { opacity: 0; }
html.loaded .nav { animation: navDrop .85s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  html.preload .nav { opacity: 1; }
  html.loaded .nav { animation: none; }
}

/* ---------- Spotlight cards ---------- */
.spotlight > * { position: relative; z-index: 1; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(0,113,227,0.10), transparent 68%);
  opacity: 0; transition: opacity .45s var(--ease); pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }
.dark .spotlight::before { background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(41,151,255,0.16), transparent 68%); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stats .divider { display: none; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 52px; } }
.stat .num {
  font-size: clamp(60px, 9vw, 120px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 0.95; color: #f5f5f7;
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 2px;
  justify-content: center;
}
.stat .suf { color: #2997ff; font-size: 0.5em; font-weight: 600; letter-spacing: -0.02em; }
.stat .lbl { margin: 18px auto 0; font-size: clamp(16px, 1.4vw, 19px); color: #a1a1a6; max-width: 22ch; line-height: 1.35; }

/* ---------- Live indicator + feed ---------- */
.live-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; color: var(--text-3);
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #30d158;
  box-shadow: 0 0 0 0 rgba(48,209,88,0.6); animation: livePulse 2s var(--ease) infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(48,209,88,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(48,209,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); }
}

.live-feed {
  margin: 0 auto; max-width: 720px;
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--bg); overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.06);
}
.lf-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; border-top: 1px solid var(--hairline-2);
  max-height: 84px; overflow: hidden;
  transition: max-height .55s var(--ease), opacity .5s var(--ease), padding .55s var(--ease), background .8s var(--ease);
}
.lf-row:first-child { border-top: 0; }
.lf-row.lf-enter { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.lf-row.lf-exit { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-top-color: transparent; }
.lf-row.lf-fresh { background: rgba(48,209,88,0.05); }
.lf-glyph {
  width: 40px; height: 40px; flex: none;
  background: transparent; display: inline-grid; place-items: center;
}
.lf-glyph .pf-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.lf-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.lf-svc { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.lf-desc { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-side { display: flex; align-items: center; flex: none; }
.lf-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #1a9d4b; }
.lf-check { width: 17px; height: 17px; border-radius: 50%; background: rgba(48,209,88,0.16); display: inline-grid; place-items: center; }
.lf-check svg { width: 11px; height: 11px; }
@media (max-width: 560px) {
  .lf-desc { white-space: normal; }
  .lf-row { padding: 16px 18px; max-height: 100px; }
}

/* ============================================================
   Mobile pass — shared type scale, spacing, touch targets
   ============================================================ */
@media (max-width: 600px) {
  :root { --gut: 20px; }
  .display { font-size: clamp(33px, 10vw, 50px); letter-spacing: -0.02em; line-height: 1.06; }
  .h-xl { font-size: clamp(30px, 8.4vw, 44px); line-height: 1.08; }
  .h-lg { font-size: clamp(27px, 7.4vw, 40px); }
  .h-md { font-size: clamp(23px, 6vw, 32px); }
  .lead { font-size: 17px; line-height: 1.4; }
  .body { font-size: 16px; }
  .section { padding: 76px 0; }
  .section-tight { padding: 56px 0; }

  /* comfortable tap targets */
  .btn { padding: 13px 22px; min-height: 46px; }
  .nav-cta { padding: 9px 16px; }
  .link { padding: 4px 0; }

  /* stats stack with healthy rhythm */
  .stat .num { font-size: clamp(54px, 17vw, 80px); }
  .stat .lbl { font-size: 16px; }
}

@media (max-width: 380px) {
  .display { font-size: 30px; }
  .h-xl { font-size: 27px; }
}
