/* ============================================
   Skynet Systems  Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --brand-green: #6DD36B;
  --brand-green-dark: #4FB04D;
  --brand-green-light: #A8E8A6;
  --brand-blue: #2563EB;
  --brand-blue-dark: #1D4ED8;
  --brand-blue-light: #60A5FA;
  --accent-cyan: #06B6D4;

  /* Light theme */
  --bg: #FFFFFF;
  --bg-soft: #FAFBFC;
  --bg-elev: #F6F8FB;
  --bg-elev-2: #EEF2F7;
  --surface: #FFFFFF;
  --border: #E5EAF1;
  --border-strong: #CBD5E1;
  --text: #0B1220;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 16px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 12px 25px -6px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 40px 80px -20px rgba(15, 23, 42, 0.22);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #2563EB 0%, #06B6D4 50%, #6DD36B 100%);
  --grad-soft: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg: #07091A;
  --bg-soft: #0A0E1F;
  --bg-elev: #0E1326;
  --bg-elev-2: #161C33;
  --surface: #0F1424;
  --border: #1B2238;
  --border-strong: #2A3450;
  --text: #F8FAFC;
  --text-muted: #B6C2D6;
  --text-subtle: #8493AC;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  --grad-soft: linear-gradient(180deg, #0A0E1F 0%, #07091A 100%);
}

/* ============================================
   Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--brand-blue); color: #fff; }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.875rem); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--brand-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow svg { width: 14px; height: 14px; }
[data-theme="dark"] .eyebrow { color: var(--brand-blue-light); }

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

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 112px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head p { margin-top: 16px; font-size: 1.0625rem; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 16px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 10px 24px rgba(37, 99, 235, 0.45);
}

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

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--brand-blue); }

.btn-sm { padding: 9px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ============================================
   Header / Nav
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
[data-theme="dark"] .header { background: rgba(7, 9, 26, 0.7); }
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s var(--ease);
}
.logo:hover { opacity: 0.85; }
.logo img { height: 42px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  position: relative;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-elev); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.mobile-toggle svg { width: 22px; height: 22px; }

/* ============================================
   Hero (Modern, light, animated)
   ============================================ */
.hero {
  position: relative;
  padding: 140px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(37, 99, 235, 0.05), transparent 60%),
    var(--bg);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(37, 99, 235, 0.12), transparent 60%),
    var(--bg);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}
[data-theme="dark"] .hero-orb { opacity: 0.35; }
.hero-orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #6DD36B, transparent 70%);
  top: -120px; right: -80px;
  animation: orbDrift 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #2563EB, transparent 70%);
  bottom: -160px; left: -120px;
  animation: orbDrift 22s ease-in-out infinite -8s;
}
.hero-orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
  top: 40%; left: 40%;
  opacity: 0.22;
  animation: orbDrift 26s ease-in-out infinite -4s;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.08); }
  66% { transform: translate(-40px, 50px) scale(0.95); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-center {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-center .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .hero-trust { justify-content: center; }
.hero-center .hero-pill { margin: 0 auto; }
.hero-center h1 { font-size: clamp(2.75rem, 6vw, 5rem); }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}
.hero-pill .tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}
.hero-pill .arrow { color: var(--brand-blue); }

.hero h1 { margin: 22px 0 20px; }
.hero .lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--text-muted);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  margin-left: -10px;
}
.avatar-stack .av:first-child { margin-left: 0; }
.avatar-stack .av:nth-child(2) { background: linear-gradient(135deg, #6DD36B, #06B6D4); }
.avatar-stack .av:nth-child(3) { background: linear-gradient(135deg, #06B6D4, #2563EB); }
.avatar-stack .av:nth-child(4) { background: linear-gradient(135deg, #4FB04D, #1D4ED8); }
.hero-trust .stars { color: #F59E0B; font-size: 0.875rem; letter-spacing: 1px; }
.hero-trust .lbl { color: var(--text-subtle); font-size: 0.8125rem; }
.hero-trust .lbl strong { color: var(--text); font-weight: 600; }

/* Hero visual: tilted browser frame */
.hero-visual {
  position: relative;
  perspective: 1500px;
}
.browser-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg) rotateZ(-1deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.hero-visual:hover .browser-frame { transform: rotateY(-3deg) rotateX(2deg) rotateZ(0); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-subtle);
  display: flex; align-items: center; gap: 6px;
}
.browser-url svg { width: 10px; height: 10px; color: var(--brand-green-dark); }
.browser-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 360px;
  background: var(--bg-soft);
}
.app-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.app-sidebar .nav-ico {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-subtle);
}
.app-sidebar .nav-ico.active { background: var(--bg-elev); color: var(--brand-blue); }
.app-sidebar .nav-ico svg { width: 16px; height: 16px; }
.app-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.app-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.app-head h5 { font-size: 0.875rem; color: var(--text); }
.app-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(109, 211, 107, 0.15);
  color: var(--brand-green-dark);
  font-size: 0.625rem; font-weight: 600;
}
.app-head .live::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand-green-dark);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.app-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.kpi .v { font-size: 1rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.kpi .l { font-size: 0.625rem; color: var(--text-subtle); margin-top: 2px; }
.kpi .t { font-size: 0.625rem; font-weight: 600; color: var(--brand-green-dark); margin-top: 4px; }
.app-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  flex: 1;
}
.app-chart svg { width: 100%; height: 140px; }

/* Floating notification cards */
.hero-toast {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: toastFloat 6s ease-in-out infinite;
}
.hero-toast .ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-toast .ico.green { background: rgba(109, 211, 107, 0.15); color: var(--brand-green-dark); }
.hero-toast .ico.blue { background: rgba(37, 99, 235, 0.12); color: var(--brand-blue); }
.hero-toast .ico svg { width: 16px; height: 16px; }
.hero-toast .meta .t { font-size: 0.6875rem; color: var(--text-subtle); }
.hero-toast .meta .v { font-size: 0.8125rem; font-weight: 700; color: var(--text); }
.hero-toast-1 { top: -16px; right: -20px; animation-delay: -2s; }
.hero-toast-2 { bottom: 28px; left: -36px; animation-delay: 0s; }
@keyframes toastFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hero stats bar (compact, below hero) */
.hero-stats {
  position: relative;
  margin-top: 64px;
  padding: 28px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero-stats .item { text-align: left; }
.hero-stats .v {
  font-size: 1.875rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}
.hero-stats .l { color: var(--text-subtle); font-size: 0.8125rem; margin-top: 4px; }
.hero-stats .item + .item { border-left: 1px solid var(--border); padding-left: 24px; }

/* ============================================
   Industry strip
   ============================================ */
.industries {
  padding: 64px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.industries-label {
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 36px;
}
.industries-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}
.industry-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  border-radius: 14px;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  text-align: center;
}
.industry-tile:hover {
  background: var(--surface);
  color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.industry-tile svg { width: 28px; height: 28px; }
.industry-tile span { font-size: 0.75rem; font-weight: 600; }

/* ============================================
   Cards / Grids
   ============================================ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(109, 211, 107, 0.1));
  color: var(--brand-blue);
  margin-bottom: 18px;
}
[data-theme="dark"] .card-icon { color: var(--brand-blue-light); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9375rem; }

.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9375rem; color: var(--text-muted);
}
.feature-list li svg {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  color: var(--brand-green-dark);
}

/* ============================================
   Interactive product showcase (tabs)
   ============================================ */
.showcase {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.showcase-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto; margin-right: auto;
  box-shadow: var(--shadow-xs);
}
.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.showcase-tab svg { width: 16px; height: 16px; }
.showcase-tab:hover { color: var(--text); }
.showcase-tab.active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.showcase-panel {
  display: none;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  animation: panelIn 0.4s var(--ease);
}
.showcase-panel.active { display: grid; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.showcase-panel h3 { font-size: 1.875rem; margin-bottom: 14px; letter-spacing: -0.03em; }
.showcase-panel p { font-size: 1.0625rem; margin-bottom: 16px; }
.showcase-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
  .showcase-panel { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Process steps (interactive timeline)
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent-cyan), var(--brand-green));
  z-index: 0;
  opacity: 0.4;
}
.process-step { position: relative; text-align: center; }
.process-num {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text);
  font-weight: 800;
  font-size: 1.0625rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
  transition: all 0.3s var(--ease);
}
.process-step:hover .process-num {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-3px);
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.875rem; }

/* ============================================
   Code showcase
   ============================================ */
.code-showcase {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.code-window {
  background: #0B1224;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid #1B2238;
}
.code-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #131A2E;
  border-bottom: 1px solid #1B2238;
}
.code-tabs { display: flex; margin-left: 12px; gap: 4px; }
.code-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #8493AC;
  padding: 4px 10px;
  border-radius: 4px;
}
.code-tab.active { background: #0B1224; color: #F8FAFC; }
.code-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #CBD5E1;
  overflow-x: auto;
}
.code-line { display: block; white-space: pre; }
.tk-key { color: #C792EA; }
.tk-fn { color: #82AAFF; }
.tk-str { color: #C3E88D; }
.tk-num { color: #F78C6C; }
.tk-cmt { color: #5C6370; font-style: italic; }
.tk-tag { color: #F07178; }
.tk-attr { color: #FFCB6B; }

/* ============================================
   Testimonials slider
   ============================================ */
.testimonial-slider {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.testimonial-track {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  border-radius: var(--radius-lg);
}
.testimonial-card {
  flex: 0 0 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
}
.testimonial-card .quote {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.testimonial-card .quote::before { content: '"'; color: var(--brand-blue); font-size: 1.5em; line-height: 0; }
.testimonial-author {
  display: inline-flex; align-items: center; gap: 12px;
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.author-meta { text-align: left; }
.author-meta .n { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.author-meta .r { color: var(--text-subtle); font-size: 0.8125rem; }
.slider-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 24px;
}
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all 0.2s var(--ease);
  border: none; padding: 0;
}
.slider-dots button.active {
  background: var(--brand-blue);
  width: 24px;
  border-radius: 8px;
}
.slider-controls {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 16px;
}
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.slider-btn:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.slider-btn svg { width: 16px; height: 16px; }

/* ============================================
   FAQ accordion (interactive)
   ============================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-item.open { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.faq-q .icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-elev);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}
.faq-q .icon svg { width: 14px; height: 14px; color: var(--text-muted); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); background: var(--brand-blue); }
.faq-item.open .faq-q .icon svg { color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: var(--brand-blue);
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  box-shadow: var(--shadow-md);
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 1.125rem; }
.price-card .price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 16px 0 4px;
}
.price-card .price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.price-card .price .period { color: var(--text-subtle); font-size: 0.9375rem; }
.price-card .desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 24px; }
.price-card .btn { width: 100%; }

/* ============================================
   CTA banner
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #06B6D4 100%);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(109,211,107,0.25), transparent 40%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255, 255, 255, 0.88); font-size: 1.0625rem; max-width: 580px; margin: 0 auto 28px; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-blue-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.cta-banner .btn-primary:hover { background: #F8FAFC; transform: translateY(-1px); }
.cta-banner .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(10px);
}
.cta-banner .btn-secondary:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p { margin-top: 16px; font-size: 0.9375rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.footer-social a:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--brand-blue); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: var(--text-subtle); font-size: 0.875rem;
}
.footer-bottom-links { display: flex; gap: 24px; }

/* ============================================
   Page header (interior pages)
   ============================================ */
.page-header {
  padding: 160px 0 64px;
  background:
    radial-gradient(800px 400px at 50% 0, rgba(37, 99, 235, 0.05), transparent 60%),
    var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header .hero-orbs { z-index: 0; }
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 16px; font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
.page-header p { font-size: 1.125rem; max-width: 640px; margin: 0 auto; color: var(--text-muted); }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-subtle);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--brand-blue); }

/* ============================================
   Services page
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.service-detail:nth-child(even) .service-detail-visual { order: -1; }
.service-detail-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.contact-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.contact-item .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item h4 { margin-bottom: 4px; }
.contact-item p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }
.contact-item a { color: var(--brand-blue); }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all 0.2s var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-status { font-size: 0.875rem; margin-top: 8px; }

/* ============================================
   Portfolio
   ============================================ */
.portfolio-filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto; margin-right: auto;
  box-shadow: var(--shadow-xs);
}
.filter-btn {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active {
  background: var(--grad-brand);
  color: #fff;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.portfolio-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-elev);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.portfolio-content { padding: 24px; }
.portfolio-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
[data-theme="dark"] .portfolio-tag { color: var(--brand-blue-light); }
.portfolio-content h3 { margin-bottom: 8px; font-size: 1.125rem; }
.portfolio-content p { font-size: 0.9375rem; margin-bottom: 16px; }
.portfolio-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--brand-blue);
}
.portfolio-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.portfolio-link:hover svg { transform: translateX(3px); }

/* ============================================
   Cursor blob (subtle hero accent)
   ============================================ */
.cursor-blob {
  position: fixed;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
  pointer-events: none;
  z-index: 1;
  filter: blur(60px);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease);
  opacity: 0;
}
.cursor-blob.visible { opacity: 1; }

/* ============================================
   Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Whatsapp floating */
.float-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s var(--ease);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 26px; height: 26px; }

/* Scroll-progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--grad-brand);
  z-index: 1100;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 540px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .hero-stats .item + .item { border-left: none; padding-left: 0; }
  .hero-stats .item:nth-child(3) { border-top: 1px solid var(--border); padding-top: 20px; }
  .hero-stats .item:nth-child(4) { border-top: 1px solid var(--border); padding-top: 20px; }
  .code-showcase { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail:nth-child(even) .service-detail-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .process::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .industries-row { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .hero { padding: 124px 0 64px; }
  .page-header { padding: 130px 0 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    transform: translateY(-200%);
    transition: transform 0.3s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 16px; }
  .mobile-toggle { display: inline-flex; }
  .cta-banner { padding: 48px 24px; }
  .contact-form { padding: 28px; }
  .industries-row { grid-template-columns: repeat(2, 1fr); }
  .hero-toast-1 { right: 10px; top: -10px; }
  .hero-toast-2 { left: 10px; bottom: 10px; }
  .testimonial-card { padding: 28px; }
  .testimonial-card .quote { font-size: 1.0625rem; }
  .float-whatsapp { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .float-whatsapp svg { width: 22px; height: 22px; }
}
