/* Strata Center website. Light and quiet: white pages, navy type, the logo's orange for actions only.
   The Strata Center hub sits on its own navy stage in the hero (it's lit for a dark background). */
:root {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --surface: #ffffff;
  --line: #e6e8ee;
  --line-2: #d6dae3;
  --fg: #161b30;
  --muted: #545b70;
  --faint: #8a90a2;
  --accent: #cf6038;
  --accent-ink: #ffffff;
  --accent-soft: #fbefe9;
  --red: #b3332d;
  --orange: #cf6038;
  --gold: #c98a32;
  --sage: #6f8574;
  --teal: #4f9c95;
  --blue: #4b6f86;
  --display: "Urbanist", "Inter", system-ui, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 18px; max-width: 62ch; }
.small { font-size: 14px; color: var(--faint); }
i[data-icon] { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
i[data-icon] svg { width: 100%; height: 100%; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, box-shadow .2s, transform .2s; }
.btn:hover { background: #bb5430; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-light { background: #fff; color: var(--fg); }
.btn-light:hover { background: #eef0f5; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.01em; }
.brand em { font-style: normal; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a, .link { text-decoration: none; color: var(--muted); font-size: 14.5px; white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .link:hover { color: var(--fg); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--fg); padding: 10px; cursor: pointer; }

/* Hero */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .eyebrow { margin: 0; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy .lede { font-size: 19px; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-cta.center { justify-content: center; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14.5px; }
.hero-facts i { color: var(--sage); margin-right: 4px; }

/* The navy stage the hub sits on */
.stage { --fg: #eef1f8; --muted: #a9b2c8; --faint: #8f9bc0; --radius: 16px; position: relative; min-width: 0; color: var(--fg); border-radius: 22px; padding: 18px 18px 26px; background: radial-gradient(120% 80% at 50% 0%, #1b2449 0%, #0f1428 55%, #0a0e1d 100%); box-shadow: 0 40px 80px -40px rgba(22,27,48,.55); overflow: hidden; }
.stage-label { position: absolute; left: 22px; top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.hub { position: relative; width: 118%; margin-left: -9%; aspect-ratio: 1600 / 1180; container-type: inline-size; }
.hub svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Hub pieces */
.h-label { position: absolute; transform: translate(-50%, -50%); font: 700 2.6cqw/1 var(--display); color: #fff; white-space: nowrap; pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.6); transition: text-shadow .3s, opacity .3s; }
.h-tile { position: absolute; transform: translate(-50%, -50%); width: 6.4cqw; height: 6.4cqw; border-radius: 1.2cqw; border: 1px solid; display: grid; place-items: center; color: #fff; backdrop-filter: blur(6px); cursor: pointer; padding: 0; transition: box-shadow .3s, background .3s; }
.h-tile svg { width: 52%; height: 52%; position: static; }
.h-tile .bob { display: grid; place-items: center; width: 100%; height: 100%; animation: bob 3.6s ease-in-out infinite alternate; animation-delay: var(--b, 0ms); }
.h-center { position: absolute; left: 50%; top: 44.5%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 1.4cqw; pointer-events: none; }
.h-center img { width: 7cqw; height: 7cqw; }
.h-center span { font: 800 3.4cqw/0.95 var(--display); letter-spacing: -0.02em; }
.seg { cursor: pointer; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.seg .top { fill-opacity: .26; transition: fill-opacity .3s; }
.seg:hover, .seg:focus-visible { transform: translateY(-12px); outline: none; }
.seg:hover .top, .seg:focus-visible .top { fill-opacity: .5; }
.seg.on { transform: translateY(-20px); }
.seg.on .top { fill-opacity: .78; filter: url(#glow); }
.seg.dim { opacity: .5; }
.orbit { stroke-dasharray: .006 .014; animation: turn 40s linear infinite; }
.sweep { stroke-dasharray: .1 .9; animation: turn 4.5s linear infinite; }
.blink { animation: blink 2.4s ease-in-out infinite; animation-delay: var(--b, 0ms); }

/* The card that shows the chosen solution under the hub */
.hub-card { position: relative; margin: -14% auto 0; max-width: 520px; min-height: 132px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--accent)) 16%, transparent), rgba(21,27,51,.88) 50%); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 45%, transparent); box-shadow: 0 20px 60px -20px rgba(0,0,0,.6), 0 0 40px -10px color-mix(in srgb, var(--c, var(--accent)) 40%, transparent); backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s; }
.hub-card h3 { display: flex; align-items: center; gap: 10px; }
.hub-card h3 i { color: var(--c); width: 22px; height: 22px; }
.hub-card .tag { margin-left: auto; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.hub-card p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.hub-card .feat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hub-card .feat span { font-size: 12.5px; padding: 4px 9px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); color: #dfe4f2; }
.hub-card.swap { animation: pop .35s cubic-bezier(.34,1.4,.5,1); }
.stage .hub { width: 100%; margin-left: 0; }
.stage .hub-card { margin-top: -10%; }
.stage .hub-card h3 { color: #fff; }

/* Sections */
.band { padding: 96px 0; }
.band.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.head .eyebrow { margin: 0; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .muted { margin: 0 auto; }

/* See it: real product screens */
.see .head { margin-bottom: 28px; }
.see-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.see-tabs button { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--muted); font: 500 14.5px var(--body); cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.see-tabs button:hover { color: var(--fg); }
.see-tabs button[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: #fff; font-weight: 600; }
.see-panel { margin: 0 auto; max-width: 1040px; }
.see-panel figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.shot { border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; background: #fff; box-shadow: 0 30px 70px -34px rgba(22,27,48,.3), 0 2px 6px rgba(22,27,48,.04); }
.shot img { width: 100%; height: auto; }

/* The patchwork it replaces */
.proof { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; color: var(--muted); font-size: 14px; }
.proof-in strong { color: var(--fg); font-weight: 600; margin-right: 8px; }
.chip { display: inline-flex; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13.5px; }

/* Teams */
.teams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.teams div { background: #fff; padding: 22px; }
.teams b { display: block; font: 700 16px var(--display); }
.teams span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split .muted { margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; }

/* Solutions (cards filled by main.js) */
.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sol { position: relative; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: border-color .2s, box-shadow .2s; }
.sol:hover { border-color: var(--line-2); box-shadow: 0 16px 40px -28px rgba(22,27,48,.35); }
.sol .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--c); }
.sol .ic svg { width: 20px; height: 20px; }
.sol h3 { font-size: 20px; }
.sol .job { font-weight: 600; }
.sol .for { font-size: 14px; color: var(--faint); }
.sol ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.sol li { display: flex; gap: 9px; align-items: baseline; }
.sol li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); flex: none; transform: translateY(-2px); }

/* Engine and What's new */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.features article, .card { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.features article > i, .card > i { width: 26px; height: 26px; color: var(--accent); }
.features p, .card p { color: var(--muted); font-size: 15px; }
.features p a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.features p a:hover { text-decoration: underline; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Editions (filled by main.js) */
.editions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ed { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.ed.feature { border-color: var(--accent); box-shadow: 0 24px 50px -30px rgba(207,96,56,.45); }
.ed h3 { font-size: 21px; }
.ed .who { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.ed ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ed li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.ed li b { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.ed .extra { font-size: 13px; color: var(--faint); }
.ed .btn { justify-content: center; margin-top: auto; }

/* Add-ons: Strata Dev and Strata ERP (coming soon) */
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.addon { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c); display: flex; flex-direction: column; gap: 12px; }
.addon-top { display: flex; align-items: center; justify-content: space-between; }
.addon .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--c); }
.addon .ic svg { width: 22px; height: 22px; }
.addon .soon { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); padding: 4px 10px; border-radius: 999px; }
.addon h3 { font-size: 24px; }
.addon .job { font-weight: 600; }
.addon .muted { font-size: 15px; }
.addon .ticks { margin: 4px 0 8px; }
.addon .ticks li::before { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.addon .btn { align-self: flex-start; margin-top: auto; }

/* Closing call to action */
.cta { padding: 96px 0; }
.cta-box { background: var(--fg); color: #fff; border-radius: 22px; padding: 64px 32px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.cta-box .muted { color: #b9bfd0; }
.cta-box .small { color: #9aa2b8; }
.cta-box .small a { color: #fff; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.foot nav a:hover { color: var(--fg); }
.foot .small { margin-left: auto; }

/* Reveal on scroll, and the hub's intro */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.play .p-platform { transform-box: fill-box; transform-origin: center; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
.play .p-core { transform-box: fill-box; transform-origin: center; animation: grow .9s cubic-bezier(.34,1.3,.5,1) .25s both; }
.play .p-draw { stroke-dasharray: 1 1; animation: draw 1.1s cubic-bezier(.55,0,.25,1) .4s both; }
.play .p-seg { animation: rise .76s cubic-bezier(.2,.9,.25,1.15) var(--d) both; }
.play .p-tile { animation: drop .7s cubic-bezier(.34,1.5,.5,1) var(--d) both; }
.play .p-label { animation: fade .6s ease-out var(--d) both; }
.play .p-center { animation: centerIn .9s cubic-bezier(.2,.8,.2,1) .9s both; }
@keyframes grow { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(90px); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; translate: 0 -40px; scale: .6; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes centerIn { from { opacity: 0; filter: blur(6px); scale: .9; } to { opacity: 1; filter: none; scale: 1; } }
@keyframes turn { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes pop { from { opacity: .4; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Responsive */
/* Narrower screens: keep the top menu on one line (the anchors are all on the page). */
@media (max-width: 1180px) {
  .nav-in { gap: 20px; }
  .nav-links { gap: 18px; }
  .nav-links a[href="#new"], .nav-cta .link[href*="portal"] { display: none; }
}
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .solutions, .features, .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editions, .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .addons { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav.open .nav-in { flex-wrap: wrap; height: auto; padding: 13px 0 16px; }
  .nav.open .nav-links, .nav.open .nav-cta { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin: 0; gap: 14px; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .shot { order: 2; }
  .band { padding: 72px 0; }
}
@media (max-width: 600px) {
  .solutions, .features, .trio, .editions, .teams, .addons { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .foot .small { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .play .p-platform, .play .p-core, .play .p-draw, .play .p-seg, .play .p-tile, .play .p-label, .play .p-center { animation: none; }
  .orbit, .sweep, .blink, .h-tile .bob { animation: none; }
  .sweep { display: none; }
}
