/* ============================================================
   SOFTWARE FACTORY — Design System
   Dark, dense, technical. Deep navy base, electric blue + AI
   purple accents, IBM Plex type, hairline structure.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Core palette (dark) ---- */
  --bg:        #05070E;   /* near-black navy */
  --bg-2:      #090D18;   /* page sections */
  --navy:      #0F172A;   /* primary surface */
  --surface:   #111A2E;   /* card */
  --surface-2: #16213A;   /* elevated card */
  --surface-3: #1C2A47;   /* hover */
  --line:      #1E293B;   /* hairline border */
  --line-2:    #273449;   /* stronger border */

  /* ---- Text ---- */
  --text:      #EAF0FA;
  --text-2:    #A7B4CC;   /* secondary */
  --text-3:    #647089;   /* muted / labels */

  /* ---- Accents ---- */
  --blue:      #3B82F6;   /* electric blue */
  --blue-hi:   #60A5FA;
  --blue-deep: #2563EB;
  --purple:    #8B5CF6;   /* AI purple */
  --purple-hi: #A78BFA;
  --success:   #22C55E;
  --warning:   #F97316;
  --cyan:      #22D3EE;

  /* ---- Glow tints ---- */
  --glow-blue:   rgba(59,130,246,0.45);
  --glow-purple: rgba(139,92,246,0.40);

  /* ---- Type ---- */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* ---- Geometry ---- */
  --r-sm: 4px;
  --r:    6px;
  --r-lg: 10px;
  --r-xl: 16px;
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);

  --shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 24px 60px -28px rgba(0,0,0,0.9);
  --shadow-lg: 0 40px 120px -40px rgba(0,0,0,0.95);
}

/* ============================================================
   LIGHT THEME  (data-theme="light" on <html>)
   ============================================================ */
[data-theme="light"] {
  --bg:        #FFFFFF;
  --bg-2:      #F5F8FC;
  --navy:      #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #E7EEF7;
  --line:      #E6ECF4;
  --line-2:    #D2DBE8;

  --text:      #0E1726;
  --text-2:    #46546B;
  --text-3:    #76849A;

  --blue:      #2563EB;
  --blue-hi:   #2563EB;
  --blue-deep: #1D4ED8;
  --purple:    #7C3AED;
  --purple-hi: #7C3AED;
  --success:   #15803D;
  --warning:   #C2410C;

  --glow-blue:   rgba(37,99,235,0.18);
  --glow-purple: rgba(124,58,237,0.15);

  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 20px 44px -26px rgba(15,23,42,.30);
  --shadow-lg: 0 30px 80px -42px rgba(15,23,42,.34);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(124,58,237,0.06), transparent 60%),
    radial-gradient(1100px 700px at 4% 0%, rgba(37,99,235,0.07), transparent 55%);
}
[data-theme="light"] body::after { opacity: 0.6; }
[data-theme="light"] .grad { background: linear-gradient(100deg, #2563EB, #7C3AED 60%, #9333EA); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .cta-banner { background: linear-gradient(140deg, #eef2ff, #f7f9fc 55%, #f6f0ff); border-color: var(--line-2); }
[data-theme="light"] .eq-term { background: var(--bg-2); }
[data-theme="light"] .btn--ghost:hover,
[data-theme="light"] .nav__links a:hover,
[data-theme="light"] .theme-btn:hover,
[data-theme="light"] .app-btn:hover { background: var(--surface-2); }
[data-theme="light"] ::selection { background: var(--blue); color: #fff; }

/* theme switch -> smooth */
body, .nav, .card, .panel, .btn, .chip, .footer, .pipe-card, .equation, .eq-term, .eq-result,
.io-card, .sd-main, .kpi, .tl-card, .tl-dot, .browser, .browser__bar, .app, .app__rail,
.svc, .form-card, input, select, textarea, .cta-banner {
  transition: background-color .26s ease, border-color .26s ease, color .2s ease, box-shadow .26s ease;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* Page atmospheric texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(1100px 700px at 5% 0%, rgba(37,99,235,0.12), transparent 55%);
  pointer-events: none; z-index: -1;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none; z-index: -1;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: var(--text); }
.display {
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 600;
}
.h2 { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -0.03em; }
.h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--text-2); line-height: 1.55; max-width: 64ch; }
p { margin: 0 0 1em; color: var(--text-2); }
.measure { max-width: 62ch; }

/* mono kicker / labels */
.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--blue); display: inline-block;
}
.kicker--purple::before { background: var(--purple); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue-hi);
}
.mono { font-family: var(--mono); }
.grad {
  background: linear-gradient(100deg, var(--blue-hi) 0%, var(--purple-hi) 60%, #d8b4fe 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

.section-head { max-width: 760px; }
.section-head .h2 { margin: 16px 0 14px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--bg-btn);
  color: var(--text); transition: .18s ease; line-height: 1; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-2); background: var(--surface-3); }
.btn--primary {
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  color: #fff; box-shadow: 0 10px 30px -10px var(--glow-blue);
}
.btn--primary:hover { background: linear-gradient(180deg, var(--blue-hi), var(--blue)); box-shadow: 0 16px 40px -12px var(--glow-blue); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,0.03); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
/* global arrow sizing — keeps inline CTA arrows small & consistent everywhere */
.arr { width: 16px; height: 16px; flex: none; }

/* form controls — canonical input/select/textarea styling, global so any page hosting a
   shared form component (contact form, newsletter signup, idea wizard) renders identically
   without having to load a page-specific stylesheet. Pages may still tune .textarea/.select. */
.input, .select, .textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--text); font-family: var(--sans); font-size: 15px; padding: 13px 15px; transition: .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.fld.err .input, .fld.err .select, .fld.err .textarea { border-color: #f87171; }

/* chip / tag */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line-2);
  color: var(--text-2); background: rgba(255,255,255,0.02);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.chip--purple .dot { background: var(--purple); }
.chip--green .dot { background: var(--success); }

/* account and agent avatar monograms */
.av {
  border-radius: 14px; display: grid; place-items: center; position: relative; flex: none;
  font-family: var(--display); font-weight: 600; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--a1, #3B82F6), var(--a2, #7C3AED));
}
.av::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.28), transparent 55%); }
.av__badge { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 7px;
  background: var(--navy); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); z-index: 1; }
.av__badge svg { width: 12px; height: 12px; }
.av--lg { width: 60px; height: 60px; font-size: 22px; border-radius: 16px; }
.av--md { width: 44px; height: 44px; font-size: 16px; }
.av--sm { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
.av--xs { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
.av--account { --a1:#3B82F6; --a2:#2563EB; }

/* domain tints */
.dom-product { --a1:#3B82F6; --a2:#2563EB; }
.dom-arch    { --a1:#8B5CF6; --a2:#6D28D9; }
.dom-quality { --a1:#22C55E; --a2:#15803D; }
.dom-secure  { --a1:#F97316; --a2:#C2410C; }
.dom-ops     { --a1:#22D3EE; --a2:#0E7490; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand__text .at { color: var(--text-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; vertical-align: 2px; margin-left: 2px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav__links a {
  font-size: 14.5px; color: var(--text-2); padding: 8px 12px; border-radius: var(--r-sm);
  transition: .15s; position: relative;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.03); }

/* ---- grouped nav (Product / Community / Company) ---- */
.nav__links > .navtop { font-size: 14.5px; color: var(--text-2); padding: 8px 12px; border-radius: var(--r-sm); transition: .15s; position: relative; }
.nav__links > .navtop:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav__links > .navtop.active { color: var(--text); }
.navgroup { position: relative; }
.navgroup__btn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--sans); font-size: 14.5px; color: var(--text-2);
  background: none; border: 0; padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer; transition: .15s; }
.navgroup__btn:hover, .navgroup.open .navgroup__btn, .navgroup.is-active .navgroup__btn { color: var(--text); }
.navgroup.open .navgroup__btn { background: rgba(255,255,255,.03); }
.navgroup__btn .chev { width: 13px; height: 13px; transition: transform .18s ease; opacity: .7; }
.navgroup.open .navgroup__btn .chev { transform: rotate(180deg); }
.navgroup.is-active .navgroup__btn::after { content: ""; position: absolute; left: 12px; right: 26px; bottom: 1px; height: 1.5px; background: var(--blue); }
/* invisible bridge over the 8px gap so hover doesn't drop while crossing to the menu */
.navgroup::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; display: none; }
.navgroup.open::after { display: block; }
.navgroup__menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 248px; background: var(--navy);
  border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60; }
.navgroup.open .navgroup__menu { display: block; animation: navpop .16s ease; }
@keyframes navpop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.navgroup__menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); }
.navgroup__menu a:hover { background: rgba(255,255,255,.04); }
.navgroup__menu a b { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text); }
.navgroup__menu a span { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.navgroup__menu a.active b { color: var(--blue-hi); }
.navgroup__menu a.active span { color: var(--blue); }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content:""; position:absolute; left:12px; right:12px; bottom:1px; height:1.5px; background: var(--blue);
}
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; background: linear-gradient(180deg, var(--surface-2), var(--navy));
  border: 1px solid var(--line-2); border-radius: 100px; padding: 5px 6px 5px 5px; cursor: pointer; transition: .15s; position: relative; }
.user-chip:hover { border-color: var(--line-2); background: var(--surface-3); }
.user-chip__cr { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; color: var(--blue-hi); }
.user-chip__cr svg { width: 13px; height: 13px; }
.user-chip__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; background: var(--navy);
  border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; display: none; }
.user-chip__menu.show { display: block; }
.user-chip__menu .uc-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-chip__menu .uc-head b { font-size: 13.5px; display: block; }
.user-chip__menu .uc-head span { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.user-chip__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-2); transition: .14s; }
.user-chip__menu a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.user-chip__menu a svg { width: 15px; height: 15px; }
.logout-form { margin: 0; display: inline-flex; }
.logout-form button { font: inherit; cursor: pointer; }
.user-chip__menu .logout-form--menu { display: block; }
.user-chip__menu .logout-form--menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-size: 14px; text-align: left; transition: .14s; }
.user-chip__menu .logout-form--menu button:hover { background: rgba(255,255,255,.04); color: var(--text); }
.user-chip__menu .logout-form--menu button svg { width: 15px; height: 15px; }
.nav-login { font-size: 14.5px; color: var(--text-2); padding: 8px 12px; border-radius: var(--r-sm); transition: .15s; }
.nav-login:hover { color: var(--text); }
.theme-btn { display: grid; place-items: center; width: 40px; height: 38px; flex: none; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: transparent; color: var(--text-2); transition: .15s; }
.theme-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ic-moon { display: none; }
[data-theme="light"] .theme-btn .ic-sun { display: none; }
[data-theme="light"] .theme-btn .ic-moon { display: block; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r-sm); width: 40px; height: 38px; color: var(--text); }
.nav__toggle svg { width: 18px; height: 18px; margin: auto; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 66px; left: 0; right: 0; gap: 2px;
    background: var(--navy); border-bottom: 1px solid var(--line); padding: 12px var(--pad) 18px;
  }
  .nav__links.open a { padding: 12px; }
  .nav__right .btn span.lbl { display: none; }
  /* auth controls move into the mobile menu when nav is collapsed */
  .nav__right [data-auth] { display: none; }
  .nav__links.open .auth-mob { display: flex; }
  /* grouped nav → accordion in mobile menu */
  .nav__links.open .navgroup { width: 100%; }
  .nav__links.open .navgroup__btn { width: 100%; justify-content: space-between; padding: 12px; font-size: 15px; }
  .nav__links.open .navgroup__menu { position: static; display: none; box-shadow: none; border: 0; background: transparent;
    padding: 0 0 6px 14px; min-width: 0; animation: none; }
  .nav__links.open .navgroup.open .navgroup__menu { display: block; }
  .nav__links.open .navgroup__menu a { padding: 9px 12px; }
  .nav__links.open .navgroup__menu a span { display: none; }
  .nav__links.open > .navtop { padding: 12px; }
  .nav__links.open .navgroup.is-active .navgroup__btn::after { display: none; }
}
/* auth links shown only inside the open mobile menu */
.nav__links .auth-mob { display: none; align-items: center; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav__links .auth-mob a { flex: 1; text-align: center; }
.nav__links .auth-mob .btn { padding: 11px 14px; }
@media (max-width: 600px) { .user-chip__cr .lbl, .nav-login { display: none; } }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: linear-gradient(180deg, var(--surface), var(--navy));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; position: relative; transition: .2s ease; overflow: hidden;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center;
  background: rgba(59,130,246,0.10); border: 1px solid rgba(59,130,246,0.22); color: var(--blue-hi);
  margin-bottom: 18px;
}
.card__icon svg { width: 21px; height: 21px; }
.card--purple .card__icon { background: rgba(139,92,246,0.10); border-color: rgba(139,92,246,0.24); color: var(--purple-hi); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin: 0; color: var(--text-2); line-height: 1.55; }
.card__index {
  position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 12px; color: var(--text-3);
}
/* corner accent line on feature cards */
.card--accent::before {
  content:""; position:absolute; top:0; left:0; width:100%; height:2px;
  background: linear-gradient(90deg, var(--blue), var(--purple)); opacity:0; transition:.25s;
}
.card--accent:hover::before { opacity: 1; }

.grid { display: grid; gap: 18px; }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   STATS / METRICS
   ============================================================ */
.stat { }
.stat__num { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat__num .unit { color: var(--blue-hi); }
.stat__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); margin-top: 8px; text-transform: uppercase; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 64px 36px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__grid--full { grid-template-columns: 1.4fr repeat(4, 1fr); }
.footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--text-2); transition: .15s; }
.footer ul a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--text-3); }
/* social buttons (GitHub / Discord) — used on Contact + Community CTA */
.footer__social { display: inline-flex; gap: 8px; }
.social-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); color: var(--text-3);
  border: 1px solid var(--line); transition: .15s; }
.social-ico:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.03); }
.social-ico.discord:hover { color: #fff; border-color: #5865F2; background: rgba(88,101,242,.16); }
.social-ico svg { width: 15px; height: 15px; }
.social-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: rgba(255,255,255,.02); border: 1px solid var(--line-2); border-radius: 100px; padding: 9px 16px; transition: .16s; }
.social-btn:hover { color: var(--text); transform: translateY(-1px); border-color: var(--line-2); }
.social-btn svg { width: 17px; height: 17px; }
.social-btn.discord:hover { border-color: #5865F2; color: #fff; background: rgba(88,101,242,.16); }
.social-btn.github:hover { border-color: var(--text-2); }
@media (max-width: 1080px) { .footer__grid--full { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .footer__grid, .footer__grid--full { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .18s; }
.reveal[data-d="4"] { transition-delay: .24s; }
.reveal[data-d="5"] { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* utility */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; } .gap-lg { gap: 24px; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:40px}
.hide-mobile { } @media (max-width:680px){ .hide-mobile{ display:none; } }

/* ============================================================
   MOBILE HARDENING
   ============================================================ */
.nav-cta { display: none; }
@media (max-width: 940px) {
  .nav__links.open .nav-cta { display: flex; justify-content: center; margin-top: 10px;
    background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff !important;
    border-radius: var(--r); padding: 13px; font-weight: 600; }
}
@media (max-width: 600px) {
  .nav__inner { gap: 12px; height: 60px; }
  .nav__right { gap: 8px; }
  .nav__right > .btn--primary { display: none; }      /* CTA moves into the menu */
  .brand__text { font-size: 15px; }
  .brand__mark { width: 27px; height: 27px; }
  h1.display { font-size: clamp(29px, 8.6vw, 44px); line-height: 1.05; }
  .lead { font-size: 16px; }
  .section { padding-block: clamp(48px, 12vw, 90px); }
  .btn--lg { padding: 14px 22px; font-size: 15px; }
  .row .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 420px) {
  :root { --pad: 16px; }
}

/* ---- Blazor-specific ---- */
/* Suppress the focus ring on elements made programmatically focusable by
   Blazor's FocusOnNavigate (tabindex="-1"); these are not keyboard-tabbable. */
[tabindex="-1"]:focus { outline: none; }
