/* ============================================================
   Revmatic Media — Design System (vanilla CSS)
   Tokens · Base · Components · Sections · Utilities
   ============================================================ */

:root {
  --ink: #060A1C;
  --deep: #0B1130;
  --mist: #F5F7FD;
  --line: #E6E9F4;
  --blue: #4F7CFF;
  --violet: #8B5CF6;
  --cyan: #38BDF8;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --grad: linear-gradient(135deg, #4F7CFF 0%, #8B5CF6 100%);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-soft: 0 24px 60px -24px rgba(6, 10, 28, 0.18);
  --shadow-card: 0 10px 40px -18px rgba(6, 10, 28, 0.16);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --nav-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(79, 124, 255, 0.25); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section--tight { padding-block: 64px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 64px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.on-dark .eyebrow, .eyebrow--dark { color: var(--cyan); }
.h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.h3 { font-size: 1.35rem; }
.lead { font-size: 1.125rem; color: var(--slate-600); }
.on-dark .lead { color: rgba(255, 255, 255, 0.72); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-md { max-width: 640px; }
.maxw-lg { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600;
  font-size: 0.95rem; padding: 13px 26px; border-radius: 999px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(99, 102, 241, 0.65); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost--dark { border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05); color: #fff; }
.btn-ghost--dark:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.link-arrow { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; font-size: 0.95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Surfaces ---------- */
.dark-section { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.deep-card { background: var(--deep); border: 1px solid rgba(255, 255, 255, 0.08); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: rgba(79, 124, 255, 0.35); }
.card--dark {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg); padding: 30px; backdrop-filter: blur(8px);
  transition: transform 0.28s ease, border-color 0.28s, background 0.28s;
}
.card--dark:hover { transform: translateY(-5px); border-color: rgba(56, 189, 248, 0.4); background: rgba(255, 255, 255, 0.06); }
.glass {
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.icon-badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 18px; flex: none;
}
.icon-badge svg { width: 21px; height: 21px; }
.icon-badge--soft { background: rgba(79, 124, 255, 0.1); color: var(--blue); }

/* ---------- Ambient backgrounds ---------- */
.aurora, .aurora-b {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5;
  pointer-events: none; will-change: transform;
}
.aurora { width: 560px; height: 560px; top: -180px; left: -120px; background: rgba(79, 124, 255, 0.5); animation: drift 16s ease-in-out infinite alternate; }
.aurora-b { width: 480px; height: 480px; bottom: -160px; right: -100px; background: rgba(139, 92, 246, 0.45); animation: drift 19s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 50px) scale(1.12); }
}
.dotgrid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.dotgrid--light { background-image: radial-gradient(rgba(6, 10, 28, 0.1) 1px, transparent 1px); }

/* ---------- Pulse divider ---------- */
.pulse-divider { display: flex; justify-content: center; padding: 6px 0 0; }
.pulse-divider svg { width: 220px; height: 34px; }
.pulse-divider path {
  fill: none; stroke: url(#pulseGrad); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
}
.revealed .pulse-divider path, .pulse-divider.revealed path { animation: dash 1.4s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px);
  border-bottom-color: var(--line); box-shadow: 0 8px 30px -18px rgba(6, 10, 28, 0.25);
}
.nav--dark-start:not(.scrolled) { color: #fff; }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.01em; }
.nav-logo img, .nav-logo svg { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; }
.nav-links a { font-size: 0.92rem; font-weight: 500; opacity: 0.82; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--blue); }
.nav--dark-start:not(.scrolled) .nav-links a:hover,
.nav--dark-start:not(.scrolled) .nav-links a[aria-current="page"] { color: var(--cyan); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; }
.nav-burger svg { width: 22px; height: 22px; }
.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft);
  padding: 18px 24px 26px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 4px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 14px; width: 100%; justify-content: center; }
@media (max-width: 1020px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: grid; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 84px; position: relative; overflow: hidden; }
.hero--dark { background: var(--ink); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .h1 .word { display: inline-block; opacity: 0; transform: translateY(18px); animation: word-in 0.6s ease forwards; }
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badge {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.04);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Floating stat cards over dashboard */
.hero-visual { position: relative; }
.float-card {
  position: absolute; padding: 14px 18px; border-radius: var(--r-md); z-index: 3;
  background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16); color: #fff;
  animation: floaty 5.5s ease-in-out infinite;
}
.float-card .num { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.float-card .lbl { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); font-family: var(--font-mono); letter-spacing: 0.05em; }
.float-card--tl { top: -22px; left: -18px; }
.float-card--br { bottom: -20px; right: -14px; animation-delay: 1.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 640px) { .float-card--tl { left: 0; } .float-card--br { right: 0; } }

/* ---------- Dashboard mockup ---------- */
.dash {
  background: var(--deep); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(6, 10, 28, 0.8);
}
.dash-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.dash-bar i:first-child { background: #f87171; } .dash-bar i:nth-child(2) { background: #fbbf24; } .dash-bar i:nth-child(3) { background: #34d399; }
.dash-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.05em; }
.dash-body { padding: 20px; display: grid; gap: 14px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-stat { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 12px; }
.dash-stat .k { font-family: var(--font-mono); font-size: 10px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.08em; text-transform: uppercase; }
.dash-stat .v { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 1.05rem; margin-top: 3px; }
.dash-stat .d { font-size: 10.5px; color: #34d399; font-family: var(--font-mono); }
.dash-chart { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 14px; }
.dash-chart svg { width: 100%; height: auto; }
.dash-bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.dash-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); opacity: 0.85; animation: bar-grow 1s ease both; transform-origin: bottom; }
.dash-bars i:nth-child(odd) { background: linear-gradient(180deg, var(--violet), var(--blue)); }
@keyframes bar-grow { from { transform: scaleY(0); } }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.stat .num .plus { color: var(--blue); }
.stat p { color: var(--slate-500); font-size: 0.93rem; margin-top: 4px; }
.on-dark .stat p { color: rgba(255, 255, 255, 0.6); }

/* ---------- Section headers ---------- */
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 14px; }

/* ---------- Feature / list bits ---------- */
.check-list { list-style: none; padding: 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--slate-600); }
.on-dark .check-list li { color: rgba(255, 255, 255, 0.75); }
.check-list svg { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 4px; }
.on-dark .check-list svg { color: var(--cyan); }

.num-list { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 22px; }
.num-list > li { display: flex; gap: 20px; }
.num-list > li::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-weight: 700; color: transparent;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  font-size: 1.35rem; line-height: 1.3; flex: none;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-mono); font-size: 12.5px; padding: 9px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--slate-600);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.on-dark .pill { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.7); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  padding: 0 22px; transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: rgba(79, 124, 255, 0.4); box-shadow: var(--shadow-card); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; padding: 18px 0; font-weight: 600; font-family: var(--font-display); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--blue); flex: none; transition: transform 0.25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--slate-600); }
.on-dark .faq details { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.on-dark .faq details[open] { border-color: rgba(56, 189, 248, 0.4); }
.on-dark .faq .a { color: rgba(255, 255, 255, 0.7); }
.on-dark .faq summary svg { color: var(--cyan); }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.quote-card .q { font-size: 1.02rem; color: rgba(255, 255, 255, 0.82); flex: 1; }
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
}
.quote-card .who b { display: block; font-size: 0.95rem; color: #fff; }
.quote-card .who span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.stars { display: flex; gap: 3px; color: #fbbf24; }
.stars svg { width: 15px; height: 15px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.post-card .meta { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--slate-400); letter-spacing: 0.04em; }
.post-card .cat {
  color: var(--blue); background: rgba(79, 124, 255, 0.09); border-radius: 999px; padding: 4px 11px; font-weight: 600;
}
.post-card h3 { font-size: 1.18rem; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { color: var(--slate-500); font-size: 0.95rem; flex: 1; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 40px; }
.filter-row .pill.active { background: var(--grad); color: #fff; border-color: transparent; }

.prose { max-width: 760px; }
.prose p { margin-bottom: 1.3em; color: var(--slate-600); font-size: 1.05rem; }
.prose h2 { margin: 1.8em 0 0.7em; font-size: 1.5rem; }
.prose h3 { margin: 1.5em 0 0.6em; font-size: 1.2rem; }
.prose ul { color: var(--slate-600); margin: 0 0 1.3em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; margin-bottom: 22px; }
.crumbs a { color: rgba(255, 255, 255, 0.5); }
.crumbs a:hover { color: var(--cyan); }
.crumbs svg { width: 13px; height: 13px; color: rgba(255, 255, 255, 0.3); }
.crumbs .cur { color: rgba(255, 255, 255, 0.85); }
.crumbs--light a { color: var(--slate-400); }
.crumbs--light a:hover { color: var(--blue); }
.crumbs--light svg { color: var(--slate-400); }
.crumbs--light .cur { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px;
  background: var(--ink); color: #fff; padding: 64px 40px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(79, 124, 255, 0.35), transparent 45%),
              radial-gradient(circle at 72% 70%, rgba(139, 92, 246, 0.35), transparent 45%);
  animation: drift 14s ease-in-out infinite alternate;
}
.cta-band > * { position: relative; }
.cta-band .h2 { max-width: 640px; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, 0.7); max-width: 560px; margin: 16px auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 640px) { .cta-band { padding: 48px 22px; } }

/* ---------- Forms ---------- */
.field { display: block; }
.field span { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: rgba(245, 247, 253, 0.7);
  border-radius: var(--r-sm); padding: 13px 16px; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.16);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: 0.78rem; color: var(--slate-400); margin-top: 14px; }
.form-ok {
  display: none; margin-top: 18px; padding: 13px 17px; border-radius: var(--r-sm);
  background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; font-size: 0.9rem;
  align-items: center; gap: 9px;
}
.form-ok.show { display: flex; }
.form-ok svg { width: 17px; height: 17px; flex: none; }

/* ---------- Contact info cards ---------- */
.contact-list { list-style: none; padding: 0; display: grid; gap: 20px; }
.contact-list a { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none;
  background: var(--grad);
}
.contact-list .ic--wa { background: #10B981; }
.contact-list .ic--li { background: #0A66C2; }
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list b { display: block; font-size: 0.95rem; }
.contact-list a:hover b { color: var(--blue); }
.contact-list small { color: var(--slate-500); font-size: 0.88rem; }
.map-frame { border: 0; width: 100%; height: 380px; display: block; filter: grayscale(0.2); }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); padding: 72px 0 30px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; font-size: 0.92rem; }
.footer ul a:hover { color: var(--cyan); }
.footer .brand-block p { font-size: 0.92rem; margin-top: 16px; max-width: 300px; }
.footer-social { display: flex; gap: 11px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15); transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 0.85rem;
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Floating social ---------- */
.float-social { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: grid; gap: 11px; }
.float-social a {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(6, 10, 28, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s;
}
.float-social a:hover { transform: translateY(-4px) scale(1.05); }
.float-social svg { width: 22px; height: 22px; }
.fs-wa { background: #10B981; }
.fs-mail { background: var(--grad); }
.fs-li { background: #0A66C2; }
@media (max-width: 640px) { .float-social { right: 14px; bottom: 16px; } .float-social a { width: 46px; height: 46px; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; padding: calc(var(--nav-h) + 60px) 0 72px; }
.page-hero .lead { max-width: 680px; }

/* ---------- Metric trio (product) ---------- */
.metric-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 720px) { .metric-band { grid-template-columns: 1fr; } }
.metric { text-align: center; padding: 30px 20px; }
.metric .v { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; }
.metric .l { color: var(--slate-500); font-size: 0.92rem; margin-top: 5px; }
.on-dark .metric .l { color: rgba(255, 255, 255, 0.6); }

/* ---------- Careers ---------- */
.role-row {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.role-row .tags { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--slate-500); }
.role-row .tags span { border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; background: var(--mist); }

/* ---------- Legal ---------- */
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 1.35rem; margin: 2em 0 0.6em; }
.legal-body p, .legal-body li { color: var(--slate-600); }
.legal-body ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.legal-body p { margin-bottom: 1.1em; }
.legal-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate-400); letter-spacing: 0.05em; }

/* ---------- 404 ---------- */
.nf { min-height: 82vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.nf .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 36px; }
.flex { display: flex; } .wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 12px; } .gap-3 { gap: 20px; }
.relative { position: relative; } .overflow-hidden { overflow: hidden; }
.text-slate { color: var(--slate-500); }
.small { font-size: 0.9rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
