/* ============================================================
   REVELA TECH - Design System
   Premium tech aesthetic with light/dark mode
   Inspired by: Linear, Vercel, Stripe, Supabase
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Backgrounds - neutral dark (default) */
  --bg-0: #080808;
  --bg-1: #0E0E0E;
  --bg-2: #161616;
  --bg-3: #1C1C1C;
  --bg-4: #242424;

  /* Borders */
  --border-0: rgba(255, 255, 255, 0.04);
  --border-1: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.11);
  --border-3: rgba(255, 255, 255, 0.18);
  --border-4: rgba(255, 255, 255, 0.28);

  /* Text */
  --text-0: #FFFFFF;
  --text-1: #F0F0F0;
  --text-2: #A0A0A0;
  --text-3: #6A6A6A;
  --text-4: #444444;

  /* Nav background (semi-transparent) */
  --nav-bg: rgba(14, 14, 14, 0.88);
  --nav-mobile-bg: rgba(14, 14, 14, 0.97);

  /* Brand colours — from logo hexagons */
  --purple:       #8B5CF6;
  --purple-light: #A78BFA;
  --purple-dark:  #7C3AED;
  --purple-glow:  rgba(139, 92, 246, 0.18);
  --coral:        #F87171;
  --coral-glow:   rgba(248, 113, 113, 0.18);
  --peach:        #FB923C;
  --peach-glow:   rgba(251, 146, 60, 0.18);

  /* Pillar accent colours */
  --web:        #38BDF8;
  --web-glow:   rgba(56, 189, 248, 0.15);
  --web-dark:   #0EA5E9;
  --cyber:      #A78BFA;
  --cyber-glow: rgba(167, 139, 250, 0.15);
  --cyber-dark: #8B5CF6;
  --ai:         #F97316;
  --ai-glow:    rgba(249, 115, 22, 0.15);
  --ai-dark:    #EA580C;

  /* Page-level pillar (overridden per page body class) */
  --page-color: var(--purple);
  --page-glow:  var(--purple-glow);

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-py: clamp(72px, 10vw, 120px);

  /* Radii */
  --r-xs:   6px;
  --r-sm:   8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --r-pill: 9999px;

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --t-xs:  100ms var(--ease);
  --t-sm:  150ms var(--ease);
  --t-md:  220ms var(--ease);
  --t-lg:  380ms var(--ease);

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.55);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.65);
}

/* Light theme (explicit toggle) */
[data-theme="light"] {
  --bg-0: #F5F4EF;
  --bg-1: #FAFAF7;
  --bg-2: #F0EFE9;
  --bg-3: #E8E7E0;
  --bg-4: #DDDCD5;

  --border-0: rgba(0, 0, 0, 0.04);
  --border-1: rgba(0, 0, 0, 0.07);
  --border-2: rgba(0, 0, 0, 0.11);
  --border-3: rgba(0, 0, 0, 0.18);
  --border-4: rgba(0, 0, 0, 0.28);

  --text-0: #111111;
  --text-1: #1A1A1A;
  --text-2: #555555;
  --text-3: #888888;
  --text-4: #AAAAAA;

  --nav-bg: rgba(250, 250, 247, 0.88);
  --nav-mobile-bg: rgba(250, 250, 247, 0.97);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.20);
}

/* OS-level light preference (no manual override) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-0: #F5F4EF;
    --bg-1: #FAFAF7;
    --bg-2: #F0EFE9;
    --bg-3: #E8E7E0;
    --bg-4: #DDDCD5;

    --border-0: rgba(0, 0, 0, 0.04);
    --border-1: rgba(0, 0, 0, 0.07);
    --border-2: rgba(0, 0, 0, 0.11);
    --border-3: rgba(0, 0, 0, 0.18);
    --border-4: rgba(0, 0, 0, 0.28);

    --text-0: #111111;
    --text-1: #1A1A1A;
    --text-2: #555555;
    --text-3: #888888;
    --text-4: #AAAAAA;

    --nav-bg: rgba(250, 250, 247, 0.88);
    --nav-mobile-bg: rgba(250, 250, 247, 0.97);

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.10);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
    --shadow-xl: 0 24px 80px rgba(0,0,0,0.20);
  }
}

/* Page-level accent overrides */
body.page-web   { --page-color: var(--web);   --page-glow: var(--web-glow);   }
body.page-cyber { --page-color: var(--cyber); --page-glow: var(--cyber-glow); }
body.page-ai    { --page-color: var(--ai);    --page-glow: var(--ai-glow);    }


/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
strong { font-weight: 600; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--purple);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--t-sm);
}
.skip-link:focus { top: 16px; }


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-0);
}

.display-1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.display-2 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
.h1        { font-size: clamp(2rem, 3.5vw, 3rem); }
.h2        { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.h3        { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.h4        { font-size: 1.125rem; }

p { color: var(--text-2); }

.text-gradient {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--coral) 60%, var(--peach) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient--web {
  background: linear-gradient(135deg, var(--web) 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient--cyber {
  background: linear-gradient(135deg, var(--cyber) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient--ai {
  background: linear-gradient(135deg, var(--ai) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  letter-spacing: 0;
}

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-2);
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background: var(--bg-2);
}

.section--dark {
  background: var(--bg-0);
}

.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); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 40px; }

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-header .overline {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--page-color);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}


/* ============================================================
   5. ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@keyframes hexPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--purple-glow); }
  50%       { transform: scale(1.05); box-shadow: 0 0 0 12px transparent; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes typing-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%       { opacity: 1; transform: translateY(-4px); }
}

/* Scroll-triggered */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }
[data-animate][data-delay="5"] { transition-delay: 0.5s; }
[data-animate][data-delay="6"] { transition-delay: 0.6s; }

[data-animate-scale] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
[data-animate-scale].is-visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-animate], [data-animate-scale] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1;
  transition: all var(--t-md);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* Primary */
.btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 0 var(--purple-glow);
}
.btn--primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 0 0 6px var(--purple-glow), var(--shadow-md);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--border-3);
  background: rgba(128,128,128,0.08);
  transform: translateY(-1px);
}

/* Outline (pillar colour) */
.btn--outline {
  background: transparent;
  color: var(--page-color);
  border: 1px solid var(--page-color);
}
.btn--outline:hover {
  background: var(--page-glow);
  transform: translateY(-1px);
}

/* Sizes */
.btn--lg  { padding: 15px 32px; font-size: 1rem; }
.btn--sm  { padding: 9px 18px; font-size: 0.875rem; }
.btn--xs  { padding: 6px 14px; font-size: 0.8125rem; border-radius: var(--r-sm); }
.btn--full { width: 100%; }

/* Pillar-coloured variants */
.btn--web   { background: var(--web);   }
.btn--cyber { background: var(--cyber); color: var(--bg-1); }
.btn--ai    { background: var(--ai);    }

/* Arrow icon inside button */
.btn .arrow { transition: transform var(--t-sm); }
.btn:hover .arrow { transform: translateX(4px); }


/* ============================================================
   7. BADGES & PILLS
   ============================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text-2);
}

.pill--brand {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
  color: var(--purple-light);
}

.pill--web   { border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.06); color: var(--web); }
.pill--cyber { border-color: rgba(167, 139, 250, 0.3); background: rgba(167, 139, 250, 0.06); color: var(--cyber); }
.pill--ai    { border-color: rgba(249, 115, 22, 0.3); background: rgba(249, 115, 22, 0.06); color: var(--ai); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-xs);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--purple-glow);
  color: var(--purple-light);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge--popular {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(248,113,113,0.2));
  color: var(--purple-light);
  border-color: rgba(139, 92, 246, 0.4);
}

.dot-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: currentColor;
  animation: pulse-glow 2s ease-in-out infinite;
}


/* ============================================================
   8. GLASS CARD
   ============================================================ */

.card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color var(--t-md), box-shadow var(--t-md), transform var(--t-md);
}

.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border-1);
}

.card--elevated {
  background: var(--bg-3);
}

.card--glass {
  background: rgba(12, 20, 40, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card--interactive {
  cursor: pointer;
}
.card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}


/* ============================================================
   9. NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px var(--gutter);
  transition: background var(--t-lg), border-color var(--t-lg), backdrop-filter var(--t-lg);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-1);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-sm), background var(--t-sm);
  position: relative;
}

.nav__link:hover { color: var(--text-1); background: rgba(128,128,128,0.1); }
.nav__link--active { color: var(--text-1); }

.nav__link-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.nav__link--web   .nav__link-dot { background: var(--web); }
.nav__link--cyber .nav__link-dot { background: var(--cyber); }
.nav__link--ai    .nav__link-dot { background: var(--ai); }

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

/* Theme toggle */
.nav__theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: color var(--t-sm), background var(--t-sm);
  flex-shrink: 0;
}
.nav__theme-btn:hover { color: var(--text-1); background: rgba(128,128,128,0.1); }
.nav__theme-btn svg { width: 18px; height: 18px; }

.nav__theme-btn .icon-sun  { display: none; }
.nav__theme-btn .icon-moon { display: block; }
[data-theme="light"] .nav__theme-btn .icon-sun  { display: block; }
[data-theme="light"] .nav__theme-btn .icon-moon { display: none; }

/* Mobile nav toggle */
.nav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background var(--t-sm);
}
.nav__menu-btn:hover { background: rgba(128,128,128,0.1); }
.nav__menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: var(--r-pill);
  transition: all var(--t-md);
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   10. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--section-py) + 80px) var(--section-py);
  overflow: hidden;
}

/* Background system */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* Gradient orbs - hidden */
.hero__glow {
  display: none;
}

/* Grid lines overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-1) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 0%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--text-0);
  margin-bottom: 24px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--coral) 55%, var(--peach) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding-block: calc(var(--section-py) + 90px) var(--section-py);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-hero__glow {
  display: none;
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-1) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 0%, transparent 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.page-hero__eyebrow {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-0);
  margin-bottom: 20px;
}

.page-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 32px;
}


/* ============================================================
   11. PILLAR CARDS (homepage)
   ============================================================ */

.pillars {
  padding-block: var(--section-py);
  position: relative;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--t-lg);
  position: relative;
  overflow: hidden;
}

/* Top accent line */
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.pillar-card--web::before   { background: linear-gradient(90deg, transparent, var(--web), transparent); }
.pillar-card--cyber::before { background: linear-gradient(90deg, transparent, var(--cyber), transparent); }
.pillar-card--ai::before    { background: linear-gradient(90deg, transparent, var(--ai), transparent); }

/* Hover glow */
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pillar-card--web:hover   { border-color: rgba(56, 189, 248, 0.25); box-shadow: var(--shadow-lg), 0 0 40px var(--web-glow); }
.pillar-card--cyber:hover { border-color: rgba(167, 139, 250, 0.25); box-shadow: var(--shadow-lg), 0 0 40px var(--cyber-glow); }
.pillar-card--ai:hover    { border-color: rgba(249, 115, 22, 0.25); box-shadow: var(--shadow-lg), 0 0 40px var(--ai-glow); }

.pillar-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar-card--web   .pillar-card__icon { background: rgba(56, 189, 248, 0.1); color: var(--web); }
.pillar-card--cyber .pillar-card__icon { background: rgba(167, 139, 250, 0.1); color: var(--cyber); }
.pillar-card--ai    .pillar-card__icon { background: rgba(249, 115, 22, 0.1); color: var(--ai); }

.pillar-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-0);
}

.pillar-card__desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
}

.pillar-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pillar-card__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.pillar-card__features li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.pillar-card--web   .pillar-card__features li::before { background: var(--web); }
.pillar-card--cyber .pillar-card__features li::before { background: var(--cyber); }
.pillar-card--ai    .pillar-card__features li::before { background: var(--ai); }

.pillar-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
  transition: gap var(--t-sm), color var(--t-sm);
}
.pillar-card--web   .pillar-card__cta { color: var(--web); }
.pillar-card--cyber .pillar-card__cta { color: var(--cyber); }
.pillar-card--ai    .pillar-card__cta { color: var(--ai); }
.pillar-card__cta:hover { gap: 10px; }


/* ============================================================
   12. WHY SECTION
   ============================================================ */

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-item {
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  transition: border-color var(--t-md), background var(--t-md);
}

.why-item:hover {
  border-color: var(--border-2);
  background: var(--bg-3);
}

.why-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  margin-bottom: 16px;
}

.why-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.why-item__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}


/* ============================================================
   13. APPROACH SECTION
   ============================================================ */

.approach__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.approach__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), var(--purple-glow), var(--border-2), transparent);
  z-index: 0;
}

.approach-step {
  text-align: center;
  padding: 20px 16px;
  position: relative;
  z-index: 1;
}

.approach-step__number {
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple-light);
  margin: 0 auto 16px;
  transition: all var(--t-md);
}

.approach-step:hover .approach-step__number {
  background: var(--purple-glow);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px var(--purple-glow);
}

.approach-step__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.approach-step__desc {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.55;
}


/* ============================================================
   14. SECURITY FIRST SECTION
   ============================================================ */

.security-first {
  padding-block: var(--section-py);
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.security-first::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.security-first__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.security-first__label {
  color: var(--purple-light);
  margin-bottom: 12px;
}

.security-first__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-0);
  line-height: 1.15;
  margin-bottom: 20px;
}

.security-first__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 32px;
}

.security-first__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--r-md);
}

.security-point__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
  font-size: 0.875rem;
}

.security-point__text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
}

.security-first__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--t-md);
}

.stat-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-0);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.5;
}


/* ============================================================
   15. PROJECTS
   ============================================================ */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-lg);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}

.project-card__thumb {
  height: 200px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.project-card__thumb-gradient {
  position: absolute;
  inset: 0;
}

.project-card__body {
  padding: 24px;
}

.project-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.6;
}


/* ============================================================
   16. TESTIMONIALS
   ============================================================ */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card__quote {
  font-size: 1.025rem;
  line-height: 1.7;
  color: var(--text-1);
  font-style: italic;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--purple-light);
  border: 1px solid var(--border-2);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-0);
  display: block;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-3);
  display: block;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  color: var(--peach);
  font-size: 0.875rem;
}


/* ============================================================
   17. PRICING CARDS
   ============================================================ */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all var(--t-md);
  position: relative;
}

.pricing-card--featured {
  background: var(--bg-3);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15), var(--shadow-lg);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r-xl) + 1px);
  background: linear-gradient(135deg,
    rgba(139, 92, 246, 0.4),
    rgba(248, 113, 113, 0.2),
    rgba(139, 92, 246, 0.1)
  );
  z-index: -1;
}

.pricing-card:not(.pricing-card--featured):hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.pricing-card__tier {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--page-color);
  margin-bottom: 8px;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.4375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin-bottom: 6px;
}

.pricing-card__tagline {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-card__currency {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-0);
  line-height: 1;
}

.pricing-card__note {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 8px;
}

.pricing-card__delivery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 28px;
}

.pricing-card__divider {
  height: 1px;
  background: var(--border-1);
  margin-bottom: 24px;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 28px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

.pricing-feature--dim {
  color: var(--text-3);
}

.pricing-feature__check {
  width: 18px;
  height: 18px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.625rem;
}

.pricing-feature--included .pricing-feature__check {
  background: var(--page-glow);
  color: var(--page-color);
}

.pricing-feature--excluded .pricing-feature__check {
  background: var(--border-0);
  color: var(--text-4);
}

.pricing-card__suitable {
  font-size: 0.8125rem;
  color: var(--text-3);
  padding: 12px 16px;
  background: var(--border-0);
  border-radius: var(--r-sm);
  line-height: 1.5;
  margin-bottom: 20px;
}

.pricing-card__suitable strong {
  color: var(--text-2);
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-card__addons {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 12px;
  line-height: 1.5;
}


/* ============================================================
   18. FAQ
   ============================================================ */

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 780px;
  margin-inline: auto;
}

.faq__item {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-sm);
}

.faq__item--open {
  border-color: var(--border-2);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: left;
  transition: color var(--t-sm);
}

.faq__question:hover { color: var(--text-0); }

.faq__icon {
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  background: var(--border-0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  flex-shrink: 0;
  transition: all var(--t-sm);
  font-size: 1rem;
  line-height: 1;
}

.faq__item--open .faq__icon {
  background: var(--purple-glow);
  color: var(--purple-light);
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.faq__answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
}


/* ============================================================
   19. CONTACT CTA SECTION
   ============================================================ */

.contact-cta {
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse,
    rgba(139,92,246,0.08) 0%,
    rgba(248,113,113,0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.contact-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.contact-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-0);
  margin-bottom: 16px;
  line-height: 1.1;
}

.contact-cta__sub {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-cta__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-2);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--purple-light);
  transition: all var(--t-md);
  margin-bottom: 20px;
}

.contact-cta__email:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
}

.contact-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta__note {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-3);
}


/* ============================================================
   20. SERVICE GRID (inner pages)
   ============================================================ */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-item {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all var(--t-md);
}

.service-item:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.service-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--page-glow);
  color: var(--page-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-item__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.service-item__desc {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.6;
}


/* ============================================================
   21. AI ASSISTANT
   ============================================================ */

.ai-assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
}

/* Hexagon trigger button */
.ai-trigger {
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--purple) 0%, var(--coral) 50%, var(--peach) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 20px var(--purple-glow);
  transition: all var(--t-md);
  position: relative;
  overflow: hidden;
}

.ai-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  border-radius: inherit;
}

.ai-trigger:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg), 0 0 32px var(--purple-glow);
}

.ai-trigger--active {
  animation: none;
}

.ai-trigger svg {
  color: #fff;
  position: relative;
  z-index: 1;
}

/* Pulse ring */
.ai-trigger::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--purple);
  opacity: 0;
  animation: hexPulse 3s ease-in-out infinite;
}

/* Panel */
.ai-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 340px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity var(--t-lg), transform var(--t-lg);
  max-height: 520px;
}

.ai-panel--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.ai-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-3);
}

.ai-panel__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--purple), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-panel__info {
  flex: 1;
}

.ai-panel__name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-0);
  display: block;
}

.ai-panel__status {
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-panel__status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: #34D399;
}

.ai-panel__close {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--border-0);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  transition: all var(--t-sm);
  flex-shrink: 0;
}

.ai-panel__close:hover {
  background: var(--border-1);
  color: var(--text-1);
}

.ai-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-1) transparent;
}

.ai-message {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  font-size: 0.875rem;
  line-height: 1.6;
  word-break: break-word;
}

.ai-message--bot {
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  color: var(--text-1);
  align-self: flex-start;
  border-radius: var(--r-sm) var(--r-lg) var(--r-lg) var(--r-lg);
}

.ai-message--bot a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-message--user {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  align-self: flex-end;
  border-radius: var(--r-lg) var(--r-sm) var(--r-lg) var(--r-lg);
}

.ai-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
}

.ai-quick-reply {
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: all var(--t-sm);
}

.ai-quick-reply:hover {
  background: var(--purple-glow);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--purple-light);
}

.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm) var(--r-lg) var(--r-lg) var(--r-lg);
  align-self: flex-start;
}

.ai-typing span {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--text-3);
  border-radius: var(--r-pill);
  animation: typing-dot 1.2s ease-in-out infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

.ai-panel__input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-1);
}

.ai-panel__input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-1);
  transition: border-color var(--t-sm);
}

.ai-panel__input::placeholder { color: var(--text-4); }
.ai-panel__input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.4);
}

.ai-panel__send {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-sm);
  flex-shrink: 0;
  font-size: 1rem;
}

.ai-panel__send:hover {
  background: var(--purple-dark);
  transform: scale(1.05);
}


/* ============================================================
   22. FOOTER
   ============================================================ */

.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border-1);
  padding-block: 60px 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer__logo {
  display: inline-block;
  margin-bottom: 4px;
}

.footer__logo img {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 280px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--t-sm);
}
.footer__email:hover { color: var(--purple-light); }

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color var(--t-sm);
}
.footer__link:hover { color: var(--text-1); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-0);
}

.footer__legal {
  font-size: 0.8125rem;
  color: var(--text-4);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-link {
  font-size: 0.8125rem;
  color: var(--text-4);
  transition: color var(--t-sm);
}
.footer__bottom-link:hover { color: var(--text-2); }

/* Pillar colour strip in footer */
.footer__pillars {
  display: flex;
  gap: 2px;
  margin-top: 16px;
}

.footer__pillar-dot {
  height: 3px;
  border-radius: var(--r-pill);
  flex: 1;
}

.footer__pillar-dot--web   { background: var(--web); }
.footer__pillar-dot--cyber { background: var(--cyber); }
.footer__pillar-dot--ai    { background: var(--ai); }


/* ============================================================
   23. EXPERTISE / CYBER-SPECIFIC
   ============================================================ */

.expertise-bar {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.expertise-bar__item {}

.expertise-bar__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-0);
  margin-bottom: 6px;
}

.expertise-bar__label {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.4;
}

.expertise-bar__divider {
  position: relative;
}
.expertise-bar__divider::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  width: 1px;
  height: 60%;
  background: var(--border-1);
}

/* Coverage map placeholder */
.coverage-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 32px;
  text-align: center;
}


/* ============================================================
   24. PROCESS STEPS (inner pages)
   ============================================================ */

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--page-glow), transparent);
}

.process-step {
  text-align: center;
  padding: 20px 16px;
  position: relative;
}

.process-step__num {
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--page-color);
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 6px;
}

.process-step__desc {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.55;
}


/* ============================================================
   25. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .pillars__grid,
  .why__grid,
  .approach__steps,
  .process__steps { grid-template-columns: repeat(2, 1fr); }

  .approach__steps::before,
  .process__steps::before { display: none; }

  .security-first__inner { grid-template-columns: 1fr; gap: 48px; }
  .security-first__stats { grid-template-columns: repeat(4, 1fr); }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }

  .expertise-bar { grid-template-columns: repeat(2, 1fr); }
  .expertise-bar__divider:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --gutter: 20px;
  }

  /* Navigation mobile */
  .nav {
    padding: 14px var(--gutter);
  }

  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    top: 65px;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 24px var(--gutter);
    gap: 4px;
    border-top: 1px solid var(--border-1);
  }

  .nav__links--open { display: flex; }

  .nav__link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.125rem;
    font-weight: 600;
  }

  .nav__menu-btn { display: flex; }

  .nav__actions .btn { display: none; }
  .nav__actions .nav__menu-btn { display: flex; }

  /* Hero */
  .hero {
    padding-block-start: 100px;
    min-height: auto;
    padding-block-end: 60px;
  }

  /* .hero__glow already hidden globally */

  /* Sections */
  .pillars__grid,
  .projects__grid,
  .testimonials__grid,
  .pricing__grid,
  .services__grid,
  .why__grid { grid-template-columns: 1fr; }

  .approach__steps { grid-template-columns: 1fr; gap: 16px; }
  .process__steps  { grid-template-columns: 1fr; gap: 16px; }

  .security-first__stats { grid-template-columns: repeat(2, 1fr); }
  .expertise-bar { grid-template-columns: repeat(2, 1fr); }

  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* AI assistant */
  .ai-panel { width: calc(100vw - 48px); right: 0; }

  .contact-cta__actions { flex-direction: column; align-items: center; }
  .contact-cta__actions .btn { width: 100%; max-width: 360px; }

  .section-header p { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .security-first__stats { grid-template-columns: 1fr 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .pricing-card--featured { margin-top: 0; }
}
