/* ================================================================
   FUSSION SHADE — MAIN STYLESHEET
   Claymorphism Design System | Light & Dark Mode
   ================================================================ */

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

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary:        #3ED46A;
  --primary-hover:  #2EC05E;
  --primary-light:  #78E8A4;
  --primary-dark:   #1A8C44;
  --primary-50:     rgba(62, 212, 106, 0.08);
  --primary-100:    rgba(62, 212, 106, 0.18);
  --forest:         #0D2218;
  --forest-mid:     #1B4030;

  /* Light Mode Surfaces */
  --bg:          #F0FAF4;
  --bg-alt:      #E6F2EA;
  --surface:     #FFFFFF;
  --surface-alt: #F4FAF6;

  /* Light Mode Text */
  --text:        #0D2218;
  --text-2:      #2A5040;
  --text-muted:  #7BAA8C;

  /* Borders */
  --border:      rgba(62, 212, 106, 0.22);
  --border-card: rgba(62, 212, 106, 0.14);

  /* Clay Shadows — Light Mode */
  --clay-shadow:
    8px 8px 18px rgba(13, 34, 24, 0.13),
    -4px -4px 11px rgba(255, 255, 255, 0.94),
    inset 2px 2px 5px rgba(255, 255, 255, 0.8),
    inset -2px -2px 5px rgba(13, 34, 24, 0.08);

  --clay-shadow-hover:
    12px 12px 26px rgba(13, 34, 24, 0.18),
    -6px -6px 15px rgba(255, 255, 255, 0.98),
    inset 2px 2px 5px rgba(255, 255, 255, 0.8),
    inset -2px -2px 5px rgba(13, 34, 24, 0.08);

  --clay-shadow-press:
    3px 3px 8px rgba(13, 34, 24, 0.12),
    -1px -1px 4px rgba(255, 255, 255, 0.88),
    inset 4px 4px 10px rgba(13, 34, 24, 0.12),
    inset -2px -2px 5px rgba(255, 255, 255, 0.6);

  --clay-shadow-sm:
    5px 5px 12px rgba(13, 34, 24, 0.10),
    -3px -3px 8px rgba(255, 255, 255, 0.92),
    inset 1px 1px 3px rgba(255, 255, 255, 0.75),
    inset -1px -1px 3px rgba(13, 34, 24, 0.06);

  /* Clay Primary Button Shadow */
  --clay-btn:
    6px 6px 14px rgba(13, 34, 24, 0.28),
    -3px -3px 8px rgba(120, 232, 164, 0.55),
    inset 2px 2px 5px rgba(180, 255, 210, 0.5),
    inset -2px -2px 5px rgba(20, 100, 60, 0.22);

  --clay-btn-hover:
    10px 10px 22px rgba(13, 34, 24, 0.34),
    -5px -5px 12px rgba(120, 232, 164, 0.65),
    inset 2px 2px 5px rgba(180, 255, 210, 0.5),
    inset -2px -2px 5px rgba(20, 100, 60, 0.22);

  --clay-btn-press:
    2px 2px 6px rgba(13, 34, 24, 0.25),
    -1px -1px 4px rgba(120, 232, 164, 0.4),
    inset 4px 4px 10px rgba(20, 100, 60, 0.28),
    inset -2px -2px 5px rgba(180, 255, 210, 0.3);

  /* Hero gradient bg blobs */
  --blob-1: radial-gradient(ellipse at 20% 30%, rgba(62, 212, 106, 0.28) 0%, transparent 60%);
  --blob-2: radial-gradient(ellipse at 80% 70%, rgba(26, 140, 68, 0.18) 0%, transparent 55%);
  --blob-3: radial-gradient(ellipse at 50% 10%, rgba(62, 212, 106, 0.12) 0%, transparent 50%);

  /* Layout */
  --nav-h:  72px;
  --max-w:  1220px;
  --max-w-md: 960px;
  --max-w-sm: 740px;

  /* Spacing Scale */
  --s1: 0.25rem;  /* 4px */
  --s2: 0.5rem;   /* 8px */
  --s3: 0.75rem;  /* 12px */
  --s4: 1rem;     /* 16px */
  --s5: 1.25rem;  /* 20px */
  --s6: 1.5rem;   /* 24px */
  --s8: 2rem;     /* 32px */
  --s10: 2.5rem;  /* 40px */
  --s12: 3rem;    /* 48px */
  --s16: 4rem;    /* 64px */
  --s20: 5rem;    /* 80px */
  --s24: 6rem;    /* 96px */

  /* Border Radius */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-2xl: 44px;
  --r-full: 9999px;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --t-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --t-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
  --bg:          #0B1A10;
  --bg-alt:      #0E2116;
  --surface:     #132B1C;
  --surface-alt: #193626;

  --text:        #E2F5EB;
  --text-2:      #8DC6A5;
  --text-muted:  #527A65;

  --border:      rgba(62, 212, 106, 0.18);
  --border-card: rgba(62, 212, 106, 0.10);

  --clay-shadow:
    8px 8px 18px rgba(0, 0, 0, 0.48),
    -4px -4px 11px rgba(255, 255, 255, 0.04),
    inset 2px 2px 5px rgba(255, 255, 255, 0.07),
    inset -2px -2px 5px rgba(0, 0, 0, 0.38);

  --clay-shadow-hover:
    12px 12px 26px rgba(0, 0, 0, 0.58),
    -6px -6px 15px rgba(255, 255, 255, 0.06),
    inset 2px 2px 5px rgba(255, 255, 255, 0.07),
    inset -2px -2px 5px rgba(0, 0, 0, 0.38);

  --clay-shadow-press:
    3px 3px 8px rgba(0, 0, 0, 0.5),
    -1px -1px 4px rgba(255, 255, 255, 0.03),
    inset 4px 4px 10px rgba(0, 0, 0, 0.45),
    inset -2px -2px 5px rgba(255, 255, 255, 0.05);

  --clay-shadow-sm:
    5px 5px 12px rgba(0, 0, 0, 0.4),
    -3px -3px 8px rgba(255, 255, 255, 0.03),
    inset 1px 1px 3px rgba(255, 255, 255, 0.06),
    inset -1px -1px 3px rgba(0, 0, 0, 0.3);

  --clay-btn:
    6px 6px 14px rgba(0, 0, 0, 0.55),
    -3px -3px 8px rgba(62, 212, 106, 0.18),
    inset 2px 2px 5px rgba(120, 232, 164, 0.14),
    inset -2px -2px 5px rgba(0, 0, 0, 0.38);

  --clay-btn-hover:
    10px 10px 22px rgba(0, 0, 0, 0.65),
    -5px -5px 12px rgba(62, 212, 106, 0.24),
    inset 2px 2px 5px rgba(120, 232, 164, 0.14),
    inset -2px -2px 5px rgba(0, 0, 0, 0.38);

  --clay-btn-press:
    2px 2px 6px rgba(0, 0, 0, 0.5),
    -1px -1px 4px rgba(62, 212, 106, 0.12),
    inset 4px 4px 10px rgba(0, 0, 0, 0.5),
    inset -2px -2px 5px rgba(120, 232, 164, 0.1);

  --blob-1: radial-gradient(ellipse at 20% 30%, rgba(62, 212, 106, 0.18) 0%, transparent 60%);
  --blob-2: radial-gradient(ellipse at 80% 70%, rgba(26, 140, 68, 0.12) 0%, transparent 55%);
  --blob-3: radial-gradient(ellipse at 50% 10%, rgba(62, 212, 106, 0.08) 0%, transparent 50%);
}


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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color var(--t-base), color var(--t-base);
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}


/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s6);
}

.container-md {
  max-width: var(--max-w-md);
  margin-inline: auto;
  padding-inline: var(--s6);
}

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

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

.section-header {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: var(--s12);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s1) var(--s4);
  background: var(--primary-100);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 1px solid var(--primary);
  margin-bottom: var(--s4);
}

[data-theme="dark"] .section-badge {
  color: var(--primary-light);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-4 { gap: var(--s4); }
.gap-6 { gap: var(--s6); }
.gap-8 { gap: var(--s8); }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.mt-2 { margin-top: var(--s2); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }


/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.display-xl {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.display-md {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.015em;
}

.heading-md {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.01em;
}

.body-lg  { font-size: 1.125rem; line-height: 1.7; }
.body-md  { font-size: 1rem; line-height: 1.65; }
.body-sm  { font-size: 0.9rem; line-height: 1.6; }
.label    { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

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

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #a3f0c3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ================================================================
   CLAYMORPHISM COMPONENTS
   ================================================================ */

/* Base Clay Card */
.clay {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-card);
  box-shadow: var(--clay-shadow);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.clay:hover {
  box-shadow: var(--clay-shadow-hover);
  transform: translateY(-4px);
}

.clay:active {
  box-shadow: var(--clay-shadow-press);
  transform: translateY(2px);
}

/* Small Clay */
.clay-sm {
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-card);
  box-shadow: var(--clay-shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

/* Primary Clay (Green tinted) */
.clay-primary {
  background: linear-gradient(145deg, var(--primary), var(--primary-hover));
  border-radius: var(--r-lg);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--clay-btn);
  color: #fff;
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.clay-primary:hover {
  box-shadow: var(--clay-btn-hover);
  transform: translateY(-3px);
}

.clay-primary:active {
  box-shadow: var(--clay-btn-press);
  transform: translateY(2px);
}

/* Clay Surface Alt (slightly tinted) */
.clay-alt {
  background: var(--surface-alt);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--clay-shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.clay-alt:hover {
  box-shadow: var(--clay-shadow-hover);
  transform: translateY(-3px);
}


/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn-primary {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: var(--clay-btn);
}

.btn-primary:hover {
  box-shadow: var(--clay-btn-hover);
  transform: translateY(-3px);
}

.btn-primary:active {
  box-shadow: var(--clay-btn-press);
  transform: translateY(2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: var(--clay-shadow-sm);
}

.btn-outline:hover {
  background: var(--primary-50);
  box-shadow: var(--clay-shadow-hover);
  transform: translateY(-3px);
}

.btn-outline:active {
  transform: translateY(2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.btn-lg {
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-md);
}

/* Arrow icon in button */
.btn .arrow {
  display: inline-block;
  transition: transform var(--t-base);
}
.btn:hover .arrow { transform: translateX(4px); }


/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all var(--t-base);
  /* Prevent mobile browser address-bar scroll jank */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.nav.scrolled {
  background: var(--surface);
  box-shadow: var(--clay-shadow-sm);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.nav-link {
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-100);
  font-weight: 600;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: var(--text-2);
  box-shadow: var(--clay-shadow-sm);
  transition: all var(--t-base);
  border: 1px solid var(--border);
}

.theme-toggle:hover {
  box-shadow: var(--clay-shadow-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

.theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
.icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: none; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  box-shadow: var(--clay-shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--t-base);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-base);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile full-screen sidebar ── */
.nav-mobile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: var(--surface);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -8px 0 48px rgba(0,0,0,0.18);
}
.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
}

/* Overlay backdrop */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  pointer-events: none;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Sidebar top bar */
.nav-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s6);
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-sidebar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-sidebar-close {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: var(--text-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-sidebar-close:hover {
  color: var(--primary);
  background: var(--primary-50);
}
.nav-sidebar-close svg { width: 22px; height: 22px; }

/* Sidebar nav links area */
.nav-sidebar-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--s6);
  gap: var(--s1);
}
.nav-mobile .nav-link {
  padding: var(--s3) var(--s5);
  border-radius: var(--r-md);
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
}

/* Sidebar bottom area: theme toggle + CTA */
.nav-sidebar-footer {
  padding: var(--s6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  flex-shrink: 0;
}
.nav-sidebar-theme {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  padding: var(--s3) var(--s5);
  background: var(--surface-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
  text-align: left;
}
.nav-sidebar-theme:hover {
  color: var(--primary);
  background: var(--primary-50);
}
.nav-sidebar-theme svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-mobile .btn-primary {
  width: 100%;
  justify-content: center;
}


/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--s16));
  padding-bottom: var(--s16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blob-1), var(--blob-2), var(--blob-3);
  z-index: 0;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s5);
  background: var(--primary-100);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  margin-bottom: var(--s5);
}

[data-theme="dark"] .page-hero-badge {
  color: var(--primary-light);
}


/* ================================================================
   HOME HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--blob-1), var(--blob-2), var(--blob-3);
  z-index: 0;
}

/* Subtle grid pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12);
  align-items: center;
  padding-block: var(--s16);
}

.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--primary-100);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  margin-bottom: var(--s5);
  animation: fadeUp 0.6s ease both;
}

[data-theme="dark"] .hero-badge {
  color: var(--primary-light);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: var(--s5);
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: var(--s8);
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-trust {
  margin-top: var(--s8);
  display: flex;
  align-items: center;
  gap: var(--s3);
  animation: fadeUp 0.6s 0.4s ease both;
}

.hero-trust-avatars {
  display: flex;
}

.hero-trust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.hero-trust-avatar:first-child { margin-left: 0; }

.hero-trust-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-trust-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.7s 0.2s ease both;
}

.hero-dashboard {
  width: 100%;
  max-width: 500px;
  padding: var(--s6);
  position: relative;
}

.hero-dashboard-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  box-shadow: var(--clay-shadow);
  padding: var(--s6);
  overflow: hidden;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s5);
}

.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }

.dash-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Stats row */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.dash-stat {
  background: var(--surface-alt);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--border-card);
  box-shadow: var(--clay-shadow-sm);
}

.dash-stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.dash-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* Chart area */
.dash-chart {
  background: var(--surface-alt);
  border-radius: var(--r-md);
  padding: var(--s4);
  border: 1px solid var(--border-card);
  margin-bottom: var(--s4);
}

.dash-chart-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s3);
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.dash-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--primary-dark), var(--primary));
  opacity: 0.7;
  min-height: 8px;
  animation: growUp 1s ease both;
}

.dash-bar:nth-child(1) { height: 45%; animation-delay: 0.1s; }
.dash-bar:nth-child(2) { height: 70%; animation-delay: 0.15s; opacity: 1; }
.dash-bar:nth-child(3) { height: 55%; animation-delay: 0.2s; }
.dash-bar:nth-child(4) { height: 85%; animation-delay: 0.25s; opacity: 1; }
.dash-bar:nth-child(5) { height: 65%; animation-delay: 0.3s; }
.dash-bar:nth-child(6) { height: 92%; animation-delay: 0.35s; opacity: 1; }
.dash-bar:nth-child(7) { height: 78%; animation-delay: 0.4s; }

.dash-tasks {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.dash-task {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-card);
}

.dash-task-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-task-check svg {
  width: 9px;
  height: 9px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}

.dash-task-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  flex: 1;
}

.dash-task-tag {
  font-size: 0.68rem;
  padding: 2px 8px;
  background: var(--primary-50);
  color: var(--primary-dark);
  border-radius: var(--r-full);
  font-weight: 600;
}

[data-theme="dark"] .dash-task-tag { color: var(--primary-light); }

/* Floating mini cards */
.hero-float-1 {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-card);
  box-shadow: var(--clay-shadow);
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
  animation: float 4s ease-in-out infinite;
}

.hero-float-2 {
  position: absolute;
  bottom: 10px;
  left: -30px;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-card);
  box-shadow: var(--clay-shadow);
  padding: var(--s3) var(--s4);
  animation: float 4s 1.5s ease-in-out infinite;
}

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--clay-btn-press);
}

.float-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.float-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.float-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.float-2-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.float-2-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}


/* ================================================================
   METRICS / STATS SECTION
   ================================================================ */
.metrics {
  padding-block: var(--s16);
  background: var(--bg-alt);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
}

.metric-card {
  text-align: center;
  padding: var(--s8) var(--s6);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 80%;
  background: radial-gradient(ellipse, var(--primary-50) 0%, transparent 70%);
  z-index: 0;
}

.metric-card > * { position: relative; z-index: 1; }

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s4);
  box-shadow: var(--clay-shadow-sm);
}

.metric-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--s2);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .metric-value {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.4;
}

.metric-sublabel {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ================================================================
   SERVICE CARDS
   ================================================================ */
.service-card {
  padding: var(--s8) var(--s6);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, var(--primary-50) 0%, transparent 70%);
  transition: transform var(--t-slow);
  z-index: 0;
}

.service-card:hover::before { transform: scale(1.4); }

.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--primary-50), var(--primary-100));
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s5);
  box-shadow: var(--clay-shadow-sm);
  transition: all var(--t-bounce);
}

.service-card:hover .service-icon {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  transform: scale(1.1) rotate(-3deg);
  border-color: transparent;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
  transition: stroke var(--t-base);
}

.service-card:hover .service-icon svg {
  stroke: white;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--s3);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--s5);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.service-feature {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.83rem;
  color: var(--text-2);
  font-weight: 500;
}

.service-feature::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.service-learn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: var(--s5);
  transition: gap var(--t-base);
}

.service-learn:hover { gap: var(--s3); }


/* ================================================================
   PROJECT CARDS
   ================================================================ */
.project-card {
  overflow: hidden;
  cursor: pointer;
}

.project-thumb {
  height: 200px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  position: relative;
}

.project-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-thumb-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.project-thumb-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
  fill: none;
  stroke-width: 1.8;
}

.project-result {
  position: absolute;
  bottom: var(--s3);
  right: var(--s3);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.2);
}

.project-result span {
  color: var(--primary-light);
}

.project-body {
  padding: var(--s5) var(--s6);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
}

.project-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--primary-50);
  color: var(--primary-dark);
  font-weight: 600;
  border: 1px solid var(--border);
}

[data-theme="dark"] .project-tag { color: var(--primary-light); }

.project-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s2);
}

.project-body p {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.6;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--s6);
  border-top: 1px solid var(--border-card);
}

.project-tech {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.project-tech span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--t-base);
}

.project-link:hover { gap: 8px; }

.project-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}


/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-track {
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  gap: var(--s6);
  transition: transform var(--t-slow);
}

.testimonial-card {
  flex-shrink: 0;
  width: calc((100% - var(--s6) * 2) / 3);
  padding: var(--s8) var(--s6);
  position: relative;
}

.testimonial-quote-mark {
  position: absolute;
  top: var(--s6);
  right: var(--s6);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.12;
  font-weight: 700;
  user-select: none;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--s4);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  stroke: none;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: var(--s5);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--clay-shadow-sm);
  border: 2px solid var(--surface);
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: var(--s3);
  justify-content: center;
  margin-top: var(--s8);
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-card);
  transition: all var(--t-base);
  cursor: pointer;
}

.testimonial-dot.active {
  width: 24px;
  border-radius: var(--r-full);
  background: var(--primary);
}

.testimonial-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--clay-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--t-base);
}

.testimonial-btn:hover {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--clay-btn);
  transform: scale(1.1);
}

.testimonial-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}


/* ================================================================
   CLIENTS LOGO STRIP
   ================================================================ */
.clients-section {
  padding-block: var(--s12);
  overflow: hidden;
}

.clients-title {
  text-align: center;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s8);
}

.clients-track {
  overflow: hidden;
  position: relative;
}

.clients-track::before,
.clients-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

.clients-track::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.clients-track::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.clients-scroll {
  display: flex;
  gap: var(--s8);
  animation: scrollLeft 25s linear infinite;
  width: max-content;
}

.clients-scroll:hover { animation-play-state: paused; }

.client-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-card);
  box-shadow: var(--clay-shadow-sm);
  white-space: nowrap;
  transition: all var(--t-base);
}

.client-logo:hover {
  box-shadow: var(--clay-shadow-hover);
  transform: translateY(-2px);
}

.client-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.client-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-2);
}


/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  padding-block: var(--s20);
  position: relative;
  overflow: hidden;
}

.cta-banner-inner {
  background: linear-gradient(145deg, var(--forest), #0F3522, #1B5E35);
  border-radius: var(--r-xl);
  padding: var(--s16) var(--s12);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(13, 34, 24, 0.35);
}

[data-theme="dark"] .cta-banner-inner {
  background: linear-gradient(145deg, #0D2218, #1A4530, #0A1810);
  border: 1.5px solid rgba(62, 212, 106, 0.2);
}

.cta-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(62, 212, 106, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(26, 140, 68, 0.2) 0%, transparent 55%);
}

.cta-banner-inner > * { position: relative; z-index: 1; }

.cta-banner h2 {
  color: white;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--s8);
  line-height: 1.7;
}

.cta-banner .btn-primary {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.cta-banner .btn-outline {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}

.cta-banner .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: white;
}


/* ================================================================
   PROCESS STEPS
   ================================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(12.5% + 30px);
  right: calc(12.5% + 30px);
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent, var(--primary), transparent, var(--primary));
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-50), var(--primary-100));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  box-shadow: var(--clay-shadow-sm);
  transition: all var(--t-bounce);
}

.process-step:hover .process-step-num {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: transparent;
  transform: scale(1.1);
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--s2);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ================================================================
   ABOUT / TEAM SECTION
   ================================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-card {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--clay-shadow);
  border: 1.5px solid var(--border-card);
}

.about-img-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--forest), #1E5C38, var(--primary-dark));
  position: relative;
  overflow: hidden;
}

.about-img-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(62, 212, 106, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(26, 140, 68, 0.25) 0%, transparent 50%);
}

/* Code lines decoration */
.about-code-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s8);
  gap: var(--s3);
}

.code-line {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
}

.code-line-1 { width: 75%; }
.code-line-2 { width: 55%; margin-left: var(--s4); background: rgba(62, 212, 106, 0.4); }
.code-line-3 { width: 85%; }
.code-line-4 { width: 45%; margin-left: var(--s4); background: rgba(120, 232, 164, 0.35); }
.code-line-5 { width: 68%; }
.code-line-6 { width: 80%; background: rgba(62, 212, 106, 0.3); }
.code-line-7 { width: 50%; margin-left: var(--s4); }
.code-line-8 { width: 72%; }

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-card);
  box-shadow: var(--clay-shadow);
  padding: var(--s4) var(--s5);
  text-align: center;
}

.about-badge-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.about-badge-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.about-content .section-badge { margin-bottom: var(--s4); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s6);
}

.value-item {
  padding: var(--s4) var(--s5);
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}

.value-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.value-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.value-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}


/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s12);
  align-items: start;
}

.contact-info {}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  padding: var(--s5) var(--s6);
  margin-bottom: var(--s4);
}

.contact-detail-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--clay-shadow-sm);
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
}

.contact-detail h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}

.contact-detail p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

.contact-socials {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s6);
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--border-card);
  box-shadow: var(--clay-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--t-base);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--clay-btn);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Form */
.contact-form {
  padding: var(--s8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.form-group {
  margin-bottom: var(--s5);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: var(--s2);
}

.form-input {
  width: 100%;
  padding: 0.75rem var(--s4);
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--t-base);
  box-shadow: var(--clay-shadow-sm);
}

.form-input:hover {
  border-color: var(--primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50), var(--clay-shadow-sm);
}

.form-input::placeholder { color: var(--text-muted); }

textarea.form-input {
  resize: vertical;
  min-height: 130px;
}

.form-select {
  width: 100%;
  padding: 0.75rem var(--s4);
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: var(--clay-shadow-sm);
  -webkit-appearance: none;
  appearance: none;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}


/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-item {
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-card);
  overflow: hidden;
  margin-bottom: var(--s4);
  box-shadow: var(--clay-shadow-sm);
  transition: box-shadow var(--t-base);
}

.faq-item.open {
  box-shadow: var(--clay-shadow);
  border-color: var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--s5) var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--t-base);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-base);
}

.faq-item.open .faq-icon {
  background: var(--primary);
  border-color: transparent;
  transform: rotate(45deg);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-2);
  fill: none;
  stroke-width: 2.5;
  transition: stroke var(--t-base);
}

.faq-item.open .faq-icon svg { stroke: white; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-slow);
  background: var(--surface-alt);
}

.faq-answer-inner {
  padding: 0 var(--s6) var(--s5);
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--s16);
}

[data-theme="dark"] .footer {
  background: #070F09;
  border-top: 1px solid rgba(62, 212, 106, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s10);
  padding-bottom: var(--s12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .nav-logo {
  color: white;
  margin-bottom: var(--s4);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: var(--s5);
}

.footer-socials {
  display: flex;
  gap: var(--s2);
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all var(--t-base);
}

.footer-social:hover {
  background: var(--primary);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--s5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--t-fast);
}

.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  padding-block: var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-copy span { color: var(--primary-light); }

.footer-bottom-links {
  display: flex;
  gap: var(--s5);
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--t-fast);
}

.footer-bottom-links a:hover { color: var(--primary-light); }


/* ================================================================
   FLOATING CTA
   ================================================================ */
.floating-cta {
  position: fixed;
  bottom: var(--s6);
  right: var(--s6);
  z-index: 900;
  animation: floatIn 0.5s 1.5s ease both;
}

.floating-cta-btn {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.75rem 1.4rem;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--clay-btn), 0 0 0 6px rgba(62, 212, 106, 0.12);
  transition: all var(--t-bounce);
  cursor: pointer;
  border: none;
  animation: pulseCta 3s 2s ease infinite;
}

.floating-cta-btn:hover {
  transform: scale(1.06);
  box-shadow: var(--clay-btn-hover);
}

.floating-cta-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}


/* ================================================================
   TECH STACK
   ================================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s4);
}

.tech-item {
  padding: var(--s4) var(--s3);
  text-align: center;
  border-radius: var(--r-md);
  cursor: default;
}

.tech-item:hover { transform: translateY(-4px); }

.tech-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, var(--primary-50), var(--primary-100));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s2);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  font-family: var(--font-display);
  box-shadow: var(--clay-shadow-sm);
}

.tech-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}


/* ================================================================
   PROJECT FILTER
   ================================================================ */
.project-filters {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--s10);
}

.filter-btn {
  padding: var(--s2) var(--s5);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1.5px solid var(--border-card);
  box-shadow: var(--clay-shadow-sm);
  transition: all var(--t-base);
  cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--clay-btn);
}


/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }


/* ================================================================
   KEYFRAME ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes pulseCta {
  0%, 100% { box-shadow: var(--clay-btn), 0 0 0 6px rgba(62, 212, 106, 0.12); }
  50%       { box-shadow: var(--clay-btn), 0 0 0 12px rgba(62, 212, 106, 0.06); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes growUp {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form message */
.form-success {
  display: none;
  text-align: center;
  padding: var(--s8);
  color: var(--primary);
}

.form-success.show { display: block; }

.form-success svg {
  width: 48px;
  height: 48px;
  stroke: var(--primary);
  margin: 0 auto var(--s4);
}


/* ================================================================
   RESPONSIVE — TABLET (max 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s10); }
  .hero-visual { justify-content: center; }
  .hero-dashboard { max-width: 440px; }
  .hero-float-1 { top: -10px; right: 0; }
  .hero-float-2 { bottom: 0; left: 0; }

  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .about-split { grid-template-columns: 1fr; }
  .about-visual { max-width: 480px; margin: 0 auto; }
  .contact-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonial-card { width: calc(50% - var(--s6) / 2); }
}

/* ================================================================
   RESPONSIVE — MOBILE (max 768px)
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    --s20: 3.5rem;
    --s16: 2.75rem;
  }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  /* Hide desktop-only buttons from the header on mobile */
  .nav-actions .theme-toggle,
  .nav-actions > a.btn { display: none; }

  /* Consultation cards: 2-col on mobile */
  .consult-cards { grid-template-columns: repeat(2, 1fr) !important; }

  .hero { min-height: auto; padding-top: var(--nav-h); }
  .hero-inner { padding-block: var(--s12); }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }

  .cta-banner-inner { padding: var(--s10) var(--s6); }
  .cta-banner h2 { font-size: 1.6rem; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s8); }

  .tech-grid { grid-template-columns: repeat(3, 1fr); }

  .testimonial-card { width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr; }

  .floating-cta-btn span { display: none; }
  .floating-cta-btn { padding: 0.85rem; border-radius: 50%; }

  .container { padding-inline: var(--s4); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  /* Consultation cards: 1-col on very small screens */
  .consult-cards { grid-template-columns: 1fr !important; }
}
