/*
 * No @import of tokens.css here. WordPress enqueues it as this file's
 * dependency, so it always loads first WITH a ?ver= cache buster. An @import
 * resolves to the bare URL, which caches forever and independently — the
 * versioned <link> would serve new tokens while the imported copy kept serving
 * stale ones, and because this file loads later, the stale copy won.
 */

* { box-sizing: border-box; }
html, body, #root { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--background); color: var(--ink); font-family: var(--font-body); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
/* --on-accent is tuned for the bright --logo-grad, not for solid --brand,
   which darkens in light mode. --background inverts correctly against brand
   in both themes. */
::selection { background: var(--brand); color: var(--background); }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 4px; }

.site-shell { min-height: 100vh; background: var(--background); }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: var(--font-mono); letter-spacing: .10em; text-transform: uppercase; }
.eyebrow { color: var(--brand); font: 500 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.gradient-text { background: var(--head-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

.site-nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(22px); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--font-display); letter-spacing: -.05em; }
/* Inline SVG, painted from these variables — one colourway in both themes.
   The panel is the dark anchor, so the cyan no longer has to be darkened for
   light mode; darkening it dropped green-against-cyan to 1.14:1 and flattened
   the mark, which is the separation the panel exists to create. The wordmark
   beside it carries the accessible name. */
.brand-mark { width: 32px; height: 32px; display: block; --f2p-green: #05925E; --f2p-cyan: #04C3F0; --f2p-panel: #0E6A88; }

.brand-word { color: var(--ink); }
.brand-word span { background: var(--logo-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 13px; transition: color .18s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .locale-button { display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 10px; transition: background .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out); }
.icon-button { width: 38px; height: 38px; }
.locale-button { height: 38px; min-width: 44px; padding: 0 10px; font: 500 11px var(--font-mono); }
.icon-button:hover, .locale-button:hover { border-color: var(--line-strong); background: var(--surface-elevated); }
.icon-button:active, .locale-button:active, .button:active { transform: scale(.97); }
.menu-button { display: none; }

.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; background: var(--hero-bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, rgba(6,214,160,.12), transparent 42%); pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-grid { position: absolute; inset: 54% 0 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(to bottom, transparent, black 18%, transparent 100%); opacity: .28; }
.hero-content { position: relative; z-index: 1; padding-top: 88px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .45fr); gap: 70px; align-items: end; }
.hero-copy { max-width: 790px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--glass); color: var(--muted); font: 500 10px var(--font-mono); letter-spacing: .11em; }
.eyebrow-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(6,214,160,.12); }
.hero h1 { max-width: 790px; margin: 28px 0 24px; font: 700 clamp(52px, 8vw, 88px)/.96 var(--font-display); letter-spacing: -.055em; }
.hero h1 span { display: block; }
.hero-lede { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-button); font-weight: 600; font-size: 13px; transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out), background .18s var(--ease-out); }
.button-primary { color: var(--on-accent); background: var(--logo-grad); box-shadow: 0 12px 26px rgba(6,214,160,.18); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(6,214,160,.28); transform: translateY(-2px); }
.button-ghost { color: var(--ink); border-color: var(--line-strong); background: var(--glass); }
.button-ghost:hover { border-color: var(--brand); background: var(--surface-elevated); transform: translateY(-2px); }
.button-text { min-height: auto; padding: 0; color: var(--brand); background: transparent; }
.button-text:hover { color: var(--brand-strong); }
.hero-aside { padding-bottom: 10px; }
.hero-aside-card { padding: 20px; border-left: 1px solid var(--brand); background: linear-gradient(90deg, var(--glass), transparent); }
.hero-aside-card strong { display: block; margin: 8px 0; font: 600 22px/1.1 var(--font-display); }
.hero-aside-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--muted); font: 500 10px var(--font-mono); letter-spacing: .14em; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 42px; margin: 10px auto 0; background: var(--brand); opacity: .6; }

.section { padding: 120px 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-header h2 { max-width: 650px; margin: 14px 0 0; font: 600 clamp(36px, 5vw, 60px)/1 var(--font-display); letter-spacing: -.05em; }
.section-header p { max-width: 380px; margin: 0; color: var(--muted); line-height: 1.65; font-size: 15px; }
.portfolio-section { background: var(--background); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.portfolio-card { position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); transition: transform .22s var(--ease-out), border-color .22s var(--ease-out); }
.portfolio-card::before { content: ""; position: absolute; width: 220px; height: 220px; top: -100px; right: -90px; border-radius: 50%; background: var(--card-glow, rgba(6,214,160,.18)); filter: blur(6px); opacity: .75; pointer-events: none; }
.portfolio-card:hover { transform: translateY(-5px); border-color: var(--brand); }
.portfolio-card.double { grid-column: span 2; min-height: 350px; }
.card-top, .card-bottom { position: relative; z-index: 1; }
.card-top { display: flex; align-items: start; justify-content: flex-end; gap: 16px; }

.status { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: var(--radius-pill); color: var(--brand); background: var(--surface-muted); font: 500 9px var(--font-mono); letter-spacing: .08em; white-space: nowrap; }
.portfolio-card h3 { margin: 26px 0 10px; font: 600 clamp(25px, 3vw, 39px)/1 var(--font-display); letter-spacing: -.05em; }
.card-powered { margin-left: 8px; color: var(--brand); font: 500 10px var(--font-mono); letter-spacing: .1em; vertical-align: middle; }
.portfolio-card p { max-width: 580px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 28px; }
.metric-row { display: flex; flex-wrap: wrap; gap: 7px; }
.metric { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); color: var(--muted); font: 500 10px var(--font-mono); }
.metric strong { color: var(--ink); font-size: 12px; }
.sector-line { max-width: 180px; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }

.model-section { background: var(--surface); }
.model-layout { display: grid; grid-template-columns: .45fr 1fr; gap: 80px; }
.model-intro { max-width: 340px; }
.model-intro h2 { margin: 14px 0; font: 600 clamp(36px, 5vw, 56px)/.98 var(--font-display); letter-spacing: -.05em; }
.model-intro p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.stages { border-top: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: 110px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.stage-number { color: var(--brand); font: 500 11px var(--font-mono); letter-spacing: .13em; }
.stage h3 { margin: 0 0 7px; font: 600 25px/1.1 var(--font-display); letter-spacing: -.04em; }
.stage p { max-width: 630px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

/* Deliberately inverted band. --deep-grad is a brand constant that stays dark
   in both themes, so the text tokens inside it are pinned to their dark-theme
   values; every descendant inherits these instead of the page palette. */
.credentials-section {
  /* Deeper than the shared --deep-grad: that gradient's 42% stop (#0A7A55) is
     light enough to drop body copy to 3.3:1. These stops clear 4.9:1 for every
     token below, at every point in the sweep. */
  background:
    radial-gradient(circle at 16% 8%, rgba(44,229,171,0.22) 0%, transparent 46%),
    linear-gradient(150deg, #05432F 0%, #06513A 42%, #03251C 100%);
  --ink: #E6FBF6;
  --muted: #94D8C8;
  --line: rgba(148,216,200,0.20);
  --line-strong: #4FB79A;
  --brand: #06D6A0;
  --glass: rgba(6,31,26,0.72);
}
.credentials-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.credentials-section h2 { max-width: 520px; margin: 14px 0 0; color: var(--ink); font: 600 clamp(35px, 5vw, 58px)/1 var(--font-display); letter-spacing: -.05em; }
.credentials-section p { max-width: 560px; color: var(--muted); line-height: 1.75; font-size: 15px; }
.credential-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.credential-list li { display: flex; justify-content: space-between; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; }
.credential-list strong { color: var(--ink); font-weight: 500; text-align: right; }

.cta-section { padding: 118px 0 130px; background: var(--surface); }
.cta-panel { position: relative; overflow: hidden; display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 58px; border: 1px solid var(--line-strong); border-radius: 24px; background: radial-gradient(circle at 75% 10%, rgba(6,214,160,.22), transparent 35%), var(--surface-muted); }
.cta-panel::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, transparent 32%, black); opacity: .3; pointer-events: none; }
.cta-copy, .cta-panel .button { position: relative; z-index: 1; }
.cta-panel h2 { max-width: 660px; margin: 14px 0; font: 600 clamp(38px, 5.4vw, 68px)/.96 var(--font-display); letter-spacing: -.055em; }
.cta-panel p { max-width: 570px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.footer-inner strong { color: var(--ink); font-weight: 500; }

.platform-hero { position: relative; overflow: hidden; padding: 176px 0 100px; background: var(--hero-bg); }
.platform-hero::before { content: ""; position: absolute; width: 800px; height: 540px; top: 100px; right: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(6,214,160,.20), transparent 68%); filter: blur(16px); }
.platform-hero-content { position: relative; z-index: 1; max-width: 880px; }
.platform-hero h1 { margin: 20px 0 22px; font: 700 clamp(58px, 9vw, 110px)/.9 var(--font-display); letter-spacing: -.065em; }
.platform-positioning { max-width: 680px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.platform-hero .status { margin-left: 12px; vertical-align: middle; }
.platform-detail { padding: 108px 0; background: var(--surface); }
.detail-grid { display: grid; grid-template-columns: .7fr 1fr; gap: 100px; }
.detail-sticky h2 { max-width: 340px; margin: 14px 0 0; font: 600 clamp(38px, 5vw, 64px)/.95 var(--font-display); letter-spacing: -.055em; }
.detail-content > section { padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.detail-content h3 { margin: 0 0 14px; font: 600 28px/1.1 var(--font-display); letter-spacing: -.04em; }
.detail-content p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.detail-content ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.detail-content li { display: flex; gap: 12px; color: var(--muted); line-height: 1.55; font-size: 14px; }
.detail-content li::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; margin-top: 7px; border-radius: 50%; background: var(--brand); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.proof-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-muted); }
.proof-card strong { display: block; color: var(--brand); font: 600 25px var(--font-display); }
.proof-card span { display: block; margin-top: 7px; color: var(--muted); font: 500 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

.dialog-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,16,12,.72); backdrop-filter: blur(14px); }
/* The dialog is a sibling of .site-shell, so it inherits from <body> directly
   and must state its own colour — WordPress global styles also target body. */
.dialog { color: var(--ink); width: min(620px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; padding: 30px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dialog h2 { margin: 9px 0 0; font: 600 34px/1 var(--font-display); letter-spacing: -.05em; }
.dialog-close { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; }
.dialog-close:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-muted); }
.demo-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font: 500 10px var(--font-mono); letter-spacing: .10em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; color: var(--ink); background: var(--surface-muted); outline: none; transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6,214,160,.12); }
.field textarea { min-height: 100px; resize: vertical; }
/* Browser default placeholders sit near 54% opacity — 3.6:1 in dark, 4.3:1 in
   light. opacity:1 is needed because Firefox dims placeholders on top of the
   colour. Gives 10.1:1 dark, 5.3:1 light. */
.field ::placeholder { color: var(--muted); opacity: 1; }
.field-error { color: var(--danger); font-size: 12px; }

/* Contact Form 7 renders the dialog's form. It wraps every control in a span
   and appends its own status output; these rules make that markup sit inside
   the designed layout instead of beside it. */
.demo-form .wpcf7-form-control-wrap { display: block; }
.demo-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: var(--danger); font-size: 12px; }
.demo-form .wpcf7-not-valid { border-color: var(--danger); }
.demo-form .wpcf7-spinner { display: none; }
.demo-form.submitting .wpcf7-submit { opacity: .6; pointer-events: none; }
.demo-form .wpcf7-response-output { margin: 4px 0 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.demo-form.invalid .wpcf7-response-output, .demo-form.spam .wpcf7-response-output { border-color: var(--danger); color: var(--danger); }
/* CF7's submit is an <input>, so the arrow has to come from CSS, not a span. */
.demo-form .wpcf7-submit { justify-self: start; }
.wpcf7 { display: contents; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dialog-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.success-state { padding: 42px 8px 24px; text-align: center; }
.success-orbit { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 22px; border: 1px solid var(--brand); border-radius: 50%; color: var(--on-accent); background: var(--logo-grad); font-size: 25px; }
.success-state h3 { margin: 0 0 10px; font: 600 30px var(--font-display); letter-spacing: -.04em; }
.success-state p { margin: 0; color: var(--muted); line-height: 1.6; }
.mobile-demo-bar { position: fixed; z-index: 35; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 16px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(20px); transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; transition: transform .28s var(--ease-out), opacity .28s var(--ease-out); }
.mobile-demo-bar span { color: var(--muted); font-size: 12px; line-height: 1.3; }
.mobile-demo-bar .button { min-height: 40px; padding: 0 13px; font-size: 12px; white-space: nowrap; }
.mobile-demo-bar.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

[dir="rtl"] { font-family: "Readex Pro", var(--font-body); }
[dir="rtl"] .mono, [dir="rtl"] .eyebrow, [dir="rtl"] .status, [dir="rtl"] .metric, [dir="rtl"] .field label, [dir="rtl"] .credential-list, [dir="rtl"] .footer-inner { font-family: "IBM Plex Mono", monospace; }
[dir="rtl"] .hero h1, [dir="rtl"] .section-header h2, [dir="rtl"] .model-intro h2, [dir="rtl"] .credentials-section h2, [dir="rtl"] .cta-panel h2, [dir="rtl"] .platform-hero h1, [dir="rtl"] .detail-sticky h2, [dir="rtl"] .dialog h2, [dir="rtl"] .success-state h3, [dir="rtl"] .stage h3, [dir="rtl"] .detail-content h3 { font-family: "Readex Pro", sans-serif; letter-spacing: -.06em; }
[dir="rtl"] .hero-aside-card { border-left: 0; border-right: 1px solid var(--brand); background: linear-gradient(270deg, var(--glass), transparent); }
[dir="rtl"] .sector-line { text-align: left; }
[dir="rtl"] .credential-list strong { text-align: left; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-button { display: grid; }
  /* The menu button appears from 900px down, so the open panel has to be
     available across the whole range — not only under 620px. */
  /* Solid --surface, not --glass: the panel sits over the animated hero, and a
     72%-alpha ground let the headline read straight through it wherever
     backdrop-filter was unsupported or the ground behind was bright. */
  .nav-links.open { position: absolute; top: 76px; left: 14px; right: 14px; display: grid; gap: 0; padding: 8px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .nav-links.open a { padding: 13px 12px; border-bottom: 1px solid var(--line); }
  .nav-links.open a:last-child { border-bottom: 0; }
  /* The aside stacks under the hero copy here, so the absolutely positioned
     cue would sit on top of its text. */
  .scroll-cue { display: none; }
  .hero { min-height: 720px; }
  .hero-content { grid-template-columns: 1fr; gap: 38px; }
  .hero-aside { max-width: 340px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-card.double { grid-column: span 2; }
  .model-layout, .credentials-layout, .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .detail-sticky { max-width: 520px; }
}

@media (max-width: 620px) {
  .mobile-demo-bar { display: flex; }
  .container { width: min(100% - 28px, 520px); }
  .nav-inner { min-height: 68px; }
  .brand { font-size: 20px; }
  .nav-actions { flex-shrink: 0; }
  .nav-demo { min-height: 42px; padding: 0 12px; font-size: 12px; }
  .nav-links.open { top: 68px; }
  .hero { min-height: 760px; }
  .hero-content { padding-top: 92px; }
  .hero h1 { max-width: 100%; margin-top: 22px; font-size: clamp(46px, 13vw, 68px); overflow-wrap: anywhere; }
  .hero-lede { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .section { padding: 82px 0; }
  .section-header { display: block; margin-bottom: 30px; }
  .section-header p { margin-top: 20px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card, .portfolio-card.double { grid-column: span 1; min-height: 330px; }
  .card-bottom { display: block; }
  .sector-line { max-width: none; margin-top: 16px; text-align: left; }
  [dir="rtl"] .sector-line { text-align: right; }
  .stage { grid-template-columns: 1fr; gap: 12px; }
  .cta-panel { display: block; padding: 30px 24px; }
  .cta-panel .button { margin-top: 28px; }
  .footer-inner { display: block; }
  .footer-inner > div + div { margin-top: 16px; }
  .platform-hero { padding: 138px 0 78px; }
  .platform-hero h1 { max-width: 100%; font-size: clamp(48px, 14vw, 68px); overflow-wrap: anywhere; }
  .platform-positioning { font-size: 16px; }
  .platform-hero .status { display: table; max-width: 100%; margin: 18px 0 0; white-space: normal; overflow-wrap: anywhere; }
  .platform-detail { padding: 80px 0; }
  .proof-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dialog { padding: 22px; }
  .dialog-header h2 { max-width: 250px; overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 20px); }
  .nav-inner { gap: 8px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-actions { gap: 5px; }
  .nav-demo { max-width: 126px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .icon-button, .locale-button { width: 34px; min-width: 34px; height: 34px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 58px); }
  .platform-hero h1 { font-size: clamp(44px, 13vw, 58px); }
  [dir="rtl"] .platform-hero h1 { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .portfolio-card:hover, .button-primary:hover, .button-ghost:hover { transform: none; }
}

/* Portfolio cards became links to their platform pages — keep them reading as
   cards, and give the whole card a visible focus ring for keyboard users. */
a.portfolio-card { color: inherit; text-decoration: none; cursor: pointer; }
a.portfolio-card:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 4px; }
