/* ============================================================
   Aletyix – Professional Design System
   Truth in every byte.
============================================================ */

/* ── Design tokens ── */
:root {
  /* Backgrounds */
  --bg:          #06091a;
  --bg-2:        #0b1024;
  --bg-3:        #101829;
  --surface:     #141f33;
  --surface-2:   #1a2740;

  /* Brand */
  --blue:        #4f7cff;
  --blue-dark:   #3561f0;
  --violet:      #7c5af8;
  --cyan:        #22d3ee;
  --gradient:    linear-gradient(135deg, #4f7cff 0%, #7c5af8 100%);
  --gradient-r:  linear-gradient(135deg, #7c5af8 0%, #4f7cff 100%);

  /* Semantic */
  --green:  #10b981;
  --red:    #f43f5e;
  --yellow: #f59e0b;

  /* Typography */
  --text:       #e4eaf8;
  --text-2:     #8b9abf;
  --text-3:     #4f607c;

  /* Borders */
  --border:      rgba(148,163,200,0.09);
  --border-2:    rgba(148,163,200,0.18);

  /* Shadows */
  --shadow-s:  0 2px 8px rgba(0,0,0,0.35);
  --shadow-m:  0 6px 24px rgba(0,0,0,0.45);
  --shadow-l:  0 16px 56px rgba(0,0,0,0.55);
  --glow:      0 0 48px rgba(79,124,255,0.22);

  /* Radius */
  --r-xs: 4px;
  --r-s:  8px;
  --r:    12px;
  --r-l:  18px;
  --r-xl: 24px;
  --r-f:  9999px;

  /* Layout */
  --max:    1400px;
  --nav-h:  68px;

  /* Transition */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t:      180ms var(--ease);
  --t-s:    280ms var(--ease);

  /* Fonts */
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ── Light mode tokens ── */
[data-theme="light"] {
  --bg:        #f6f8fd;
  --bg-2:      #eceff8;
  --bg-3:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f0f3fa;

  --text:   #0c1424;
  --text-2: #445070;
  --text-3: #8696b8;

  --border:   rgba(12,20,36,0.08);
  --border-2: rgba(12,20,36,0.14);

  --shadow-s: 0 2px 8px rgba(12,20,36,0.05);
  --shadow-m: 0 8px 28px rgba(12,20,36,0.09);
  --shadow-l: 0 20px 60px rgba(12,20,36,0.12);
  --glow:     0 0 40px rgba(79,124,255,0.07);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; transition: var(--t); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-2); }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
}
@media (min-width: 1600px) { :root { --max: 1520px; } }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.section        { padding: 96px 0; position: relative; }
.section-alt    { background: var(--bg-2); }
.section-dark   { background: var(--bg-2); }
.section-light  { background: var(--bg); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-title  { margin-bottom: 14px; }
.section-subtitle { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-s);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--t-s);
  white-space: nowrap;
  line-height: 1;
}
.btn i { font-size: 0.85em; transition: transform var(--t); }
.btn:hover i { transform: translateX(3px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 18px rgba(79,124,255,0.35);
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,124,255,0.5);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--border-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--border-2); color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-outline-light {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }

.btn-sm    { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg    { padding: 14px 32px; font-size: 0.98rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── Theme toggle ── */
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--t-s);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--blue);
  border-color: rgba(79,124,255,0.4);
  background: rgba(79,124,255,0.07);
}

/* ── Alerts ── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-s);
  border-left: 3px solid;
  margin: 12px 0;
  font-size: 0.93rem;
}
.alert-success { background: rgba(16,185,129,0.1); color: #34d399; border-color: var(--green); }
.alert-error   { background: rgba(244,63,94,0.1);  color: #fb7185; border-color: var(--red); }
.alert-close {
  background: none; border: none; color: inherit;
  font-size: 1.3rem; margin-left: auto; cursor: pointer; opacity: 0.6; padding: 0 4px;
}
.alert-close:hover { opacity: 1; }

/* ── Pulse dot ── */
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34,211,238,0.5);
  animation: pulse 2.2s ease infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,211,238,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 900;
  background: rgba(6, 9, 26, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-s), background var(--t-s);
}
.site-header.scrolled {
  background: rgba(6, 9, 26, 0.92);
  border-bottom-color: var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.navbar-brand:hover { color: var(--text); }

.brand-mark {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 3px 12px rgba(79,124,255,0.45);
  flex-shrink: 0;
}
.brand-name { font-weight: 700; }
.navbar-brand img { max-height: 36px; width: auto; }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.navbar-menu > li > a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--r-s);
  color: var(--text-2);
  font-size: 0.91rem;
  font-weight: 500;
  transition: var(--t);
}
.navbar-menu > li > a:hover,
.navbar-menu > li > a.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
.navbar-cta { margin-left: 16px; }

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-s);
  padding: 7px;
  cursor: pointer;
}
.navbar-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.navbar-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0.1); }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .navbar-toggle { display: flex; }
  .navbar-menu {
    position: absolute;
    top: calc(var(--nav-h));
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 16, 36, 0.98);
    backdrop-filter: blur(16px);
    padding: 12px 16px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t), visibility var(--t), transform var(--t);
  }
  .navbar-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .navbar-menu > li { width: 100%; }
  .navbar-menu > li > a { display: flex; align-items: center; padding: 13px 16px; font-size: 0.97rem; min-height: 44px; }
  .navbar-cta { margin-left: 0; margin-top: 4px; }
  .navbar-cta .btn { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════
   HERO (HOME)
════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 72px) 0 88px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(79,124,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 75%, rgba(124,90,248,0.10) 0%, transparent 60%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 80%);
}

/* Slider */
.hero-slider { position: relative; }
.hero-slide { display: none; animation: hSlideIn 0.6s var(--ease) both; }
.hero-slide.active { display: block; }
@keyframes hSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) { .hero-layout { gap: 40px; } }
@media (max-width: 860px)  {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* Text side */
.hero-text { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,124,255,0.1);
  border: 1px solid rgba(79,124,255,0.28);
  color: var(--blue);
  padding: 5px 14px;
  border-radius: var(--r-f);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-heading {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--text);
}
.hero-heading .text-gradient {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-avatars {
  display: flex;
}
.trust-avatars span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-left: -8px;
}
.trust-avatars span:first-child { margin-left: 0; }
.trust-text { font-size: 0.82rem; color: var(--text-2); }
.trust-text strong { color: var(--text); }

/* Visual side – dashboard mockup */
.hero-visual {
  position: relative;
  z-index: 2;
}

.dash-card {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-l), var(--glow);
  overflow: hidden;
}
.dash-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dash-dots span:nth-child(1) { background: #ff5f56; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }
.dash-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  flex: 1;
  text-align: center;
}
.dash-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(16,185,129,0.12);
  padding: 3px 8px;
  border-radius: var(--r-f);
}
.dash-live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.dash-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) {
  .dash-body { padding: 16px; gap: 12px; }
  .dm-val { font-size: 0.97rem; }
}

.dash-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeUp 0.5s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dm-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dm-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-s);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.dm-icon.blue   { background: rgba(79,124,255,0.15); color: var(--blue); }
.dm-icon.purple { background: rgba(124,90,248,0.15); color: var(--violet); }
.dm-icon.green  { background: rgba(16,185,129,0.15); color: var(--green); }
.dm-info { flex: 1; display: flex; align-items: baseline; justify-content: space-between; }
.dm-val  { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.dm-lbl  { font-size: 0.77rem; color: var(--text-2); }
.dm-pct  { font-size: 0.75rem; font-weight: 600; color: var(--text-3); }

.dm-bar { height: 4px; background: var(--surface-2); border-radius: var(--r-f); overflow: hidden; }
.dm-fill {
  height: 100%;
  width: var(--w, 0%);
  border-radius: var(--r-f);
  background: var(--gradient);
  animation: growBar 1s var(--ease) 0.4s both;
}
.dm-fill.green { background: linear-gradient(90deg, #10b981, #34d399); }
@keyframes growBar {
  from { width: 0 !important; }
  to   { width: var(--w); }
}

.dash-divider { height: 1px; background: var(--border); margin: 4px 0; }

.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
}
.dash-status-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.dash-commit { font-size: 0.72rem; color: var(--text-3); }

/* Floating badge accent */
.hero-badge-accent {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-m);
  animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hba-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-s);
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.hba-title { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.hba-sub   { font-size: 0.72rem; color: var(--green); font-weight: 500; }

/* Slider dots */
.slider-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-f);
  background: var(--border-2);
  border: none;
  cursor: pointer;
  transition: var(--t-s);
}
.slider-dot.active { background: var(--blue); width: 24px; }

@media (max-width: 860px) {
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .hero-badge-accent { display: none; }
  .hero-heading { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-desc { max-width: 100%; }
}

/* ════════════════════════════════════════
   STATS BAR
════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-3);
  transition: var(--t-s);
}
.stat-item:hover { border-color: var(--border-2); background: var(--surface); }
.stat-item i {
  width: 44px; height: 44px;
  border-radius: var(--r-s);
  background: rgba(79,124,255,0.1);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-value {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 3px;
}
.stat-label { font-size: 0.82rem; color: var(--text-2); }

/* About page stats variant */
.stat-item-large {
  text-align: center;
  padding: 24px;
}
.stat-item-large i {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}
.stat-value-large {
  font-family: var(--f-display);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label-large { font-size: 0.9rem; color: var(--text-2); }
.stats-grid-dark { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }

/* ════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,124,255,0.14) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-hero-content h1  { margin-bottom: 14px; }
.page-hero-content > p { color: var(--text-2); font-size: 1.1rem; max-width: 580px; margin: 0 auto; line-height: 1.7; }

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  margin-bottom: 20px;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text-2); }

/* ════════════════════════════════════════
   SERVICE & PRODUCT CARDS
════════════════════════════════════════ */
.services-grid, .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.services-grid-large, .products-grid-large {
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.service-card, .product-card {
  display: block;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
  transition: var(--t-s);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.service-card::after, .product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--t-s);
  pointer-events: none;
}
.service-card:hover, .product-card:hover {
  border-color: rgba(79,124,255,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-m), 0 0 0 1px rgba(79,124,255,0.12);
  color: var(--text);
}
.service-card:hover::after, .product-card:hover::after { opacity: 0.04; }
.service-card:active, .product-card:active { transform: translateY(-2px); }

.service-icon, .product-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-s);
  background: rgba(79,124,255,0.12);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  transition: var(--t-s);
}
.service-card:hover .service-icon,
.product-card:hover .product-icon-wrap {
  background: rgba(79,124,255,0.2);
  box-shadow: 0 0 24px rgba(79,124,255,0.2);
}

.service-tag, .product-category {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(124,90,248,0.1);
  padding: 3px 10px;
  border-radius: var(--r-f);
  margin-bottom: 10px;
}
.service-card h3, .product-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text); }
.service-card p,  .product-card p  { color: var(--text-2); font-size: 0.9rem; line-height: 1.65; margin-bottom: 16px; }

.feature-pills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 18px; }
.feature-pills li {
  font-size: 0.74rem;
  color: var(--text-2);
  background: var(--surface);
  padding: 3px 10px;
  border-radius: var(--r-f);
  border: 1px solid var(--border);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.87rem;
  transition: var(--t);
}
.card-link i { transition: transform var(--t); }
.service-card:hover .card-link i,
.product-card:hover .card-link i { transform: translateX(4px); }

/* Product card inner layout */
.product-body { display: flex; flex-direction: column; height: 100%; }

.section-cta { text-align: center; margin-top: 48px; }

/* ════════════════════════════════════════
   ABOUT PREVIEW (home page)
════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.section-lead { color: var(--text-2); font-size: 1.02rem; line-height: 1.78; margin: 14px 0 28px; }

.feature-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item i {
  width: 26px; height: 26px;
  background: rgba(16,185,129,0.12);
  color: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.feature-item strong { display: block; font-size: 0.95rem; margin-bottom: 2px; color: var(--text); }
.feature-item p { font-size: 0.88rem; color: var(--text-2); margin: 0; }

.about-visual { display: flex; justify-content: center; align-items: center; }
.about-shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 380px;
  width: 100%;
}
.grid-item {
  aspect-ratio: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--blue);
  transition: var(--t-s);
}
.grid-item:hover { border-color: var(--border-2); transform: scale(1.04); }
.grid-item.gi-2 { background: var(--gradient); color: #fff; border-color: transparent; }
.grid-item.gi-5 { background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; border-color: transparent; }

/* ════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════ */
.testimonials-section { background: var(--bg-2); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--t-s);
  position: relative;
}
.testimonial-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; right: 24px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(79,124,255,0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-stars { color: #f59e0b; font-size: 0.82rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
  font-style: italic;
  flex: 1;
  border: none;
  padding: 0;
  margin: 0 0 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.author-role { font-size: 0.8rem; color: var(--text-2); }

/* ════════════════════════════════════════
   TEAM
════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px 24px;
  text-align: center;
  transition: var(--t-s);
}
.team-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow-m); }

.team-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--gradient);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.8rem;
}

.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-role { color: var(--blue); font-size: 0.85rem; font-weight: 500; margin-bottom: 10px; }
.team-bio  { color: var(--text-2); font-size: 0.85rem; line-height: 1.6; margin-bottom: 16px; }

.team-social { display: flex; justify-content: center; gap: 8px; }
.team-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  transition: var(--t);
}
.team-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ════════════════════════════════════════
   PROCESS / HOW WE WORK
════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
}
.process-step {
  background: var(--bg-3);
  padding: 32px;
  transition: var(--t-s);
}
.process-step:hover { background: var(--surface); }
.step-number {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p  { color: var(--text-2); font-size: 0.88rem; line-height: 1.65; }

/* ════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════ */
.cta-section { padding: 80px 0; }
.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 56px 64px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(79,124,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(124,90,248,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { margin-bottom: 10px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-content p  { color: var(--text-2); font-size: 1rem; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .cta-card { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .cta-actions { justify-content: center; }
}

/* ════════════════════════════════════════
   ABOUT PAGE – content layout
════════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }

.content-main {
  color: var(--text);
  line-height: 1.8;
}
.content-main h2, .content-main h3 { margin: 36px 0 14px; }
.content-main p  { color: var(--text-2); margin-bottom: 16px; }
.content-main ul, .content-main ol { margin: 12px 0 16px 22px; color: var(--text-2); }
.content-main li { margin-bottom: 8px; }
.content-main strong { color: var(--text); }

.content-side { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 24px;
  transition: var(--t-s);
}
.info-card:hover { border-color: var(--border-2); }
.info-card h4 { font-size: 0.95rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-card h4 i { color: var(--blue); }
.info-card p { color: var(--text-2); font-size: 0.88rem; line-height: 1.65; margin: 0; }

.cta-info-card { background: var(--surface); }
.cta-info-card h4 { color: var(--text); font-size: 1rem; margin-bottom: 8px; }
.cta-info-card p  { margin-bottom: 16px; }

.value-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.value-list li {
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 6px 10px;
  background: var(--surface);
  border-radius: var(--r-s);
  display: flex; align-items: center; gap: 8px;
}
.value-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gradient);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   SERVICE/PRODUCT DETAIL PAGES
════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.feature-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--t);
}
.feature-tile:hover { border-color: var(--border-2); }
.feature-tile i { color: var(--green); font-size: 0.9rem; flex-shrink: 0; }

/* ════════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { margin-bottom: 12px; font-size: 1.6rem; }
.contact-info > p { margin-bottom: 28px; }

.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: var(--t-s);
}
.contact-info-card:hover { border-color: var(--border-2); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-s);
  background: rgba(79,124,255,0.1);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.82rem; color: var(--text-2); font-weight: 500; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info-card a { color: var(--text); font-weight: 500; font-size: 0.92rem; }
.contact-info-card a:hover { color: var(--blue); }
.contact-info-card p { color: var(--text-2); font-size: 0.9rem; margin: 0; }

.contact-form-wrap {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
}
.contact-form h3 { font-size: 1.2rem; margin-bottom: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group label span { color: var(--red); margin-left: 2px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--r-s);
  font-family: var(--f-body);
  font-size: 0.92rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,124,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.78rem; color: var(--text-3); margin-top: 14px; text-align: center; }

/* Map */
.map-section { padding: 0; overflow: hidden; height: 380px; }
.map-section iframe { width: 100%; height: 100%; border: none; }

/* ════════════════════════════════════════
   FAQ ACCORDION
════════════════════════════════════════ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.open { border-color: var(--border-2); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--f-body);
  cursor: pointer;
  text-align: left;
  transition: var(--t);
}
.faq-question:hover { color: var(--blue); }
.faq-question i { color: var(--blue); flex-shrink: 0; transition: transform var(--t); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  padding: 0 22px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 0 22px 20px; }

/* ════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-3);
}
.empty-state i  { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state p  { font-size: 1rem; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-brand:hover { color: var(--text); }
.footer-tagline { color: var(--blue); font-size: 0.85rem; font-weight: 500; margin-bottom: 10px; }
.footer-desc { color: var(--text-2); font-size: 0.88rem; line-height: 1.7; margin-bottom: 24px; }

.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: var(--t-s);
}
.social-links a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }

.footer-col h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-2); font-size: 0.88rem; transition: var(--t); }
.footer-col a:hover { color: var(--blue); }

.contact-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 0.85rem; margin-bottom: 10px; }
.contact-list li i { color: var(--blue); flex-shrink: 0; margin-top: 3px; width: 14px; }
.contact-list li a { color: var(--text-2); }
.contact-list li a:hover { color: var(--blue); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p   { font-size: 0.82rem; color: var(--text-3); margin: 0; }
.footer-credit     { font-size: 0.82rem; color: var(--blue); font-style: italic; }

/* ════════════════════════════════════════
   ERROR PAGES
════════════════════════════════════════ */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 24px 64px;
}
.error-content { max-width: 480px; }
.error-code {
  font-family: var(--f-display);
  font-size: clamp(6rem, 15vw, 9rem);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.error-content h1 { font-size: 1.6rem; margin-bottom: 12px; }
.error-content p  { color: var(--text-2); margin-bottom: 28px; }
.error-actions    { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════ */
.main-content { padding-top: 0; }

/* ════════════════════════════════════════
   RESPONSIVE UTILITIES
════════════════════════════════════════ */
/* ── Tablet (768px) ── */
@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .section-header { margin-bottom: 44px; }
  .stats-bar { padding: 44px 0; }
  .cta-card { padding: 36px 28px; }
  .hero-layout { gap: 36px; }
  .page-hero { padding: calc(var(--nav-h) + 56px) 0 56px; }
}

/* ── Mobile (640px) ── */
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 56px; }
  .stats-bar { padding: 36px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid, .products-grid,
  .services-grid-large, .products-grid-large {
    grid-template-columns: 1fr;
  }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; gap: 2px; }
  .contact-form-wrap { padding: 24px 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-card { padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-shape-grid { max-width: 300px; }
  .section-subtitle { font-size: 0.97rem; }
  .hero-trust { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-desc { font-size: 0.97rem; }
  .stat-item { padding: 14px 12px; gap: 10px; }
  .stat-value { font-size: 1.55rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta-card { padding: 28px 16px; }
  .hero-actions .btn { padding: 13px 20px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .section { padding: 52px 0; }
  .hero-heading { font-size: 1.9rem; }
  .hero-badge { font-size: 0.75rem; padding: 4px 12px; }
  .brand-name { font-size: 1.1rem; }
  .hero-actions .btn { font-size: 0.9rem; }
  .stat-item { padding: 12px 10px; }
  .stat-value { font-size: 1.4rem; }
  .stats-grid { gap: 8px; }
}

/* ════════════════════════════════════════
   LIGHT MODE — component overrides
   (only for elements that use hardcoded
   rgba() values instead of CSS vars)
════════════════════════════════════════ */

/* Header glass */
[data-theme="light"] .site-header {
  background: rgba(246, 248, 253, 0.88);
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(246, 248, 253, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(12,20,36,0.06);
}
[data-theme="light"] .navbar-menu {
  background: rgba(246, 248, 253, 0.98);
}
[data-theme="light"] .navbar-menu > li > a {
  color: var(--text-2);
}
[data-theme="light"] .navbar-menu > li > a:hover,
[data-theme="light"] .navbar-menu > li > a.active {
  color: var(--text);
  background: rgba(12,20,36,0.05);
}

/* Hero grid overlay */
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(79,124,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 75%, rgba(124,90,248,0.05) 0%, transparent 60%);
}
[data-theme="light"] .hero-bg::after {
  background-image:
    linear-gradient(rgba(0,0,0,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.028) 1px, transparent 1px);
}

/* Page hero (inner pages) */
[data-theme="light"] .page-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,124,255,0.07) 0%, transparent 60%),
    var(--bg);
}
[data-theme="light"] .page-hero::after {
  background-image:
    linear-gradient(rgba(0,0,0,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.022) 1px, transparent 1px);
}

/* Dashboard */
[data-theme="light"] .dash-card {
  box-shadow: var(--shadow-l), 0 0 0 1px var(--border);
}
[data-theme="light"] .dash-header {
  background: var(--bg-2);
  border-bottom-color: var(--border);
}

/* Sections */
[data-theme="light"] .section-dark,
[data-theme="light"] .testimonials-section { background: var(--bg-2); }
[data-theme="light"] .section-light { background: var(--bg-3); }
[data-theme="light"] .stats-bar { background: var(--bg-2); }

/* Process grid gap */
[data-theme="light"] .process-grid { background: var(--border); }
[data-theme="light"] .process-step { background: var(--bg-3); }
[data-theme="light"] .process-step:hover { background: var(--surface-2); }

/* Testimonial quote mark */
[data-theme="light"] .testimonial-card::before {
  color: rgba(79,124,255,0.06);
}

/* CTA glow blobs */
[data-theme="light"] .cta-card::before {
  background: radial-gradient(circle, rgba(79,124,255,0.09) 0%, transparent 60%);
}
[data-theme="light"] .cta-card::after {
  background: radial-gradient(circle, rgba(124,90,248,0.07) 0%, transparent 60%);
}

/* ════════════════════════════════════════
   DASHBOARD SPARKLINE CHART
════════════════════════════════════════ */
.dash-chart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.71rem;
  color: var(--text-3);
  margin-bottom: 5px;
}
.dash-chart-row strong { color: var(--green); font-weight: 600; }

.dash-chart-area {
  height: 52px;
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 10px;
  position: relative;
}
.dash-chart-area svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ════════════════════════════════════════
   SMOOTH THEME TRANSITIONS
   Applied via JS after initial paint to
   prevent flash of unstyled content
════════════════════════════════════════ */
html.theme-ready body,
html.theme-ready .site-header,
html.theme-ready .navbar-menu,
html.theme-ready .service-card,
html.theme-ready .product-card,
html.theme-ready .testimonial-card,
html.theme-ready .team-card,
html.theme-ready .info-card,
html.theme-ready .faq-item,
html.theme-ready .cta-card,
html.theme-ready .stat-item,
html.theme-ready .process-step,
html.theme-ready .contact-form-wrap,
html.theme-ready .contact-info-card,
html.theme-ready .dash-card,
html.theme-ready .dash-header,
html.theme-ready .section,
html.theme-ready .section-dark,
html.theme-ready .stats-bar,
html.theme-ready .site-footer,
html.theme-ready .footer-col a,
html.theme-ready .about-shape-grid .grid-item,
html.theme-ready .hero-bg {
  transition:
    background-color 0.3s var(--ease),
    border-color     0.3s var(--ease),
    color            0.3s var(--ease),
    box-shadow       0.3s var(--ease);
}

/* ════════════════════════════════════════
   REFINED TYPOGRAPHY — human touch
════════════════════════════════════════ */

/* Tighter, more editorial heading tracking */
.hero-heading {
  letter-spacing: -0.04em;
  font-weight: 800;
}

/* Testimonial quotes feel more editorial with serif */
.testimonial-card blockquote {
  font-family: Georgia, 'Times New Roman', serif;
}

/* Service card: coloured top accent on hover */
.service-card:hover,
.product-card:hover {
  border-top-color: var(--blue);
}

/* Subtle lift on all interactive cards */
.service-card:hover,
.product-card:hover,
.testimonial-card:hover,
.team-card:hover,
.info-card:hover {
  box-shadow: var(--shadow-m);
}

/* Soft focus ring for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ════════════════════════════════════════
   NAVBAR — minor polish
════════════════════════════════════════ */
.navbar-theme-item {
  display: flex;
  align-items: center;
}
@media (max-width: 900px) {
  .navbar-theme-item {
    justify-content: flex-start;
    padding: 4px 0;
  }
}
