/* ==========================================================================
   Datoryx — Design System
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (data)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;family=IBM+Plex+Mono:wght@500;600&amp;display=swap');

:root {
  /* ---- Brand ---- */
  --primary: #3D52A8;
  --primary-hover: #2E3F86;
  --primary-tint: #EEF1FB;
  --primary-soft: #DEE4F7;
  --accent: #EF4A2C;
  --accent-hover: #D93A1D;
  --accent-tint: #FDECE8;
  --gold: #D6971E;
  --gold-tint: #FBF1DC;

  /* ---- Neutrals ---- */
  --bg: #F7F8FB;
  --surface: #FFFFFF;
  --surface-alt: #F1F3F9;
  --border: #E3E7F0;
  --border-strong: #CBD2E1;
  --text: #1F2333;
  --text-secondary: #5B6272;
  --text-muted: #8A93B8;

  /* ---- Semantic ---- */
  --success: #1F9D6F;
  --success-tint: #E4F5EE;
  --warning: #D6971E;
  --warning-tint: #FBF1DC;
  --error: #E5484D;
  --error-tint: #FCE8E9;
  --info: #2F6FED;
  --info-tint: #E9F0FE;

  /* ---- Dashboard / dark panel ---- */
  --dark-bg: #0E1428;
  --dark-surface: #161D3A;
  --dark-surface-2: #1D2549;
  --dark-border: #2A3260;
  --dark-text: #E7EAF6;
  --dark-muted: #8A93B8;

  /* ---- Chart palette ---- */
  --chart-1: #3D52A8;
  --chart-2: #EF4A2C;
  --chart-3: #D6971E;
  --chart-4: #1F9D6F;
  --chart-5: #6D5BD0;
  --chart-6: #2F6FED;

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* ---- Scale ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(24, 30, 61, 0.06), 0 1px 1px rgba(24, 30, 61, 0.04);
  --shadow-md: 0 8px 24px rgba(24, 30, 61, 0.08), 0 2px 6px rgba(24, 30, 61, 0.05);
  --shadow-lg: 0 24px 56px rgba(24, 30, 61, 0.14), 0 4px 12px rgba(24, 30, 61, 0.06);
  --shadow-glow: 0 0 0 1px rgba(61, 82, 168, 0.08), 0 20px 48px rgba(61, 82, 168, 0.16);

  --container: 1200px;
  --header-h: 76px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: 12px 20px; border-radius: 0 0 10px 0; z-index: 300; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 108px 0; }
.section-tight { padding: 72px 0; }
@media (max-width: 860px) { .section { padding: 72px 0; } .section-tight { padding: 52px 0; } }

.grid { display: grid; gap: 28px; }
.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: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split-wide-left { grid-template-columns: 1.2fr 1fr; }
.split-wide-right { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 860px) { .split-wide-left, .split-wide-right { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 10px; } .gap-md { gap: 18px; } .gap-lg { gap: 32px; }

/* ---- Type utilities ---- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--primary); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.h1 { font-size: clamp(2.5rem, 4.4vw, 3.8rem); line-height: 1.06; }
.h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.12; }
.h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.25; }
.h4 { font-size: 1.15rem; line-height: 1.35; }
.lede { font-size: 1.18rem; line-height: 1.6; color: var(--text-secondary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: var(--radius-full); border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); }
.btn-on-dark:hover { background: rgba(255,255,255,0.16); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 200; height: var(--header-h);
  background: rgba(247, 248, 251, 0.86); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(24,30,61,0.05); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand svg { width: 34px; height: 34px; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 10px 15px; border-radius: var(--radius-full);
  font-weight: 500; font-size: 14.5px; color: var(--text); transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover, .nav-link.is-open { background: var(--surface-alt); color: var(--primary); }
.nav-link svg { width: 15px; height: 15px; transition: transform 0.18s ease; color: var(--text-muted); }
.nav-item.is-open .nav-link svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-item.is-open .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-col-heading { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.mega-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500; }
.mega-link:hover { background: var(--surface-alt); }
.mega-link .mega-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-link .mega-icon svg { width: 16px; height: 16px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--text); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-outline { display: none; }
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 190;
  padding: 14px 20px 40px; overflow-y: auto; transform: translateY(-12px); opacity: 0;
  visibility: hidden; transition: all 0.2s ease;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav a { display: block; padding: 15px 6px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav .mobile-cta { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 76px 0 60px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 88% -6%, rgba(61,82,168,0.14), transparent 60%),
    radial-gradient(560px 360px at 6% 18%, rgba(239,74,44,0.08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy h1 { margin-top: 18px; }
.hero-copy p.lede { margin-top: 20px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { margin-top: 52px; }
.hero-trust .trust-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.trust-logos { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; opacity: 0.75; }
.trust-logos svg { height: 22px; width: auto; color: var(--text-secondary); }

/* ---- Hero dashboard mock + floating cards ---- */
.hero-visual { position: relative; }
.dash-mock {
  background: var(--dark-bg); border-radius: var(--radius-xl); padding: 20px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--dark-border); position: relative; z-index: 2;
}
.dash-mock-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 0 4px; }
.dash-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dark-border); }
.dash-mock-title { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--dark-muted); }

.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 14px 16px; z-index: 3; animation: floaty 5.5s ease-in-out infinite;
}
.float-card.fc-1 { top: -6%; left: -9%; animation-delay: 0s; }
.float-card.fc-2 { bottom: 8%; right: -10%; animation-delay: 1.3s; }
.float-card.fc-3 { bottom: -7%; left: 6%; animation-delay: 2.6s; }
.float-card .fc-row { display: flex; align-items: center; gap: 10px; }
.float-card .fc-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-card .fc-icon svg { width: 15px; height: 15px; }
.float-card .fc-label { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }
.float-card .fc-value { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; margin-top: 1px; }
.float-card .fc-value.up { color: var(--success); }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }
@media (max-width: 980px) { .float-card { display: none; } }

/* ---- Signature background watermark (layered panels) ---- */
.panel-watermark { position: absolute; opacity: 0.05; pointer-events: none; z-index: 0; }

/* ---- Stats band ---- */
.stats-band { background: var(--text); border-radius: var(--radius-xl); padding: 52px 44px; }
.stats-band .grid-4 { gap: 20px; }
.stat-item { text-align: left; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.6rem); color: #fff; }
.stat-label { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 6px; }
@media (max-width: 640px) { .stats-band { padding: 36px 24px; } }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; }
.card-icon.tone-primary { background: var(--primary-tint); color: var(--primary); }
.card-icon.tone-accent { background: var(--accent-tint); color: var(--accent); }
.card-icon.tone-gold { background: var(--gold-tint); color: var(--gold); }
.card h3 { margin-top: 2px; }
.card p { margin-top: 10px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14.5px; color: var(--primary); }
.card-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

.feature-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-secondary); }
.feature-list svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ---- Solutions tabs ---- */
.tabs-nav { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-bottom: 40px; }
.tab-btn { padding: 11px 18px; border-radius: var(--radius-full); font-weight: 600; font-size: 14.5px; color: var(--text-secondary); background: transparent; border: none; }
.tab-btn:hover { background: var(--surface-alt); }
.tab-btn.is-active { background: var(--text); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadein 0.3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Comparison table ---- */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
table.compare th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
table.compare td:first-child, table.compare th:first-child { font-weight: 600; color: var(--text); }
table.compare tr:last-child td { border-bottom: none; }
table.compare svg { width: 18px; height: 18px; }
table.compare .yes { color: var(--success); }
table.compare .no { color: var(--border-strong); }
table.compare .highlight-col { background: var(--primary-tint); }

/* ---- Process / timeline ---- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
@media (max-width: 860px) { .process-steps { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-top: 6px; }
.process-num { font-family: var(--font-mono); font-size: 13px; color: var(--primary); font-weight: 600; }
.process-step h4 { margin-top: 14px; }
.process-step p { margin-top: 8px; font-size: 14.5px; color: var(--text-secondary); }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 110px 24px 1fr; gap: 20px; padding-bottom: 40px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year { font-family: var(--font-mono); font-weight: 600; color: var(--primary); font-size: 14.5px; padding-top: 2px; }
.timeline-dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }
.timeline-line { flex: 1; width: 2px; background: var(--border); margin-top: 6px; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content h4 { margin-bottom: 6px; }
.timeline-content p { color: var(--text-secondary); font-size: 14.5px; }

/* ---- Testimonials / case studies ---- */
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.testimonial-card .quote-mark { width: 30px; height: 22px; color: var(--primary-soft); }
.testimonial-card p.quote-text { font-size: 15.5px; line-height: 1.65; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar-badge { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 15px; flex-shrink: 0; }
.testimonial-person .name { font-weight: 600; font-size: 14.5px; }
.testimonial-person .role { font-size: 13px; color: var(--text-muted); }

.case-study-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 700px) { .case-study-card { grid-template-columns: 1fr; } }
.case-metric { text-align: center; padding: 0 18px; border-left: 1px solid var(--border); }
.case-metric .cm-value { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--primary); }
.case-metric .cm-label { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.case-metrics-row { display: flex; }
@media (max-width: 700px) { .case-metric:first-child { border-left: none; } }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: none; text-align: left; }
.faq-q-text { font-weight: 600; font-size: 15.5px; }
.faq-question svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.is-open .faq-question svg { transform: rotate(45deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer-inner { padding: 0 24px 22px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; max-width: 680px; }
.faq-item.is-open .faq-answer { max-height: 420px; }

/* ---- CTA blocks ---- */
.cta-block { background: linear-gradient(120deg, var(--primary) 0%, #4C63BE 55%, var(--accent) 130%); border-radius: var(--radius-xl); padding: 64px 56px; color: #fff; position: relative; overflow: hidden; }
.cta-block::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 260px at 88% 10%, rgba(255,255,255,0.18), transparent 60%); }
.cta-block-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,0.82); margin-top: 12px; max-width: 460px; }
.cta-block .btn-primary { background: #fff; color: var(--primary); }
.cta-block .btn-primary:hover { background: #F1F3F9; }
@media (max-width: 640px) { .cta-block { padding: 44px 28px; } }

.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 36px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-alt); flex-wrap: wrap; }

.newsletter-block { background: var(--dark-bg); border-radius: var(--radius-xl); padding: 54px 56px; color: #fff; }
.newsletter-block h2 { color: #fff; }
.newsletter-block p { color: var(--dark-muted); margin-top: 10px; }
.newsletter-form { display: flex; gap: 10px; margin-top: 26px; max-width: 460px; }
.newsletter-form input { flex: 1; padding: 13px 18px; border-radius: var(--radius-full); border: 1px solid var(--dark-border); background: var(--dark-surface); color: #fff; }
.newsletter-form input::placeholder { color: var(--dark-muted); }
@media (max-width: 560px) { .newsletter-form { flex-direction: column; } .newsletter-block { padding: 38px 26px; } }
.form-note { font-size: 12.5px; color: var(--dark-muted); margin-top: 12px; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); outline: none; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-secondary); }
.form-check input { margin-top: 3px; }
.form-success { display: none; align-items: center; gap: 12px; padding: 20px 22px; background: var(--success-tint); border: 1px solid #B9E4D2; border-radius: var(--radius-md); color: #177A56; font-weight: 600; }
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

.info-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 26px; display: flex; gap: 16px; }
.info-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.info-card h4 { margin-bottom: 6px; }
.info-card p { color: var(--text-secondary); font-size: 14.5px; }
.info-card a { color: var(--primary); font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: var(--text); color: rgba(255,255,255,0.68); padding: 76px 0 32px; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 280px; font-size: 14.5px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer-col h5 { color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---- Cookie bar ---- */
.cookie-bar {
  position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 480px; z-index: 250;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px; transform: translateY(140%); transition: transform 0.35s ease;
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar h4 { margin-bottom: 8px; }
.cookie-bar p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 18px; }
.cookie-bar a { color: var(--primary); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-prefs { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); flex-direction: column; gap: 12px; }
.cookie-prefs.is-visible { display: flex; }
.cookie-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.cookie-toggle-row .ct-label { font-weight: 600; }
.cookie-toggle-row .ct-desc { font-size: 12.5px; color: var(--text-muted); font-weight: 400; }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background 0.15s ease; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.15s ease; }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 560px) { .cookie-bar { left: 12px; right: 12px; bottom: 12px; padding: 20px; } }

/* ---- Dashboard mockup (platform page) ---- */
.dash-panel { background: var(--dark-bg); border: 1px solid var(--dark-border); border-radius: var(--radius-xl); padding: 26px; color: var(--dark-text); }
.dash-toolbar { display: flex; align-items: center; gap: 20px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--dark-border); flex-wrap: wrap; }
.dash-tab { font-size: 13.5px; font-weight: 600; color: var(--dark-muted); padding: 8px 4px; border-bottom: 2px solid transparent; }
.dash-tab.is-active { color: #fff; border-color: var(--accent); }
.dash-live { margin-left: auto; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--success); }
.dash-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(31,157,111,0.5); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(31,157,111,0.5); } 70% { box-shadow: 0 0 0 8px rgba(31,157,111,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,111,0); } }

.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card { background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: var(--radius-md); padding: 18px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dash-card-head .dch-title { font-size: 12.5px; color: var(--dark-muted); font-family: var(--font-mono); }
.dash-card-head .dch-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; }
.dash-chip { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.dash-chip.up { background: rgba(31,157,111,0.16); color: #4CD9A4; }
.dash-chip.warn { background: rgba(214,151,30,0.16); color: #F2C265; }

.dash-row-list { display: flex; flex-direction: column; gap: 12px; }
.dash-row { display: flex; align-items: center; gap: 12px; }
.dash-row .dr-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--dark-surface-2); color: var(--dark-text); }
.dash-row .dr-icon svg { width: 15px; height: 15px; }
.dash-row .dr-main { flex: 1; min-width: 0; }
.dash-row .dr-title { font-size: 13.5px; font-weight: 600; color: #fff; }
.dash-row .dr-sub { font-size: 11.5px; color: var(--dark-muted); margin-top: 2px; }
.dash-progress { height: 6px; border-radius: 999px; background: var(--dark-surface-2); overflow: hidden; margin-top: 8px; }
.dash-progress-bar { height: 100%; border-radius: 999px; background: var(--accent); }
.dash-row .dr-pct { font-family: var(--font-mono); font-size: 12px; color: var(--dark-muted); flex-shrink: 0; }

.dash-notif { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--dark-border); }
.dash-notif:last-child { border-bottom: none; padding-bottom: 0; }
.dash-notif .dn-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.dash-notif .dn-text { font-size: 12.5px; color: var(--dark-text); line-height: 1.5; }
.dash-notif .dn-time { font-size: 11px; color: var(--dark-muted); font-family: var(--font-mono); margin-top: 2px; }

/* ---- Blog / prose ---- */
.blog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.chip-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 17px; border-radius: var(--radius-full); border: 1.5px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--text-secondary); background: var(--surface); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.search-box { position: relative; }
.search-box input { padding: 10px 16px 10px 40px; border-radius: var(--radius-full); border: 1.5px solid var(--border); min-width: 220px; background: var(--surface); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }

.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-thumb { aspect-ratio: 16/9; }
.blog-card-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; font-family: var(--font-mono); }
.blog-cat-tag { color: var(--primary); font-weight: 600; }
.blog-card h3 { font-size: 1.15rem; }
.blog-card p { margin-top: 10px; font-size: 14.5px; color: var(--text-secondary); }

.blog-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
@media (max-width: 860px) { .blog-featured { grid-template-columns: 1fr; } }

.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { margin-top: 44px; margin-bottom: 16px; font-size: 1.5rem; }
.article-body h3 { margin-top: 32px; margin-bottom: 12px; font-size: 1.2rem; }
.article-body p { margin-bottom: 18px; color: var(--text-secondary); font-size: 16px; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-secondary); }
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-block { padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--border); }
.article-block:first-child { padding-top: 0; margin-top: 0; border-top: none; }
.article-header { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.article-header .blog-meta { justify-content: center; }
.article-header h1 { margin-top: 16px; }

/* ---- Category tiles ---- */
.category-tile { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.category-tile .ct-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ---- Legal pages ---- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; background: var(--surface); }
.legal-toc h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.legal-toc ul { display: flex; flex-direction: column; gap: 10px; }
.legal-toc a { font-size: 13.5px; color: var(--text-secondary); }
.legal-toc a:hover { color: var(--primary); }
.legal-content h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 14px; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.7; }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; color: var(--text-secondary); }
.legal-content li { margin-bottom: 8px; }
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin-bottom: 40px; }
table.cookie-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13.5px; }
table.cookie-table th, table.cookie-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); }
table.cookie-table th { background: var(--surface-alt); font-weight: 600; }

/* ---- 404 ---- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 0; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 8rem); color: var(--primary-soft); line-height: 1; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 13px; height: 13px; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Illustration panels ---- */
.illo-panel { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
