/* ═══════════════════════════════════════════════
   CompNucleus — Shared Stylesheet
   Dark navy fintech design system
   ═══════════════════════════════════════════════ */

/* ── Self-hosted Inter (variable font) ─────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Variables ─────────────────────────────────── */
:root {
  --bg-primary:   #0A1628;
  --bg-dark:      #060E1A;
  --bg-card:      #0F1E35;
  --bg-card-h:    #142340;
  --accent:       #1E90FF;
  --accent-h:     #3DA5FF;
  --teal:         #00C6A7;
  --red:          #EF4444;
  --amber:        #F59E0B;
  --green:        #22C55E;
  --text:         #F0F4F8;
  --muted:        #8A9BB0;
  --border:       rgba(255,255,255,0.07);
  --border-a:     rgba(30,144,255,0.3);
  --radius:       12px;
  --radius-sm:    8px;
  --nav-h:        64px;
  --max-w:        1160px;
  --shadow:       0 4px 24px rgba(0,0,0,0.45);
  --shadow-card:  0 2px 20px rgba(0,0,0,0.35);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ────────────────────────────────── */
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 0.95rem; font-weight: 600; }
p { color: var(--muted); }

/* ── Utility ───────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-dark); }
.text-accent { color: var(--accent); }
.text-teal  { color: var(--teal); }
.text-center { text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(30,144,255,0.1); border: 1px solid var(--border-a);
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px;
}
.badge-teal {
  background: rgba(0,198,167,0.1); border-color: rgba(0,198,167,0.3);
  color: var(--teal);
}

.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; transition: all 0.2s ease;
  white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h); border-color: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(30,144,255,0.38);
}
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-teal {
  background: var(--teal); color: #060E1A; border-color: var(--teal);
}
.btn-teal:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-ghost { padding: 0; border: none; background: none; color: var(--accent); font-weight: 600; font-size: 0.875rem; }
.btn-ghost:hover { color: var(--accent-h); }
.btn-ghost::after { content: ' →'; }
.btn-glass {
  background: rgba(255,255,255,0.08); color: var(--text);
  border-color: rgba(255,255,255,0.18);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.32);
  transform: translateY(-1px);
}

/* ── Navigation ────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,22,40,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 6px 40px rgba(0,0,0,0.55); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  flex-shrink: 0;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900; color: #fff;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--muted); font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.hamburger {
  display: none; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px; color: var(--text);
  width: 40px; height: 40px;
}
.hamburger .icon-close { display: none; }
.hamburger.open .icon-open { display: none; }
.hamburger.open .icon-close { display: block; }

.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg-dark); border-top: 1px solid var(--border);
  padding: 24px 1.5rem; z-index: 998; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.mobile-menu a {
  display: block; padding: 12px 0;
  color: var(--muted); font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); }
.mobile-menu .btn { width: 100%; margin-top: 4px; }

/* ── Hero (home) ───────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 64px;
  background: var(--bg-primary);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30,144,255,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -180px; right: -180px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(30,144,255,0.12) 0%, transparent 68%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,198,167,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; position: relative; z-index: 1;
  width: 100%;
}
.hero-text h1 { margin-bottom: 20px; }
.hero-text h1 em { font-style: normal; color: var(--accent); }
.hero-text > p { font-size: 1.1rem; margin-bottom: 32px; max-width: 480px; line-height: 1.75; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 32px; }
.stat-item { }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* ── Dashboard Mockup ──────────────────────────── */
.hero-visual { position: relative; }
.mockup-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-a);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(30,144,255,0.12);
}
.mockup-chrome {
  background: rgba(0,0,0,0.4); padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; }
.chrome-dot.r { background: #FF5F57; }
.chrome-dot.y { background: #FFBD2E; }
.chrome-dot.g { background: #28CA41; }
.chrome-url {
  flex: 1; margin: 0 10px;
  background: rgba(255,255,255,0.05); border-radius: 4px;
  padding: 4px 10px; font-size: 0.7rem; font-family: monospace;
  color: var(--muted); border: 1px solid var(--border);
}
.mockup-layout { display: flex; height: 340px; }
.mockup-sidebar {
  width: 160px; background: rgba(0,0,0,0.3);
  border-right: 1px solid var(--border);
  padding: 14px 10px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mock-logo { font-size: 0.7rem; font-weight: 800; color: var(--text); padding: 0 8px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.mock-logo-icon { width: 18px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--teal)); display: flex; align-items: center; justify-content: center; font-size: 0.45rem; font-weight: 900; color: #fff; }
.mock-nav-item {
  padding: 7px 8px; border-radius: 6px;
  font-size: 0.65rem; color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.mock-nav-item.active { background: rgba(30,144,255,0.12); color: var(--accent); }
.mock-nav-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.mockup-main { flex: 1; padding: 14px; overflow: hidden; }
.mock-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock-topbar-title { font-size: 0.65rem; font-weight: 700; color: var(--text); }
.mock-refresh { font-size: 0.55rem; color: var(--accent); background: rgba(30,144,255,0.1); border: 1px solid var(--border-a); border-radius: 4px; padding: 3px 7px; }
.mock-tsm {
  background: rgba(30,144,255,0.06); border: 1px solid var(--border-a);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.mock-tsm-label { font-size: 0.6rem; color: var(--muted); }
.mock-tsm-name { font-size: 0.7rem; font-weight: 700; color: var(--text); }
.mock-pill {
  font-size: 0.58rem; font-weight: 700; padding: 2px 7px; border-radius: 100px;
  display: flex; align-items: center; gap: 4px;
}
.mock-pill.green { background: rgba(34,197,94,0.15); color: var(--green); }
.mock-pill.amber { background: rgba(245,158,11,0.15); color: var(--amber); }
.mock-pill.red   { background: rgba(239,68,68,0.15); color: var(--red); }
.mock-pill.grey  { background: rgba(138,155,176,0.12); color: var(--muted); }
.mock-pulse { width: 5px; height: 5px; border-radius: 50%; }
.mock-pulse.run { background: var(--green); animation: blink 1.4s infinite; }
.mock-pulse.warn { background: var(--amber); }
.mock-pulse.down { background: var(--red); }
.mock-pulse.grey { background: var(--muted); }

.agent-list { display: flex; flex-direction: column; gap: 5px; }
.mock-agent {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.25);
}
.mock-agent-name { font-size: 0.62rem; font-family: monospace; color: var(--text); }

.mock-cob { margin-top: 10px; background: rgba(0,0,0,0.2); border-radius: 6px; padding: 8px 10px; }
.mock-cob-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.mock-cob-label { font-size: 0.6rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.mock-cob-pct { font-size: 0.6rem; color: var(--accent); font-weight: 700; }
.mock-track { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.mock-fill { height: 100%; width: 40%; background: linear-gradient(90deg, var(--accent), var(--teal)); }
.mock-stages { display: flex; justify-content: space-between; }
.mock-stage { text-align: center; }
.mock-stage-dot {
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 0.5rem; font-weight: 800; line-height: 16px; text-align: center;
  margin: 0 auto 2px;
}
.mock-stage-dot.done { background: rgba(34,197,94,0.2); color: var(--green); }
.mock-stage-dot.act  { background: rgba(30,144,255,0.2); color: var(--accent); }
.mock-stage-dot.wait { background: rgba(255,255,255,0.05); color: var(--muted); }
.mock-stage-name { font-size: 0.48rem; color: var(--muted); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ── Problem Strip ─────────────────────────────── */
.problems { background: var(--bg-dark); padding: 56px 0; }
.problems-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.problem-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  border-top: 3px solid rgba(239,68,68,0.4);
  transition: border-color 0.25s;
}
.problem-card:hover { border-top-color: var(--red); }
.problem-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--red);
}
.problem-card h3 { margin-bottom: 8px; font-size: 1rem; }
.problem-card p { font-size: 0.875rem; line-height: 1.6; }

/* ── Feature Grid ──────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover { border-color: var(--border-a); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(30,144,255,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; line-height: 1.6; }

/* ── Steps ─────────────────────────────────────── */
.steps { display: flex; gap: 24px; counter-reset: steps; }
.step { flex: 1; position: relative; }
.step:not(:last-child)::after {
  content: ''; position: absolute;
  top: 23px; left: calc(100% - 4px);
  width: calc(24px + 8px); height: 2px;
  background: linear-gradient(90deg, var(--border-a), transparent);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(30,144,255,0.08); border: 2px solid var(--border-a);
  color: var(--accent); font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.875rem; }

/* ── Service Cards (home teaser) ───────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.25s;
}
.service-card:hover { border-color: var(--border-a); transform: translateY(-3px); }
.service-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(0,198,167,0.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 1rem; margin: 0; }
.service-card p { font-size: 0.875rem; margin: 0; flex: 1; }
.service-bullets { display: flex; flex-direction: column; gap: 6px; }
.service-bullets li { font-size: 0.825rem; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.service-bullets li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Credentials Strip ─────────────────────────── */
.creds-strip {
  margin-top: 36px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 32px;
  display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: center; align-items: center;
}
.cred-item { display: flex; align-items: center; gap: 8px; }
.cred-item svg { color: var(--teal); flex-shrink: 0; }
.cred-item span { font-size: 0.85rem; color: var(--muted); }
.cred-sep { color: var(--border); }

/* ── Pillars ───────────────────────────────────── */
.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pillar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  transition: border-color 0.25s;
}
.pillar-card:hover { border-color: rgba(0,198,167,0.3); }
.pillar-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,198,167,0.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.pillar-card h3 { margin-bottom: 10px; }
.pillar-card p { font-size: 0.9rem; }

/* ── Services Full Page ────────────────────────── */
.service-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; }
.service-row.flip { }
.service-row.flip .service-row-content { order: 2; }
.service-row.flip .service-row-visual { order: 1; }
.service-row-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: rgba(30,144,255,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-row h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-row > .service-row-content > p { font-size: 1rem; line-height: 1.75; margin-bottom: 20px; }
.service-row ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.service-row ul li { font-size: 0.9rem; color: var(--muted); display: flex; align-items: flex-start; gap: 10px; }
.service-row ul li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.service-row-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; min-height: 240px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.service-row-visual .tag { margin-bottom: 4px; }
.service-visual-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.service-stat { display: flex; align-items: baseline; gap: 8px; }
.service-stat-num { font-size: 2.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.service-stat-label { font-size: 0.85rem; color: var(--muted); }
.service-tech-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip {
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px;
  border-radius: 100px; background: rgba(30,144,255,0.08);
  border: 1px solid var(--border-a); color: var(--accent);
}
.tech-chip.teal { background: rgba(0,198,167,0.08); border-color: rgba(0,198,167,0.25); color: var(--teal); }

/* ── Architecture (product.html) ──────────────── */
.arch-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin: 36px 0;
}
.arch-title { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 32px; text-align: center; }
.arch-flow { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.arch-node {
  text-align: center; padding: 16px 20px; min-width: 110px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.arch-node .node-type { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.arch-node .node-name { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.arch-node .node-sub { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }
.arch-node.highlighted { border-color: var(--border-a); background: rgba(30,144,255,0.06); }
.arch-arrow { color: var(--accent); padding: 0 14px; font-size: 1.1rem; flex-shrink: 0; }
.arch-arrow-label { font-size: 0.6rem; color: var(--muted); text-align: center; }

/* ── About Page ────────────────────────────────── */
.cert-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(0,198,167,0.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.about-mission {
  max-width: 740px; margin: 0 auto;
  font-size: 1.2rem; color: var(--text); line-height: 1.75;
  text-align: center; font-weight: 400;
}
.about-mission strong { color: var(--accent); font-weight: 700; }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.why-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  border-left: 3px solid var(--border-a); transition: border-left-color 0.25s;
}
.why-card:hover { border-left-color: var(--accent); }
.why-card h3 { color: var(--accent); margin-bottom: 10px; font-size: 1rem; }
.why-card p { font-size: 0.875rem; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.value-card {
  text-align: center; padding: 28px 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.25s;
}
.value-card:hover { border-color: rgba(0,198,167,0.3); }
.value-num { font-size: 2rem; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.value-card h3 { color: var(--text); margin-bottom: 10px; }
.value-card p { font-size: 0.875rem; }

/* ── Contact Page ──────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form h3 { margin-bottom: 4px; }
.contact-form > p { margin-bottom: 12px; font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.825rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  color: var(--text); font-size: 0.9rem; font-family: inherit;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238A9BB0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-group textarea { resize: vertical; min-height: 120px; }
.checkbox-wrap { display: flex; flex-direction: column; gap: 6px; }
.checkbox-wrap label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.checkbox-wrap input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; flex-shrink: 0; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.contact-info-card h4 { margin-bottom: 16px; color: var(--text); }
.info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.info-item:last-child { margin-bottom: 0; }
.info-icon { color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.info-text { font-size: 0.875rem; color: var(--muted); }
.info-text a { color: var(--accent); transition: color 0.2s; }
.info-text a:hover { color: var(--accent-h); }
.response-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,198,167,0.08); border: 1px solid rgba(0,198,167,0.2);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.response-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: blink 2s infinite; }
.response-badge span { font-size: 0.825rem; color: var(--teal); font-weight: 600; }

/* ── Page Hero (inner pages) ───────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 52px;
  background: var(--bg-primary); text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30,144,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 580px; margin: 0 auto; line-height: 1.75; }

/* ── CTA Banner ────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(30,144,255,0.12) 0%, rgba(0,198,167,0.08) 100%);
  border-top: 1px solid var(--border-a); border-bottom: 1px solid var(--border-a);
  padding: 64px 0; text-align: center;
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { margin-bottom: 36px; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────── */
.footer { background: var(--bg-dark); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-top { display: flex; gap: 48px; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; max-width: 260px; line-height: 1.65; }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all 0.2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; max-width: 640px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .problems-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 40px; }
  .service-row.flip .service-row-content { order: 1; }
  .service-row.flip .service-row-visual { order: 2; }
  .contact-layout { grid-template-columns: 1fr; }
  .arch-flow { gap: 8px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right .btn-outline { display: none; }
  .hamburger { display: flex; }
  .section { padding: 48px 0; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 36px); padding-bottom: 48px; }
  .features-grid, .services-grid, .problems-grid,
  .pillars-grid, .why-grid, .values-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .creds-strip { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cred-sep { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
}

/* ── Page Skeleton Loader ──────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 9990;
  background: var(--bg-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 36px;
  transition: opacity 0.45s ease;
}
#page-loader.fade-out {
  opacity: 0; pointer-events: none;
}
.loader-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; color: var(--text);
}
.loader-brand-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900; color: #fff;
  letter-spacing: -0.01em;
}
.loader-skeleton {
  width: min(440px, 88vw);
  display: flex; flex-direction: column; gap: 10px;
}
.skel {
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s infinite;
}
.skel-h   { height: 14px; }
.skel-sm  { height: 10px; }
.skel-btn { height: 38px; border-radius: var(--radius-sm); }
.w-full { width: 100%; }
.w-3\/4 { width: 75%; }
.w-1\/2 { width: 50%; }
.w-36   { width: 140px; }
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Interest Checkbox Grid ──────────────────────── */
.interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.interest-cb { display: none; }
.interest-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.interest-label::after {
  content: '';
  width: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.18);
  margin-left: auto;
  transition: background 0.15s, border-color 0.15s;
}
.interest-label:hover {
  background: rgba(30,144,255,0.07);
  border-color: rgba(30,144,255,0.28);
  color: var(--text);
}
.interest-label:hover::after { border-color: rgba(30,144,255,0.5); }
.interest-cb:checked + .interest-label {
  background: rgba(30,144,255,0.1);
  border-color: rgba(30,144,255,0.5);
  color: var(--text);
}
.interest-cb:checked + .interest-label::after {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,6 5,9 10,3'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.interest-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.interest-label:hover .interest-icon {
  background: rgba(30,144,255,0.12);
  color: var(--accent);
}
.interest-cb:checked + .interest-label .interest-icon {
  background: rgba(30,144,255,0.18);
  color: var(--accent);
}
@media (max-width: 560px) {
  .interest-grid { grid-template-columns: 1fr; }
}

/* ── Form feedback states ────────────────────── */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
  color: var(--teal);
}
.form-success h3 { font-size: 1.2rem; color: var(--text); margin: 0; }
.form-success p  { color: var(--muted); font-size: 0.9rem; margin: 0; }
.form-error {
  font-size: 0.85rem;
  color: var(--red);
  margin-top: 10px;
}
.form-error a { color: var(--red); text-decoration: underline; }
