/*
 * Warp Streak: components
 * Needs tokens.css first. Every class starts with "ws-" so it can sit next to any other CSS.
 */

/* Base */
.ws { margin: 0; background: var(--ws-night); color: var(--ws-text); font-family: var(--ws-sans); font-size: var(--ws-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ws *, .ws *::before, .ws *::after { box-sizing: border-box; }
.ws a { color: inherit; }
.ws-container { width: min(100% - 40px, var(--ws-container)); margin-inline: auto; }
.ws-narrow { width: min(100% - 40px, var(--ws-narrow)); margin-inline: auto; }
.ws-center { text-align: center; }
.ws-center .ws-lead { margin-inline: auto; }

/* Sections */
.ws-section { padding-block: var(--ws-section); }
.ws-section--deck { background: var(--ws-deck); border-block: var(--ws-border); }
.ws-section--void { background: var(--ws-void); }
.ws-rule { height: 1px; border: 0; margin: 0; background: var(--ws-line); }

/* Type: condensed capitals for display, Barlow for reading */
.ws-hero-title, .ws-h2, .ws-h3 { margin: 0; font-family: var(--ws-display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ws-tracking-display); color: inherit; }
.ws-hero-title { font-size: var(--ws-text-hero); line-height: .92; overflow-wrap: anywhere; }
.ws-h2 { font-size: var(--ws-text-h2); line-height: .98; }
.ws-h3 { font-size: var(--ws-text-h3); line-height: 1.05; }
.ws-accent { color: var(--ws-coral); }
.ws-lead { max-width: 620px; margin: 20px 0 0; color: var(--ws-soft); font-size: var(--ws-text-lead); line-height: 1.5; }
.ws-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--ws-coral); font-family: var(--ws-display); font-size: 15px; font-weight: 600; letter-spacing: var(--ws-tracking-label); text-transform: uppercase; }
.ws-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.ws-mono { font-family: var(--ws-mono); font-size: var(--ws-text-micro); letter-spacing: .02em; }
.ws-muted { color: var(--ws-soft); }

/* Nav: a flat bar on the void, logo left, caps links, one coral action */
.ws-nav-bar { position: relative; z-index: 2; background: color-mix(in srgb, var(--ws-void) 88%, transparent); border-bottom: var(--ws-border); }
.ws-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.ws-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ws-display); font-size: 22px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.ws-logo__mark { width: 30px; height: 30px; flex: none; clip-path: var(--ws-hex); background: linear-gradient(135deg, var(--ws-coral), var(--ws-coral-dark)); display: grid; place-items: center; }
.ws-logo__mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ws-text); box-shadow: 0 0 10px var(--ws-text); }
.ws-nav__links { display: flex; gap: 28px; font-family: var(--ws-display); font-size: 16px; font-weight: 500; letter-spacing: var(--ws-tracking-label); text-transform: uppercase; }
.ws-nav__links a { color: var(--ws-soft); text-decoration: none; }
.ws-nav__links a:hover, .ws-nav__links a[aria-current] { color: var(--ws-text); }
@media (max-width: 760px) { .ws-nav__links { display: none; } }

/* Buttons: square-cornered, condensed caps. Coral for the one main action */
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid transparent; border-radius: var(--ws-radius-sm); font-family: var(--ws-display); font-size: 17px; font-weight: 600; letter-spacing: var(--ws-tracking-label); line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--ws-ease), border-color .2s var(--ws-ease), transform .2s var(--ws-ease); }
.ws-btn:active { transform: translateY(1px); }
.ws-btn--primary { background: var(--ws-coral); color: var(--ws-text); }
.ws-btn--primary:hover { background: var(--ws-coral-dark); }
.ws-btn--outline { border-color: var(--ws-line); background: transparent; color: var(--ws-text); }
.ws-btn--outline:hover { border-color: var(--ws-soft); background: var(--ws-deck); }
.ws-btn--ghost { background: transparent; color: var(--ws-soft); padding-inline: 8px; }
.ws-btn--ghost:hover { color: var(--ws-text); }
.ws-btn--sm { padding: 9px 14px; font-size: 15px; }
.ws-btn--block { width: 100%; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ws-center .ws-actions { justify-content: center; }

/* Warp burst: thin light streaks from a vanishing point. Put .ws-warp inside a positioned box */
.ws-warp { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: var(--ws-void); }
.ws-warp::before { content: ""; position: absolute; inset: -20%; background:
  repeating-conic-gradient(from 0deg at 50% 50%,
    transparent 0deg 1.1deg,
    color-mix(in srgb, var(--ws-streak) 70%, transparent) 1.1deg 1.25deg,
    transparent 1.25deg 2.3deg,
    color-mix(in srgb, var(--ws-streak-2) 45%, transparent) 2.3deg 2.38deg,
    transparent 2.38deg 3.1deg,
    color-mix(in srgb, var(--ws-text) 35%, transparent) 3.1deg 3.16deg,
    transparent 3.16deg 4.4deg);
  -webkit-mask: radial-gradient(closest-side, transparent 10%, #000 34%, #000 70%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 10%, #000 34%, #000 70%, transparent 100%);
  animation: ws-spin 140s linear infinite; }
.ws-warp::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, var(--ws-glow) 0%, transparent 38%), linear-gradient(180deg, transparent 55%, var(--ws-night) 100%); }
.ws-warp--low::before { opacity: .45; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ws-warp::before { animation: none; } }

/* Hero: centered caps over the warp burst */
.ws-hero { position: relative; overflow: hidden; padding-block: clamp(96px, 14vw, 176px) clamp(80px, 10vw, 128px); text-align: center; }
.ws-hero > .ws-container { position: relative; z-index: 1; }
.ws-hero .ws-lead { margin-inline: auto; color: var(--ws-text); opacity: .82; }
.ws-hero .ws-actions { justify-content: center; }
.ws-hero--short { padding-block: clamp(72px, 9vw, 112px) clamp(56px, 7vw, 88px); }

/* Pager dots: a dark capsule with small dots, the active one is a hex in coral */
.ws-pager { display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; padding: 10px 18px; border-radius: var(--ws-radius); background: color-mix(in srgb, var(--ws-void) 80%, transparent); border: var(--ws-border); }
.ws-pager span { width: 8px; height: 8px; border-radius: 50%; background: var(--ws-faint); }
.ws-pager span[aria-current] { width: 14px; height: 14px; border-radius: 0; clip-path: var(--ws-hex); background: var(--ws-coral); }

/* Hex tile: coral hexagon holding an icon or a number */
.ws-hex { display: inline-grid; place-items: center; width: 52px; height: 46px; flex: none; clip-path: var(--ws-hex); background: var(--ws-coral); color: var(--ws-text); font-family: var(--ws-display); font-size: 20px; font-weight: 700; }
.ws-hex svg { width: 22px; height: 22px; }
.ws-hex--line { background: var(--ws-line); color: var(--ws-coral); }

/* Link row: hex tile + condensed caps label in coral, like a toolbar of entry points */
.ws-linkrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; }
.ws-linkrow a { display: inline-flex; align-items: center; gap: 12px; color: var(--ws-coral); font-family: var(--ws-display); font-size: 22px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.ws-linkrow a:hover { color: var(--ws-text); }
.ws-linkrow .ws-hex { width: 40px; height: 36px; }

/* Cards */
.ws-grid { display: grid; gap: 20px; }
.ws-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ws-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ws-card { position: relative; padding: 28px; border: var(--ws-border); border-radius: var(--ws-radius-lg); background: var(--ws-deck); box-shadow: var(--ws-shadow); }
.ws-card .ws-hex { margin-bottom: 22px; }
.ws-card p { margin: 10px 0 0; color: var(--ws-soft); }
.ws-card--glow { box-shadow: var(--ws-shadow-glow); }
.ws-card__media { position: relative; overflow: hidden; height: 180px; margin: -28px -28px 24px; border-bottom: var(--ws-border); border-radius: var(--ws-radius-lg) var(--ws-radius-lg) 0 0; }

/* Badges: tiny caps tags */
.ws-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: var(--ws-border); border-radius: var(--ws-radius-sm); color: var(--ws-soft); font-family: var(--ws-display); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ws-badge--coral { border-color: transparent; background: var(--ws-coral-soft); color: var(--ws-coral); }
.ws-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ws-green); box-shadow: 0 0 8px var(--ws-green); }

/* Stat: a big condensed number with a caps label */
.ws-stat__num { font-family: var(--ws-display); font-size: clamp(44px, 6vw, 72px); font-weight: 600; line-height: 1; }
.ws-stat__label { margin-top: 6px; color: var(--ws-soft); font-family: var(--ws-display); font-size: 15px; letter-spacing: var(--ws-tracking-label); text-transform: uppercase; }

/* Terminal-ish panel for schedules, settings and code */
.ws-panel { overflow: hidden; border: var(--ws-border); border-radius: var(--ws-radius-lg); background: var(--ws-void); box-shadow: var(--ws-shadow-glow); }
.ws-panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: var(--ws-border); color: var(--ws-faint); font-family: var(--ws-mono); font-size: var(--ws-text-micro); }
.ws-panel__row { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: var(--ws-border); font-size: var(--ws-text-small); }
.ws-panel__row:last-child { border-bottom: 0; }
.ws-panel__row:hover { background: var(--ws-deck); }

/* Forms */
.ws-field { display: grid; gap: 8px; margin-bottom: 18px; }
.ws-label { font-family: var(--ws-display); font-size: 14px; font-weight: 600; letter-spacing: var(--ws-tracking-label); text-transform: uppercase; color: var(--ws-soft); }
.ws-input, .ws-select { width: 100%; padding: 13px 14px; border: var(--ws-border); border-radius: var(--ws-radius-sm); background: var(--ws-night); color: var(--ws-text); font: 400 var(--ws-text-body) var(--ws-sans); }
.ws-input::placeholder { color: var(--ws-faint); }
.ws-input:focus, .ws-select:focus { outline: 2px solid var(--ws-coral); outline-offset: 1px; border-color: transparent; }
.ws-help { color: var(--ws-faint); font-size: 14px; }
.ws-check { display: flex; gap: 10px; align-items: flex-start; color: var(--ws-soft); font-size: var(--ws-text-small); }
.ws-check input { margin-top: 4px; accent-color: var(--ws-coral); }
.ws-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.ws-choice label { display: grid; gap: 2px; padding: 12px 14px; border: var(--ws-border); border-radius: var(--ws-radius-sm); background: var(--ws-night); cursor: pointer; }
.ws-choice label:has(input:checked) { border-color: var(--ws-coral); background: var(--ws-coral-soft); }
.ws-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ws-choice b { font-family: var(--ws-display); font-size: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ws-choice small { color: var(--ws-soft); font-size: 13px; }

/* Segmented toggle */
.ws-segment { display: inline-flex; padding: 4px; border: var(--ws-border); border-radius: var(--ws-radius); background: var(--ws-void); }
.ws-segment button { padding: 9px 18px; border: 0; border-radius: var(--ws-radius-sm); background: transparent; color: var(--ws-soft); font: 600 15px var(--ws-display); letter-spacing: var(--ws-tracking-label); text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ws-segment button[aria-pressed="true"] { background: var(--ws-coral); color: var(--ws-text); }

/* Pricing */
.ws-price { display: flex; flex-direction: column; padding: 32px 28px; border: var(--ws-border); border-radius: var(--ws-radius-lg); background: var(--ws-deck); }
.ws-price--featured { position: relative; border-color: var(--ws-coral); box-shadow: 0 0 0 1px var(--ws-coral), 0 24px 70px rgba(242, 89, 63, .18); }
.ws-price__name { font-family: var(--ws-display); font-size: 26px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ws-price__amount { margin: 18px 0 4px; font-family: var(--ws-display); font-size: 64px; font-weight: 600; line-height: 1; }
.ws-price__amount small { font-size: 20px; color: var(--ws-soft); font-weight: 500; }
.ws-price__list { display: grid; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; color: var(--ws-soft); font-size: var(--ws-text-small); }
.ws-price__list li { display: flex; gap: 10px; }
.ws-price__list li::before { content: ""; flex: none; width: 10px; height: 9px; margin-top: 7px; clip-path: var(--ws-hex); background: var(--ws-coral); }
.ws-price .ws-btn { margin-top: auto; }
.ws-table { width: 100%; border-collapse: collapse; font-size: var(--ws-text-small); }
.ws-table th, .ws-table td { padding: 14px 12px; border-bottom: var(--ws-border); text-align: left; }
.ws-table th { font-family: var(--ws-display); font-weight: 600; letter-spacing: var(--ws-tracking-label); text-transform: uppercase; color: var(--ws-soft); }
.ws-table-wrap { overflow-x: auto; }

/* FAQ */
.ws-faq details { border-bottom: var(--ws-border); padding-block: 18px; }
.ws-faq summary { cursor: pointer; font-family: var(--ws-display); font-size: 22px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; list-style: none; }
.ws-faq summary::after { content: "+"; float: right; color: var(--ws-coral); }
.ws-faq details[open] summary::after { content: "\2212"; }
.ws-faq p { margin: 10px 0 0; color: var(--ws-soft); }

/* Article */
.ws-article { font-size: 19px; line-height: 1.75; }
.ws-article > * + * { margin-top: 1.1em; }
.ws-article h2 { margin-top: 2em; font-family: var(--ws-display); font-size: 36px; font-weight: 600; line-height: 1.02; text-transform: uppercase; }
.ws-article p { margin-bottom: 0; color: color-mix(in srgb, var(--ws-text) 88%, var(--ws-soft)); }
.ws-article a { color: var(--ws-coral); text-underline-offset: 3px; }
.ws-article blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--ws-coral); font-family: var(--ws-display); font-size: 30px; font-weight: 500; line-height: 1.12; text-transform: uppercase; }
.ws-article code { padding: 2px 6px; border-radius: var(--ws-radius-sm); background: var(--ws-deck); font-family: var(--ws-mono); font-size: .82em; }
.ws-article ul { padding-left: 1.2em; color: var(--ws-soft); }
.ws-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; color: var(--ws-soft); font-size: var(--ws-text-small); }
.ws-avatar { display: inline-grid; place-items: center; width: 40px; height: 36px; clip-path: var(--ws-hex); background: var(--ws-deck-2); color: var(--ws-coral); font-family: var(--ws-display); font-weight: 700; }
.ws-figure { position: relative; overflow: hidden; height: 300px; margin: 2em 0; border: var(--ws-border); border-radius: var(--ws-radius-lg); }
.ws-caption { margin-top: -1.2em; color: var(--ws-faint); font-family: var(--ws-mono); font-size: var(--ws-text-micro); }

/* CTA band: a framed panel over a low warp burst */
.ws-cta { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 28px; border: var(--ws-border); border-radius: var(--ws-radius-lg); text-align: center; }
.ws-cta > :not(.ws-warp) { position: relative; z-index: 1; }

/* Footer */
.ws-footer { padding-block: 56px 40px; background: var(--ws-void); border-top: var(--ws-border); color: var(--ws-soft); font-size: var(--ws-text-small); }
.ws-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 32px; }
.ws-footer h4 { margin: 0 0 12px; color: var(--ws-text); font-family: var(--ws-display); font-size: 15px; font-weight: 600; letter-spacing: var(--ws-tracking-label); text-transform: uppercase; }
.ws-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ws-footer a { text-decoration: none; }
.ws-footer a:hover { color: var(--ws-text); }
.ws-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: var(--ws-border); color: var(--ws-faint); }
