/* ==========================================================================
   Pyraven — "Obsidian & Electric" design system
   Tokens → base → layout → components → sections → pages → motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --canvas: #090e1b;
  --surface: #121b2e;
  --surface-2: #17223a;
  --stroke: #29344e;
  --stroke-soft: rgba(255, 255, 255, .08);
  --iris: #8177ff;
  --iris-strong: #5f54ea;   /* button fill: 5.3:1 with white text (AA) */
  --lilac: #b6afff;
  --light: #f7f8fc;
  --text: #f7f8fe;
  --muted: #a4aec5;
  --ink: #141c2f;           /* text on light sections */
  --ink-muted: #556078;
  --danger: #ff8a8a;
  --success: #7fe0b0;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 120px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.04; letter-spacing: -.055em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.1; letter-spacing: -.045em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
p { margin: 0 0 1em; color: var(--muted); }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--iris); color: #fff; }

:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--iris-strong); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-top: 0; }
.section--light { background: var(--light); color: var(--ink); }
.section--light h2, .section--light h3 { color: var(--ink); }
.section--light p { color: var(--ink-muted); }
.section--light .eyebrow { color: #5a4fd6; }

.grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Components: text ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1.4 var(--font-head); letter-spacing: .18em; text-transform: uppercase;
  color: var(--lilac); margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 14px var(--iris); }
.accent { color: var(--lilac); }
.lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75; max-width: 560px; }
.small { font-size: 13px; }

.section-head { display: grid; gap: 20px; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 420px; margin: 0; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
}

/* ---------- Components: buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 700 14px/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { width: 14px; height: 14px; flex: none; }
.btn--primary { background: var(--iris-strong); color: #fff; box-shadow: 0 8px 40px rgba(101, 89, 229, .22); }
.btn--primary:hover { background: #5248dd; }
.btn--secondary { border-color: #48536c; background: rgba(255, 255, 255, .02); color: var(--text); }
.btn--secondary:hover { border-color: var(--lilac); }
.btn--sm { min-height: 42px; padding: 10px 16px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--lilac); font-weight: 600; font-size: 14px; }
.text-link:hover { color: #fff; }
.text-link .arrow { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.text-link:hover .arrow { transform: translate(2px, -2px); }

.pill {
  display: inline-block; border: 1px solid #5e6390; border-radius: 999px; padding: 6px 12px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #cfcdf3;
}

/* ---------- Components: navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.is-open { background: var(--canvas); }
.site-header.is-scrolled { background: rgba(9, 14, 27, .92); backdrop-filter: blur(12px); border-color: var(--stroke-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 22px; width: auto; }
.nav-menu { display: none; }
.nav-menu a:not(.btn) { color: #c3cada; font-size: 14px; padding: 8px 2px; transition: color .2s; }
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current="page"] { color: #fff; }
.nav-menu a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--iris); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--stroke); border-radius: 10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; inset-inline-start: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-menu.is-open {
  display: flex; flex-direction: column; gap: 4px;
  position: fixed; left: 0; right: 0; top: 76px; bottom: 0; overflow-y: auto; padding: 12px var(--gutter) 28px;
  background: var(--canvas); border-top: 1px solid var(--stroke-soft);
}
.nav-menu.is-open a:not(.btn) { font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--stroke-soft); }
.nav-menu.is-open .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .nav { height: 90px; }
  .brand img { height: 24px; }
  .nav-toggle { display: none; }
  .nav-menu, .nav-menu.is-open {
    display: flex; flex-direction: row; align-items: center; gap: 30px;
    position: static; padding: 0; background: none; border: 0;
  }
  .nav-menu.is-open a:not(.btn) { font-size: 14px; padding: 8px 2px; border: 0; }
  .nav-menu.is-open .btn { margin-top: 0; }
}

/* ---------- Components: cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid #303b53; border-radius: var(--r-lg); padding: 30px;
  transition: border-color .2s, transform .2s var(--ease);
}
a.card:hover, .card--link:hover { border-color: var(--iris); transform: translateY(-3px); }
.card .num { font: 600 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); }
.card h3 { margin: 48px 0 10px; }
.card p { font-size: 14px; line-height: 1.75; }
.card .text-link { margin-top: auto; padding-top: 8px; }
.card--flat h3 { margin-top: 0; }

.check-list li { position: relative; padding-inline-start: 26px; margin-bottom: 10px; color: #d7dcef; font-size: 15px; }
.check-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--lilac); border-bottom: 2px solid var(--lilac); transform: rotate(-45deg);
}
.section--light .check-list li { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: -76px; padding-top: 76px;
  background:
    radial-gradient(ellipse 670px 460px at 78% 45%, rgba(61, 51, 124, .41), transparent 70%),
    radial-gradient(ellipse 600px 400px at 58% 30%, rgba(23, 42, 74, .44), transparent 80%);
}
@media (min-width: 900px) { .hero { margin-top: -90px; padding-top: 90px; } }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .025;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.hero-inner { position: relative; display: grid; gap: 40px; align-items: center; padding-block: 56px 72px; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-note { margin-top: 36px; font-size: 13px; color: #8794b1; }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; min-height: 640px; padding-block: 48px 96px; }
}

/* Hero illustration (decorative, CSS-only) */
.hero-art { display: none; position: relative; width: 100%; max-width: 540px; height: 480px; perspective: 950px; }
@media (min-width: 1024px) { .hero-art { display: block; } }
.orbit {
  position: absolute; width: 370px; height: 370px; left: 64px; top: 56px; border-radius: 50%;
  border: 1px solid rgba(167, 160, 255, .15); box-shadow: 0 0 90px rgba(123, 104, 255, .07);
}
.orbit::before { content: ''; position: absolute; inset: 42px; border-radius: 50%; border: 1px solid rgba(178, 165, 255, .11); }
.panel {
  position: absolute; border: 1px solid rgba(91, 96, 140, .67); border-radius: var(--r-lg);
  background: linear-gradient(145deg, rgba(33, 42, 70, .93), rgba(13, 20, 38, .97));
  box-shadow: 0 45px 110px rgba(2, 5, 12, .88), 0 0 65px rgba(132, 119, 255, .07);
}
.panel--main { width: 460px; height: 300px; left: 35px; top: 100px; padding: 17px; transform: rotateY(-11deg) rotateX(5deg) rotateZ(-3deg); }
.panel-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .09); font-size: 12px; color: #c8cde4; }
.lights { display: flex; gap: 6px; }
.lights i { width: 7px; height: 7px; border-radius: 50%; background: #7b779c; }
.panel-body { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding-top: 19px; }
.side { display: grid; gap: 12px; align-content: start; border-right: 1px solid rgba(255, 255, 255, .09); }
.side i { height: 7px; width: 75%; border-radius: 8px; background: #566481; }
.side i:nth-child(2) { background: var(--iris); width: 85%; }
.side i:nth-child(4) { width: 60%; }
.dash-head { display: flex; justify-content: space-between; font-size: 12px; }
.dash-head span { font-size: 10px; color: #a6add2; }
.bars { display: flex; gap: 12px; align-items: end; height: 107px; padding: 10px 0; border-bottom: 1px solid #4a5875; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(#958bff, #3c4083); transform-origin: bottom; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.tiles div { border: 1px solid rgba(255, 255, 255, .08); border-radius: 7px; padding: 9px 7px; font-size: 13px; color: #e2e4fb; }
.tiles span { display: block; font-size: 9px; color: #909bb6; }
.panel--float { padding: 15px 17px; z-index: 1; }
.panel--a { top: 32px; right: 8px; width: 180px; transform: rotate(5deg); }
.panel--b { bottom: 19px; left: 2px; width: 195px; transform: rotate(-6deg); }
.panel--float small { display: block; font-size: 10px; letter-spacing: .06em; color: #a6b2cb; margin-bottom: 5px; }
.panel--float b { font: 600 18px/1.2 var(--font-head); color: var(--lilac); }
.panel .code { font: 11px/1.6 ui-monospace, monospace; color: #afa6ff; white-space: pre; }
.meter { height: 6px; margin: 10px 0 8px; border-radius: 5px; background: rgba(102, 114, 148, .25); }
.meter::after { content: ''; display: block; height: 100%; width: 65%; border-radius: 5px; background: #968cff; }
.panel .label { font-size: 10px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: #a99cff; }

/* ---------- Capability strip ---------- */
.strip { background: #111a2a; border-block: 1px solid var(--stroke-soft); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-block: 22px; }
.strip-inner .strip-label { width: 100%; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #aeb8c9; }
.strip-inner b { font: 600 14px var(--font-head); color: #d7dcf0; }
@media (min-width: 900px) {
  .strip-inner { justify-content: space-between; flex-wrap: nowrap; }
  .strip-inner .strip-label { width: auto; }
}

/* ---------- Featured product ---------- */
.feature {
  display: grid; overflow: hidden; border-radius: 24px; border: 1px solid #303d5d;
  background: linear-gradient(120deg, #1c2942, #101928 65%);
}
.feature-copy { padding: clamp(28px, 5vw, 62px); }
.feature-copy h2 { margin: 22px 0 16px; }
.feature-copy p { max-width: 440px; }
.feature-tags { font-size: 13px; color: #d8def0; margin-bottom: 28px; }
.feature-visual {
  position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; padding: 30px;
  background: radial-gradient(ellipse at 50% 70%, rgba(97, 88, 184, .27), transparent 65%);
}
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; min-height: 460px; } }

.mock-phone {
  width: 172px; height: 328px; padding: 14px; border-radius: 24px; border: 7px solid #29354b;
  background: #f7f8fb; color: #16213a; box-shadow: 20px 40px 65px rgba(0, 0, 0, .55); transform: rotate(7deg) translateX(40px);
}
.mock-phone .ph-logo { font: 700 16px var(--font-head); }
.mock-phone .ph-pic { height: 110px; margin: 14px 0; border-radius: 10px; background: linear-gradient(135deg, #c4d1e3, #686da8 65%, #2b2e59); }
.mock-phone .ph-title { font-size: 10px; font-weight: 700; }
.mock-phone .ph-line { height: 7px; margin: 9px 0; border-radius: 10px; background: #d8dfeb; }
.mock-phone .ph-btn { display: inline-block; padding: 7px 16px; border-radius: 7px; background: #6d62f5; color: #fff; font-size: 9px; }
.mock-web {
  position: absolute; left: 6%; bottom: 40px; width: min(300px, 70%); padding: 16px; border-radius: 12px;
  background: #fff; color: #111827; box-shadow: 0 25px 60px rgba(0, 0, 0, .6); transform: rotate(-8deg);
}
.mock-web .mw-top { padding-bottom: 6px; border-bottom: 1px solid #e8ebf3; font-size: 13px; font-weight: 800; }
.mock-web .mw-sub { font-size: 9px; color: #708097; margin-top: 8px; }
.mock-web .mw-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.mock-web .mw-rows i { height: 62px; border-radius: 7px; background: linear-gradient(130deg, #e9edfc, #8583bc); }
.mock-web .mw-rows i:nth-child(2) { background: linear-gradient(130deg, #d1e5e1, #80b5aa); }
.mock-web .mw-rows i:nth-child(3) { background: linear-gradient(130deg, #e8dcec, #c1a5d4); }

/* ---------- Process ---------- */
.step { border-top: 1px solid #a6b0c4; padding-top: 20px; }
.step .num { font: 600 14px var(--font-head); color: #5a4fd6; }
.step h3 { margin: 28px 0 10px; }
.step p { font-size: 14px; margin: 0; }
@media (min-width: 1024px) { .step h3 { margin-top: 44px; } }
.process-head { margin-bottom: 52px; }

/* ---------- CTA ---------- */
.cta { background: radial-gradient(ellipse at 88% 50%, rgba(64, 51, 131, .38), transparent 50%); }
.cta-inner { display: grid; gap: 40px; align-items: center; }
.cta h2 { max-width: 720px; margin: 0 0 16px; }
.cta-copy p { margin: 0 0 28px; max-width: 520px; }
@media (min-width: 1024px) { .cta-inner { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--stroke-soft); padding-block: 56px 32px; font-size: 14px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; font-size: 14px; }
.footer-col h2 { font: 600 12px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--stroke-soft); font-size: 13px; color: #8b95ad; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 110px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--stroke-soft);
  background: radial-gradient(ellipse 620px 380px at 85% 20%, rgba(61, 51, 124, .35), transparent 70%); }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 72px); max-width: 900px; margin-bottom: 20px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #8794b1; margin-bottom: 26px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: '/'; margin-inline-end: 8px; color: #4c5670; }

.split { display: grid; gap: 40px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1.4fr; gap: 72px; } }
.sticky-col { align-self: start; }
@media (min-width: 1024px) { .sticky-col { position: sticky; top: 120px; } }

.aside-box { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 28px; }
.aside-box h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 18px; }

.detail-list { display: grid; gap: 14px; }
.detail { border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 24px 26px; background: rgba(18, 27, 46, .6); }
.detail h3 { font-size: 19px; margin-bottom: 8px; }
.detail p { margin: 0; font-size: 15px; line-height: 1.75; }

.facts { display: grid; gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); border-radius: var(--r-md); overflow: hidden; }
.facts div { background: var(--surface); padding: 18px 22px; }
.facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8794b1; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--text); font-weight: 500; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); } }

.notice { border: 1px dashed #4a5578; border-radius: var(--r-md); padding: 18px 22px; font-size: 14px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; color: #d7dcef; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: #8794b1; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 15px; border-radius: 10px;
  background: #0d1426; border: 1px solid var(--stroke); color: var(--text); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #6e7891; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px rgba(129, 119, 255, .25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { display: block; margin-top: 6px; font-size: 13px; color: var(--danger); }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-consent { font-size: 13px; color: #8794b1; margin: 0; }
.alert { border-radius: var(--r-md); padding: 16px 18px; font-size: 15px; margin-bottom: 24px; }
.alert--success { background: rgba(127, 224, 176, .1); border: 1px solid rgba(127, 224, 176, .4); color: var(--success); }
.alert--error { background: rgba(255, 138, 138, .08); border: 1px solid rgba(255, 138, 138, .4); color: var(--danger); }
.cf-turnstile { min-height: 65px; }

.contact-list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--stroke-soft); }
.contact-list li:first-child { padding-top: 0; }
.contact-list span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8794b1; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--lilac); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hero-art .bars i { animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 300ms); }
.orbit { animation: spin 60s linear infinite; }
.panel--a { animation: float 7s ease-in-out infinite; }
.panel--b { animation: float 8s ease-in-out infinite reverse; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { translate: 0 -8px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.product-name { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.045em; margin: 22px 0 16px; }

/* ---------- Utilities ---------- */
.card .card-title { font-size: 22px; letter-spacing: -.025em; margin: 48px 0 10px; }
.card .card-title--compact { margin-top: 28px; }
.card-list { margin: 8px 0 24px; }
.detail h2 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }
.h2--sm { font-size: clamp(30px, 3.6vw, 46px); }
.h2--xs { font-size: clamp(26px, 3vw, 36px); }
.h1--sm { font-size: clamp(40px, 5vw, 64px); }
.page-hero-inner { position: relative; }
.btn--block { width: 100%; margin-top: 14px; }
.btn-row--center { align-items: center; }
.btn-row--justify { justify-content: center; }
.mt-14 { margin-top: 14px; }
.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-art { transform: scale(.82); transform-origin: left center; }
}
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Language switch ---------- */
.lang-switch { font-size: 14px; color: #c3cada; }
.nav-menu .lang-switch { padding: 6px 12px !important; border: 1px solid var(--stroke); border-radius: 999px; }
.nav-menu .lang-switch:hover { border-color: var(--lilac); color: #fff; }
.nav-menu.is-open .lang-switch { align-self: flex-start; margin-top: 16px; border: 1px solid var(--stroke) !important; }
@media (min-width: 900px) { .nav-menu.is-open .lang-switch { margin-top: 0; } }

/* ---------- Mock helpers (Gymivida illustration) ---------- */
.mock-phone .ph-dot { color: #6d62f5; }
.mock-phone .ph-line--85 { width: 85%; }
.mock-phone .ph-line--63 { width: 63%; }

/* ---------- Facts: 4-up variant ---------- */
@media (min-width: 768px) { .facts--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Inner page hero with artwork ---------- */
.page-art { display: none; position: relative; width: 100%; height: 380px; }
@media (min-width: 1024px) {
  .page-hero--art .page-hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
  .page-art { display: block; }
}
.orbit--sm { width: 300px; height: 300px; left: 50%; top: 50%; margin: -150px 0 0 -150px; }
.page-art .panel--float { animation: float 7s ease-in-out infinite; }
.page-art .panel--float:nth-of-type(odd) { animation-duration: 8.5s; animation-direction: reverse; }
.art-card small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #a6b2cb; margin-bottom: 6px; }
.art-card b { font: 600 17px/1.3 var(--font-head); color: var(--text); }

/* About: brand mark in orbit */
.art-mark {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 108px; margin: -62px 0 0 -75px;
  background: linear-gradient(135deg, var(--lilac), var(--iris) 55%, #4b40d0);
  -webkit-mask: url('../img/brand/pyraven-mark-light.png') center / contain no-repeat;
  mask: url('../img/brand/pyraven-mark-light.png') center / contain no-repeat;
  filter: drop-shadow(0 0 40px rgba(129, 119, 255, .55));
}
.art-card--studio { top: 18px; inset-inline-end: 0; width: 210px; transform: rotate(4deg); }
.art-coords { display: block; margin-top: 6px; font: 11px ui-monospace, monospace; color: #8794b1; }
.art-card--focus { bottom: 6px; inset-inline-start: 0; width: 230px; transform: rotate(-5deg); }
.art-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #d7dcef; margin-top: 8px; }
.art-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--iris); flex: none; }
.art-dot--lilac { background: var(--lilac); }
.meter--a::after { width: 78%; }
.meter--b::after { width: 52%; background: var(--lilac); }

/* Contact: inquiry composer */
.art-compose {
  display: flex; flex-direction: column;
  left: 50%; top: 50%; width: 330px; margin: -112px 0 0 -165px; padding: 16px 18px 18px;
  transform: rotateY(-8deg) rotateX(4deg) rotateZ(-2deg);
}
.art-compose .panel-top { margin-bottom: 14px; }
.compose-field { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; }
.compose-field small { font-size: 10px; color: #909bb6; min-width: 64px; }
.compose-field i, .compose-lines i { display: block; height: 6px; border-radius: 6px; background: #566481; width: 100%; }
.compose-lines { display: grid; gap: 8px; padding: 12px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; margin-bottom: 12px; }
.w-90 { width: 90% !important; } .w-70 { width: 70% !important; } .w-60 { width: 60% !important; } .w-45 { width: 45% !important; }
.compose-send { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; background: var(--iris-strong); color: #fff; font-size: 12px; font-weight: 700; }
.compose-send .arrow { width: 11px; height: 11px; }
.art-card--mail { top: -18px; inset-inline-end: -8px; width: 210px; transform: rotate(4deg); }
.art-card--mail b, .art-card--phone b { font-size: 14px; }
.art-card--phone { bottom: -6px; inset-inline-start: -8px; width: 196px; transform: rotate(-5deg); }
.art-pill {
  position: absolute; top: 96px; inset-inline-start: -4px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; color: var(--success);
  background: rgba(18, 27, 46, .95); border: 1px solid rgba(127, 224, 176, .35); box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.art-check { width: 10px; height: 6px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg) translateY(-2px); }

/* ==========================================================================
   Arabic / RTL
   Arabic letters join, so letter-spacing must stay 0 and uppercase is meaningless.
   Layout flips via logical properties above; arrows and gradients flip here.
   ========================================================================== */
[dir="rtl"] {
  --font-head: 'IBM Plex Sans Arabic', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'DM Sans', system-ui, sans-serif;
}
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .eyebrow, [dir="rtl"] .pill, [dir="rtl"] .num, [dir="rtl"] .strip-label,
[dir="rtl"] .footer-col h2, [dir="rtl"] .facts dt, [dir="rtl"] .contact-list span,
[dir="rtl"] .art-card small, [dir="rtl"] .product-name, [dir="rtl"] .btn {
  letter-spacing: 0;
}
[dir="rtl"] h1 { line-height: 1.25; font-weight: 700; }
[dir="rtl"] h2, [dir="rtl"] .product-name { line-height: 1.3; font-weight: 700; }
[dir="rtl"] h3 { line-height: 1.45; }
[dir="rtl"] .eyebrow { font-size: 14px; }
[dir="rtl"] .footer-col h2, [dir="rtl"] .facts dt, [dir="rtl"] .contact-list span, [dir="rtl"] .art-card small { font-size: 13px; }
/* Latin-only elements keep their Latin typography inside Arabic pages */
[dir="rtl"] .product-name, [dir="rtl"] [dir="ltr"] { font-family: 'Space Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
[dir="rtl"] .product-name { letter-spacing: -.045em; }
[dir="rtl"] .lang-switch { font-family: 'DM Sans', system-ui, sans-serif; }
[dir="ltr"] .lang-switch[lang="ar"] { font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; }

/* Arrows point toward reading direction */
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .text-link:hover .arrow { transform: scaleX(-1) translate(2px, -2px); }
[dir="rtl"] .hero-art .arrow, [dir="rtl"] [dir="ltr"] .arrow { transform: none; }

/* Background grid fades from the copy side */
[dir="rtl"] .grid-bg { -webkit-mask-image: linear-gradient(270deg, transparent, #000); mask-image: linear-gradient(270deg, transparent, #000); }
[dir="rtl"] .hero {
  background:
    radial-gradient(ellipse 670px 460px at 22% 45%, rgba(61, 51, 124, .41), transparent 70%),
    radial-gradient(ellipse 600px 400px at 42% 30%, rgba(23, 42, 74, .44), transparent 80%);
}
[dir="rtl"] .page-hero { background: radial-gradient(ellipse 620px 380px at 15% 20%, rgba(61, 51, 124, .35), transparent 70%); }
[dir="rtl"] .cta { background: radial-gradient(ellipse at 12% 50%, rgba(64, 51, 131, .38), transparent 50%); }
[dir="rtl"] .hero-art .panel--float b { font-family: var(--font-head); }
[dir="rtl"] .mock-phone { transform: rotate(-7deg) translateX(-40px); }
[dir="rtl"] .mock-web { left: auto; right: 6%; transform: rotate(8deg); }
[dir="rtl"] .feature { background: linear-gradient(240deg, #1c2942, #101928 65%); }

/* ---------- CTA artwork: idea → product ---------- */
.cta-art { display: none; position: relative; height: 300px; max-width: 520px; margin-inline-start: auto; }
@media (min-width: 1024px) { .cta-art { display: block; } }
.cta-link { position: absolute; inset-inline-start: 70px; top: 40px; width: 260px; height: 160px; }
.cta-idea { top: 6px; inset-inline-start: 0; width: 200px; display: flex; gap: 12px; align-items: center; transform: rotate(-5deg); }
.cta-idea small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #a6b2cb; margin-bottom: 8px; }
.idea-spark {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, var(--lilac) 30%, rgba(129, 119, 255, .15) 62%, transparent 70%);
  box-shadow: 0 0 28px rgba(182, 175, 255, .55);
}
.idea-line { display: block; width: 110px; height: 6px; border-radius: 6px; background: #566481; margin-top: 6px; }
.idea-line--short { width: 70px; }
.cta-product { bottom: 0; inset-inline-end: 0; width: 300px; padding: 16px 18px 18px; transform: rotate(2deg); }
.cta-product .panel-top { margin-bottom: 14px; }
.cta-steps { display: grid; gap: 10px; }
.cta-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d7dcef; }
.cta-steps li i { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--stroke); }
.cta-steps li.is-done i { background: var(--iris); border-color: var(--iris); }
.cta-steps li.is-done i::after {
  content: ''; position: absolute; left: 4px; top: 4px; width: 6px; height: 3px;
  border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg);
}
.cta-steps li.is-active i { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(182, 175, 255, .15); animation: pulse 2.4s ease-in-out infinite; }
.cta-steps li.is-active span { color: var(--lilac); }
.meter--cta { margin: 16px 0 8px; }
.meter--cta::after { width: 82%; }
.cta-note { font-size: 11px; color: #8794b1; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(182, 175, 255, 0); } }
[dir="rtl"] .cta-link { transform: scaleX(-1); }
[dir="rtl"] .cta-idea { transform: rotate(5deg); }
[dir="rtl"] .cta-product { transform: rotate(-2deg); }
[dir="rtl"] .cta-idea small { letter-spacing: 0; font-size: 13px; }
