/* ═══════════════════════════════════════════════════════════════════
   REFADTECH — style.css
   Production-grade CSS with design tokens, glassmorphism, animations.
   Author: Refadtech Studio
   ═══════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────
   1. DESIGN TOKENS (CSS Custom Properties)
   ─────────────────────────────────────── */
:root {
  /* Colors — base palette (aligned with logo: green, gold, black) */
  --c-bg:           #041510;
  --c-surface:      #0a1e18;
  --c-surface-2:    #0e2820;
  --c-surface-3:    #143528;
  --c-border:       rgba(28, 133, 57, 0.08);
  --c-border-bright: rgba(28, 133, 57, 0.18);

  /* Colors — accents (logo: emerald green + earthy gold) */
  --c-cyan:         #20a040;
  --c-cyan-dim:     rgba(32, 160, 64, 0.12);
  --c-cyan-glow:    rgba(32, 160, 64, 0.28);
  --c-violet:       #b8954e;
  --c-violet-dim:   rgba(184, 149, 78, 0.12);
  --c-violet-glow:  rgba(184, 149, 78, 0.35);
  --c-pink:         #c9a227;
  --c-pink-dim:     rgba(201, 162, 39, 0.12);
  --c-amber:        #d4a84b;

  /* Colors — text (slightly warm, readable on dark) */
  --c-text:         #e8f0ec;
  --c-text-muted:   #8ba898;
  --c-text-dim:     #5a7268;

  /* Typography */
  --font-display:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  /* Arabic font stack (activated via [dir="rtl"]) */
  --font-arabic:    'Cairo', system-ui, sans-serif;

  --fs-xs:    clamp(0.7rem,  1.2vw, 0.75rem);
  --fs-sm:    clamp(0.8rem,  1.4vw, 0.875rem);
  --fs-base:  clamp(0.9rem,  1.6vw, 1rem);
  --fs-md:    clamp(1rem,    1.8vw, 1.125rem);
  --fs-lg:    clamp(1.1rem,  2vw,   1.25rem);
  --fs-xl:    clamp(1.25rem, 2.5vw, 1.5rem);
  --fs-2xl:   clamp(1.5rem,  3vw,   2rem);
  --fs-3xl:   clamp(2rem,    4vw,   2.75rem);
  --fs-4xl:   clamp(2.5rem,  5vw,   3.75rem);
  --fs-5xl:   clamp(3rem,    7vw,   5.5rem);
  --fs-6xl:   clamp(3.5rem,  9vw,   7rem);

  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   800;

  --lh-tight:  1.1;
  --lh-snug:   1.3;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-inout: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast:   150ms;
  --dur-normal: 300ms;
  --dur-slow:   600ms;
  --dur-slower: 900ms;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
  --shadow-xl:   0 16px 60px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 40px var(--c-cyan-glow);
  --shadow-glow-violet: 0 0 40px var(--c-violet-glow);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  /* Grain texture overlay via SVG filter */
  position: relative;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

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

/* Focus styles (accessible) */
:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--c-cyan), var(--c-violet));
  border-radius: 3px;
}

/* Selection */
::selection {
  background: var(--c-cyan-dim);
  color: var(--c-cyan);
}

/* ───────────────────────────────────────
   3. TYPOGRAPHY
   ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.text-gradient {
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-violet) 60%, var(--c-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

em { font-style: italic; color: var(--c-cyan); font-style: normal; }

/* ───────────────────────────────────────
   4. LAYOUT UTILITIES
   ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cyan);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-cyan-dim);
  border-radius: var(--radius-full);
  background: var(--c-cyan-dim);
  margin-bottom: var(--sp-5);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-16);
}

.section-title {
  font-size: var(--fs-4xl);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-5);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
}

/* ───────────────────────────────────────
   5. GLASS CARD
   ─────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* Inner shimmer line on glass cards */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}

/* ───────────────────────────────────────
   6. BUTTONS
   ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75em 1.75em;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: var(--fw-semi);
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-normal) var(--ease-out),
    background var(--dur-normal) var(--ease-out),
    color var(--dur-normal) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Ripple layer */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.97); }

/* Primary */
.btn--primary {
  background: linear-gradient(135deg, var(--c-cyan), var(--c-violet));
  color: #fff;
  border: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--c-cyan-glow);
}

/* Glow variant */
.btn--glow {
  box-shadow: 0 0 20px var(--c-cyan-glow), inset 0 0 20px rgba(32,160,64,0.08);
}

.btn--glow:hover {
  box-shadow: 0 0 40px var(--c-cyan-glow), 0 8px 32px var(--c-violet-glow);
}

/* Ghost */
.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--c-text);
  border: 1px solid var(--c-border-bright);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: translateY(-2px);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--c-cyan);
  border: 1.5px solid var(--c-cyan);
}

.btn--outline:hover {
  background: var(--c-cyan-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--c-cyan-glow);
}

/* Sizes */
.btn--sm  { padding: 0.5em 1.25em; font-size: var(--fs-sm); }
.btn--lg  { padding: 0.9em 2.25em; font-size: var(--fs-md); }
.btn--full { width: 100%; }

/* ───────────────────────────────────────
   7. CUSTOM CURSOR
   ─────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .cursor {
    width: 10px;
    height: 10px;
    background: var(--c-cyan);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
    mix-blend-mode: screen;
  }

  .cursor-follower {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0,217,255,0.5);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
      left 80ms linear,
      top 80ms linear,
      width var(--dur-normal) var(--ease-out),
      height var(--dur-normal) var(--ease-out),
      opacity var(--dur-normal);
  }

  body:hover .cursor { opacity: 1; }

  /* Expand on interactive hover */
  .cursor.cursor--hover { transform: translate(-50%,-50%) scale(0); }
  .cursor-follower.cursor-follower--hover {
    width: 60px;
    height: 60px;
    background: var(--c-cyan-dim);
    border-color: var(--c-cyan);
  }
}

/* ───────────────────────────────────────
   8. NAVIGATION
   ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--sp-5) 0;
  transition:
    padding var(--dur-normal) var(--ease-out),
    background var(--dur-normal) var(--ease-out),
    border-color var(--dur-normal);
  border-bottom: 1px solid transparent;
}

.nav.nav--scrolled {
  padding: var(--sp-3) 0;
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--c-border);
}

.nav__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__logo { flex-shrink: 0; }
.nav__logo-svg { width: 160px; height: 36px; }
.nav__logo-img { height: 36px; width: auto; max-width: 160px; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-left: auto;
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--dur-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-normal) var(--ease-out);
}

.nav__link:hover,
.nav__link.active {
  color: var(--c-text);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta { margin-left: var(--sp-4); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  margin-left: auto;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--dur-normal) var(--ease-out), opacity var(--dur-fast);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 11, 24, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-out);
}

.mobile-menu:not([hidden]) {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-text-muted);
  transition: color var(--dur-fast), transform var(--dur-normal) var(--ease-out);
}

.mobile-menu__link:hover { color: var(--c-text); transform: translateX(8px); }

.mobile-menu__link--cta {
  font-size: var(--fs-lg);
  color: var(--c-cyan);
  border: 1.5px solid var(--c-cyan);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-full);
  margin-top: var(--sp-4);
}

.mobile-menu__link--cta:hover {
  background: var(--c-cyan-dim);
  transform: none;
}

/* ───────────────────────────────────────
   9. SCROLL REVEAL ANIMATION
   ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--dur-slower) var(--ease-out),
    transform var(--dur-slower) var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delay variants */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="250"] { transition-delay: 250ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="350"] { transition-delay: 350ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }
[data-delay="700"] { transition-delay: 700ms; }

/* ───────────────────────────────────────
   10. HERO SECTION
   ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--sp-32) + 80px) var(--container-pad) var(--sp-32);
}

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

.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Radial gradient spotlight */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,217,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(124,58,237,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(255,0,110,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding-inline: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cyan);
  border: 1px solid var(--c-cyan-dim);
  background: rgba(0,217,255,0.06);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-8);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--c-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero__title {
  font-size: var(--fs-6xl);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-8);
  display: flex;
  flex-direction: column;
}

.hero__title-line { display: block; }

.hero__title-line--accent {
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  max-width: 560px;
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-16);
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  width: fit-content;
}

.hero__scroll span {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.hero__scroll-line {
  width: 2px;
  height: 48px;
  background: var(--c-border-bright);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.hero__scroll-dot {
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, var(--c-cyan), transparent);
  border-radius: 1px;
  animation: scroll-slide 2s ease-in-out infinite;
}

@keyframes scroll-slide {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* Floating stat chips */
.hero__chips {
  position: absolute;
  right: var(--container-pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  z-index: 2;
}

.hero__chip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid var(--c-border-bright);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  animation: float var(--dur) ease-in-out infinite alternate;
}

.hero__chip--1 { --dur: 3s; animation-delay: 0s; }
.hero__chip--2 { --dur: 3.5s; animation-delay: 0.5s; }
.hero__chip--3 { --dur: 4s; animation-delay: 1s; }

@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

/* ── CSS 3D Geometric Shapes ── */
.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Rotating 3D Cube */
.shape--cube {
  position: absolute;
  right: 12%;
  top: 20%;
  width: 80px;
  height: 80px;
  transform-style: preserve-3d;
  animation: rotateCube 18s linear infinite;
}

@keyframes rotateCube {
  0%   { transform: rotateX(0) rotateY(0) rotateZ(0); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.shape__face {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(0,217,255,0.3);
  background: rgba(0,217,255,0.02);
}

.shape__face--front  { transform: translateZ(40px); }
.shape__face--back   { transform: translateZ(-40px) rotateY(180deg); }
.shape__face--left   { transform: translateX(-40px) rotateY(-90deg); }
.shape__face--right  { transform: translateX(40px) rotateY(90deg); }
.shape__face--top    { transform: translateY(-40px) rotateX(90deg); }
.shape__face--bottom { transform: translateY(40px) rotateX(-90deg); }

/* Ring */
.shape--ring {
  position: absolute;
  right: 8%;
  bottom: 25%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(124,58,237,0.35);
  border-radius: 50%;
  animation: rotateRing 12s linear infinite;
}

.shape--ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 50%;
}

@keyframes rotateRing {
  to { transform: rotate(360deg) rotateX(60deg); }
}

/* Sphere */
.shape--sphere {
  position: absolute;
  left: 5%;
  top: 30%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0,217,255,0.15), rgba(0,217,255,0.02) 60%);
  border: 1px solid rgba(0,217,255,0.2);
  box-shadow: 0 0 30px rgba(0,217,255,0.1), inset 0 0 20px rgba(0,217,255,0.05);
  animation: floatSphere 8s ease-in-out infinite alternate;
}

@keyframes floatSphere {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-20px) scale(1.05); }
}

/* Diamond */
.shape--diamond {
  position: absolute;
  left: 8%;
  bottom: 30%;
  width: 40px;
  height: 40px;
  background: rgba(255,0,110,0.08);
  border: 1.5px solid rgba(255,0,110,0.3);
  transform: rotate(45deg);
  animation: floatDiamond 10s ease-in-out infinite alternate;
}

@keyframes floatDiamond {
  from { transform: rotate(45deg) translateY(0); }
  to   { transform: rotate(225deg) translateY(-15px); }
}

/* Triangle */
.shape--triangle {
  position: absolute;
  right: 20%;
  bottom: 15%;
  width: 0; height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 43px solid rgba(124,58,237,0.12);
  filter: drop-shadow(0 0 8px rgba(124,58,237,0.3));
  animation: floatTriangle 7s ease-in-out infinite alternate;
}

@keyframes floatTriangle {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-18px) rotate(15deg); }
}

/* ───────────────────────────────────────
   11. ABOUT SECTION
   ─────────────────────────────────────── */
.about {
  padding: var(--sp-32) 0;
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
  align-items: center;
}

.about__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-6);
}

.about__text {
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-5);
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.stat-card {
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  position: relative;
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal);
}

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

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-black);
  color: var(--c-cyan);
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline-block;
}

.stat-card__suffix {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-cyan);
  line-height: 1;
  margin-left: 2px;
}

.stat-card__label {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  font-weight: var(--fw-medium);
}

.stat-card__glow {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet));
  opacity: 0;
  transition: opacity var(--dur-normal);
}

.stat-card:hover .stat-card__glow { opacity: 1; }

/* About decorative SVG */
.about__deco {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  opacity: 0.25;
  pointer-events: none;
  animation: spin 30s linear infinite;
}

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ───────────────────────────────────────
   12. SERVICES (BENTO GRID)
   ─────────────────────────────────────── */
.services {
  padding: var(--sp-32) 0;
  background: var(--c-surface);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-cyan-dim), var(--c-violet-dim), transparent);
}

.services::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-violet-dim), var(--c-cyan-dim), transparent);
}

/* Bento Grid */
.services__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: var(--sp-4);
}

/* First large card spans 2 rows */
.bento-card--large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Wide card spans 2 columns */
.bento-card--wide {
  grid-column: span 2;
}

.bento-card {
  padding: var(--sp-8);
  transition:
    transform var(--dur-normal) var(--ease-out),
    box-shadow var(--dur-normal),
    border-color var(--dur-normal);
  cursor: default;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-border-bright);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0,217,255,0.05);
}

.bento-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-6);
  padding: var(--sp-3);
  background: var(--c-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
}

.bento-card__icon svg { width: 100%; height: 100%; }

.bento-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
  font-family: var(--font-display);
}

.bento-card__text {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-5);
}

.bento-card__image {
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.bento-card__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.bento-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

.bento-card__arrow {
  font-size: var(--fs-xl);
  color: var(--c-cyan);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur-normal), transform var(--dur-normal) var(--ease-out);
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-8);
}

.bento-card:hover .bento-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Accent card variant */
.bento-card--accent {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(0,217,255,0.06));
  border-color: rgba(124,58,237,0.2);
}

.bento-card__number {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-black);
  color: rgba(124,58,237,0.25);
  line-height: 1;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.04em;
}

/* Full solutions list (all delivered solutions) */
.services__full-list {
  margin-top: var(--sp-16);
  padding-top: var(--sp-12);
  border-top: 1px solid var(--c-border);
}
.services__list-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  margin-bottom: var(--sp-6);
  text-align: center;
}
.services__list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: center;
}
.services__list-item {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  white-space: nowrap;
}

/* ───────────────────────────────────────
   13. PRODUCTS SECTION
   ─────────────────────────────────────── */
.products {
  padding: var(--sp-32) 0;
  overflow: hidden;
}

.products__carousel-wrapper {
  position: relative;
  overflow: hidden;
  direction: ltr;
}

.products__carousel {
  display: flex;
  gap: 0;
  transition: transform var(--dur-slower) var(--ease-out);
  will-change: transform;
  width: 300%;
  direction: ltr;
}

.product-slide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  flex: 0 0 33.333%;
  min-width: 0;
  padding: var(--sp-4) 0;
}

/* Product Mockup Frame */
.mockup-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--c-border-bright);
  background: var(--c-surface);
}

.mockup-frame__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
}

.mockup-frame__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mockup-frame__dot--red    { background: #ff5f57; }
.mockup-frame__dot--yellow { background: #ffbd2e; }
.mockup-frame__dot--green  { background: #28c840; }

.mockup-frame__url {
  font-size: 11px;
  color: var(--c-text-dim);
  font-family: 'Courier New', monospace;
  margin-left: var(--sp-3);
}

.mockup-frame__screen {
  height: 340px;
  position: relative;
  overflow: hidden;
  padding: var(--sp-4);
}

/* Refad slide: full-bleed image with bottom caption */
.mockup-screen--refad {
  padding: 0;
  background: var(--c-surface);
}

.mockup-screen--matrix {
  padding: 0;
  background: var(--c-surface);
}

.mockup-screen--snext {
  padding: 0;
  background: var(--c-surface);
}

.mockup-screen__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mockup-screen__refad-caption {
  pointer-events: none;
}

/* Mockup screen 1: Dashboard */
.mockup-screen--1 {
  display: flex;
  gap: var(--sp-3);
  background: #080f20;
}

.mockup-screen__sidebar {
  width: 48px;
  background: var(--c-surface-2);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.ms-logo {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-violet));
  border-radius: 6px;
  margin-bottom: var(--sp-3);
}

.ms-nav-item {
  height: 6px;
  background: var(--c-border-bright);
  border-radius: 3px;
  opacity: 0.5;
}

.ms-nav-item--active {
  background: var(--c-cyan);
  opacity: 0.8;
  height: 6px;
}

.mockup-screen__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.ms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ms-title { height: 10px; width: 100px; background: var(--c-border-bright); border-radius: 4px; }
.ms-badge { height: 18px; width: 60px; background: var(--c-cyan-dim); border: 1px solid var(--c-cyan); border-radius: 9px; }

.ms-charts { display: flex; gap: var(--sp-3); flex: 1; }
.ms-chart { border-radius: var(--radius-sm); border: 1px solid var(--c-border); flex: 1; position: relative; overflow: hidden; }

.ms-chart--bar { background: var(--c-surface-3); }
.ms-chart--bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,217,255,0.3), transparent);
  clip-path: polygon(0 100%, 10% 60%, 20% 75%, 35% 40%, 50% 55%, 65% 30%, 80% 45%, 100% 20%, 100% 100%);
}

.ms-chart--line { background: var(--c-surface-3); }
.ms-chart--line::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(124,58,237,0.3), transparent);
  clip-path: polygon(0 100%, 0 80%, 20% 50%, 40% 65%, 60% 35%, 80% 50%, 100% 20%, 100% 100%);
}

.ms-cards { display: flex; gap: var(--sp-2); }
.ms-card {
  flex: 1; height: 50px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface-3);
}
.ms-card--1 { border-top: 2px solid var(--c-cyan); }
.ms-card--2 { border-top: 2px solid var(--c-violet); }
.ms-card--3 { border-top: 2px solid var(--c-pink); }

/* Mockup screen 2: Flow canvas */
.mockup-screen--2 { background: #070e1d; }

.mockup-screen__canvas-nodes {
  position: relative;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  width: 60px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.node--trigger {
  left: 10%; top: 30%;
  border-color: var(--c-cyan);
  background: var(--c-cyan-dim);
  color: var(--c-cyan);
}

.node--process {
  left: 40%; top: 30%;
  border-color: var(--c-violet);
  background: var(--c-violet-dim);
  color: #b794f4;
}

.node--output {
  left: 70%; top: 30%;
  border-color: #28c840;
  background: rgba(40,200,64,0.1);
  color: #28c840;
}

.node--branch {
  left: 40%; top: 65%;
  border-color: var(--c-amber);
  background: rgba(251,191,36,0.1);
  color: var(--c-amber);
  width: 50px; height: 50px;
  border-radius: 50%;
}

.node-line {
  position: absolute;
  height: 1.5px;
  background: var(--c-border-bright);
  top: calc(30% + 18px);
}

.node-line--1 { left: calc(10% + 60px); width: calc(30% - 60px); }
.node-line--2 { left: calc(40% + 60px); width: calc(30% - 60px); }

/* Mockup screen 3: Security */
.mockup-screen--3 { background: #060c1a; }

.shield-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-4);
  gap: var(--sp-5);
}

.shield-ui__score {
  position: relative;
  width: 100px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--c-surface-3);
  border-top-color: #28c840;
  border-right-color: #28c840;
  border-bottom-color: #28c840;
}

.shield-score-text {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  color: #28c840;
}

.shield-ui__alerts { width: 100%; display: flex; flex-direction: column; gap: var(--sp-2); }

.alert-row {
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.alert-row--safe {
  background: rgba(40,200,64,0.08);
  border-color: rgba(40,200,64,0.3);
}

.alert-row--warn {
  background: rgba(251,191,36,0.08);
  border-color: rgba(251,191,36,0.3);
}

/* Mockup screen 4: API */
.mockup-screen--4 { background: #060c18; padding: var(--sp-5); }

.api-ui { display: flex; flex-direction: column; gap: var(--sp-3); }

.api-endpoint {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-family: 'Courier New', monospace;
  font-weight: bold;
  border: 1px solid;
}

.api-endpoint--get {
  color: #28c840; border-color: rgba(40,200,64,0.3); background: rgba(40,200,64,0.06);
}
.api-endpoint--post {
  color: var(--c-cyan); border-color: var(--c-cyan-dim); background: rgba(0,217,255,0.06);
}
.api-endpoint--put {
  color: var(--c-amber); border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.06);
}

.api-response {
  height: 120px;
  background: var(--c-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 18px,
    var(--c-border) 18px,
    var(--c-border) 19px
  );
}

/* Product info panel */
.product-slide__info { padding: var(--sp-4) 0; }

.product-slide__tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-violet);
  display: block;
  margin-bottom: var(--sp-4);
}

.product-slide__title {
  font-size: var(--fs-4xl);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  margin-bottom: var(--sp-5);
}

.product-slide__desc {
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-6);
}

.product-slide__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.product-slide__features li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.product-slide__features li::before {
  content: '▹';
  color: var(--c-cyan);
  flex-shrink: 0;
}

/* Carousel controls */
.products__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--c-border-bright);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast);
}

.carousel-btn:hover {
  background: var(--c-cyan-dim);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: scale(1.1);
}

.carousel-dots { display: flex; gap: var(--sp-2); }

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--c-border-bright);
  transition: width var(--dur-normal) var(--ease-out), background var(--dur-normal);
}

.carousel-dot.active {
  width: 28px;
  background: var(--c-cyan);
}

/* ───────────────────────────────────────
   14. WHY US SECTION
   ─────────────────────────────────────── */
.why-us {
  padding: var(--sp-32) 0;
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}

.why-us__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 16rem);
  font-weight: var(--fw-black);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.015);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.why-us__header {
  max-width: 680px;
  margin-bottom: var(--sp-20);
}

.why-us__title {
  font-size: var(--fs-5xl);
  margin-top: var(--sp-4);
}

.why-us__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-20);
}

.why-card {
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,0.02);
  transition: transform var(--dur-normal) var(--ease-out), border-color var(--dur-normal);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-cyan-dim), transparent);
  opacity: 0;
  transition: opacity var(--dur-normal);
}

.why-card:hover { transform: translateY(-6px); border-color: var(--c-border-bright); }
.why-card:hover::before { opacity: 1; }

.why-card__number {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  color: rgba(0,217,255,0.15);
  margin-bottom: var(--sp-4);
  line-height: 1;
}

.why-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
}

.why-card__text {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
}

.why-us__statement {
  border: 1px solid var(--c-border-bright);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-12);
  text-align: center;
  background: rgba(255,255,255,0.02);
  font-size: var(--fs-2xl);
  color: var(--c-text-muted);
}

.why-us__statement strong { color: var(--c-cyan); font-weight: var(--fw-bold); }

/* ───────────────────────────────────────
   15. TESTIMONIALS (INFINITE MARQUEE)
   ─────────────────────────────────────── */
.testimonials {
  padding: var(--sp-32) 0;
  overflow: hidden;
}

.testimonials__hint {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--c-text-dim);
  margin-top: var(--sp-6);
  letter-spacing: 0.08em;
}

.testimonials__marquee {
  position: relative;
  margin-top: var(--sp-10);
  /* Fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testimonials__track {
  display: flex;
  gap: var(--sp-5);
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.testimonials__track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testi-card {
  min-width: 360px;
  max-width: 360px;
  padding: var(--sp-8);
  flex-shrink: 0;
}

.testi-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.testi-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.testi-card__name {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
}

.testi-card__role {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-dim);
}

.testi-card__stars {
  margin-left: auto;
  color: var(--c-amber);
  font-size: var(--fs-xs);
  letter-spacing: 1px;
}

.testi-card__text {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
  font-style: italic;
}

/* ───────────────────────────────────────
   16. CONTACT SECTION
   ─────────────────────────────────────── */
.contact {
  padding: var(--sp-32) 0;
  background: var(--c-surface);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-violet-dim), var(--c-cyan-dim), transparent);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-20);
  align-items: start;
}

.contact__title {
  font-size: var(--fs-4xl);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.contact__desc {
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-10);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact__detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast);
}

a.contact__detail-item:hover { background: rgba(255,255,255,0.03); }

.contact__detail-icon {
  width: 40px; height: 40px;
  padding: var(--sp-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--c-cyan);
}

.contact__detail-icon svg { width: 100%; height: 100%; }

.contact__detail-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact__detail-value {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

/* Form */
.contact__form {
  padding: var(--sp-10);
  position: relative;
}

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

.form-group {
  position: relative;
  margin-bottom: var(--sp-5);
}

/* Floating label inputs */
.form-input {
  width: 100%;
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  color: var(--c-text);
  font-size: var(--fs-base);
  transition:
    border-color var(--dur-normal),
    box-shadow var(--dur-normal),
    background var(--dur-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

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

.form-input:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px var(--c-cyan-dim);
  background: var(--c-surface-3);
}

/* Floating label */
.form-label {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-5);
  font-size: var(--fs-base);
  color: var(--c-text-dim);
  pointer-events: none;
  transition:
    top var(--dur-normal) var(--ease-out),
    font-size var(--dur-normal) var(--ease-out),
    color var(--dur-normal);
}

/* Float label when input has value or is focused */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-cyan);
  letter-spacing: 0.06em;
}

.form-label--select { top: 50%; transform: translateY(-50%); }

.form-input:focus ~ .form-label--select,
.form-input:not([value=""]):not([value]) ~ .form-label--select,
select.form-input:has(option:checked:not([value=""])) ~ .form-label--select {
  top: var(--sp-2);
  transform: none;
  font-size: var(--fs-xs);
  color: var(--c-cyan);
}

select.form-input { padding-top: var(--sp-5); cursor: pointer; }
select.form-input option { background: var(--c-surface-2); color: var(--c-text); }

.form-textarea { resize: vertical; min-height: 120px; padding-top: var(--sp-5); }

/* Error state */
.form-group.error .form-input {
  border-color: var(--c-pink);
  box-shadow: 0 0 0 3px var(--c-pink-dim);
}

.form-group.error .form-label { color: var(--c-pink); }

.form-error {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-pink);
  margin-top: var(--sp-1);
  min-height: 1em;
  padding-left: var(--sp-1);
}

/* Success state */
.form-group.success .form-input {
  border-color: #28c840;
}

/* Submit button loader */
.btn__loader {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-loader 0.6s linear infinite;
}

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

.btn.loading .btn__text { display: none; }
.btn.loading .btn__loader { display: block; }

/* Success message */
.form-success {
  text-align: center;
  padding: var(--sp-10);
}

.form-success__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(40,200,64,0.15);
  border: 2px solid #28c840;
  color: #28c840;
  font-size: var(--fs-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}

.form-success strong {
  display: block;
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}

.form-success p { color: var(--c-text-muted); }

/* ───────────────────────────────────────
   17. FOOTER
   ─────────────────────────────────────── */
.footer {
  padding: var(--sp-20) 0 var(--sp-10);
  position: relative;
  background: var(--c-bg);
}

.footer__gradient-border {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-cyan) 20%,
    var(--c-violet) 50%,
    var(--c-pink) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-16);
}

.footer__logo { display: block; margin-bottom: var(--sp-5); }
.footer__logo svg { width: 160px; height: 36px; }
.footer__logo-img { width: 160px; height: 36px; object-fit: contain; display: block; }

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-6);
  font-style: italic;
}

.footer__social {
  display: flex;
  gap: var(--sp-3);
}

.footer__social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-dim);
  transition:
    color var(--dur-fast),
    border-color var(--dur-fast),
    background var(--dur-fast),
    transform var(--dur-fast);
}

.footer__social-link svg { width: 16px; height: 16px; }

.footer__social-link:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: var(--c-cyan-dim);
  transform: translateY(-2px);
}

.footer__col-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: var(--sp-5);
  font-family: var(--font-body);
}

.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }

.footer__link {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  transition: color var(--dur-fast), transform var(--dur-fast);
  display: inline-block;
}

.footer__link:hover { color: var(--c-text); transform: translateX(4px); }

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--c-text-dim);
}

.footer__legal { display: flex; gap: var(--sp-6); }

.footer__legal-link {
  font-size: var(--fs-xs);
  color: var(--c-text-dim);
  transition: color var(--dur-fast);
}

.footer__legal-link:hover { color: var(--c-text-muted); }

/* ───────────────────────────────────────
   18. BACK TO TOP
   ─────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  z-index: 500;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid var(--c-border-bright);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--dur-normal) var(--ease-out),
    opacity var(--dur-normal),
    background var(--dur-fast),
    color var(--dur-fast);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.back-to-top:not([hidden]) {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--c-cyan-dim);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: translateY(-4px);
}

/* ───────────────────────────────────────
   19. RESPONSIVE BREAKPOINTS
   ─────────────────────────────────────── */

/* Tablet landscape: ≤ 1200px */
@media (max-width: 1200px) {
  .services__bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-card--wide {
    grid-column: span 2;
  }

  .why-us__features {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
  }
}

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta { display: none; }

  .nav__toggle { display: flex; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }

  .about__deco { display: none; }

  .product-slide {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }

  .hero__chips { display: none; }

  .hero__title { font-size: clamp(2.5rem, 9vw, 5rem); }

  .why-us__title { font-size: clamp(2.5rem, 6vw, 4rem); }
}

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
  .about__stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
  }

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

  .bento-card--large,
  .bento-card--wide {
    grid-column: span 1;
  }

  .why-us__features {
    grid-template-columns: 1fr;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .footer__legal { flex-wrap: wrap; gap: var(--sp-4); }

  .hero__actions { flex-direction: column; align-items: flex-start; }

  .hero__actions .btn { width: 100%; justify-content: center; }

  .testi-card { min-width: 300px; max-width: 300px; }

  .why-us__statement { padding: var(--sp-8); }
}

/* ───────────────────────────────────────
   20. ACCESSIBILITY & REDUCED MOTION
   ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__scroll-dot,
  .hero__badge-dot,
  .testimonials__track,
  .shape--cube,
  .shape--ring,
  .shape--sphere,
  .shape--diamond,
  .shape--triangle,
  .about__deco,
  .footer__gradient-border {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

/* Print styles */
@media print {
  .nav, .hero__canvas, .hero__shapes, .cursor, .cursor-follower,
  .back-to-top, .testimonials__marquee { display: none; }
  body { background: white; color: black; }
}

/* ═══════════════════════════════════════════════════════════════════
   21. LANGUAGE TOGGLE BUTTON
   ═══════════════════════════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--c-border-bright);
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast),
    transform var(--dur-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.lang-toggle:hover {
  border-color: var(--c-cyan);
  background: var(--c-cyan-dim);
  transform: scale(1.03);
}

.lang-toggle__option {
  transition: color var(--dur-fast), font-weight var(--dur-fast);
  color: var(--c-text-dim);
}

.lang-toggle__option.active {
  color: var(--c-cyan);
  font-weight: var(--fw-bold);
}

.lang-toggle__sep {
  color: var(--c-border-bright);
  font-weight: 300;
}

/* Mobile lang toggle */
.mobile-menu__lang-row {
  margin-bottom: var(--sp-8);
}

.lang-toggle--mobile {
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-6);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════════
   22. RTL / ARABIC LANGUAGE SUPPORT  [dir="rtl"]
   ═══════════════════════════════════════════════════════════════════ */

/* Switch to Arabic font stack */
[dir="rtl"] {
  --font-display: 'Cairo', system-ui, sans-serif;
  --font-body:    'Cairo', system-ui, sans-serif;
}

/* Remove letter-spacing for Arabic (it doesn't suit Arabic script) */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .section-tag,
[dir="rtl"] .hero__badge,
[dir="rtl"] .hero__title,
[dir="rtl"] .btn,
[dir="rtl"] .nav__link,
[dir="rtl"] .footer__col-title {
  letter-spacing: 0;
}

/* Slightly larger line-height for Arabic */
[dir="rtl"] p,
[dir="rtl"] .about__text,
[dir="rtl"] .hero__subtitle,
[dir="rtl"] .bento-card__text,
[dir="rtl"] .product-slide__desc,
[dir="rtl"] .why-card__text,
[dir="rtl"] .contact__desc {
  line-height: 1.9;
}

/* ── Navigation RTL ── */
[dir="rtl"] .nav__logo,
[dir="rtl"] .nav__logo .nav__logo-svg,
[dir="rtl"] .nav__logo .nav__logo-img {
  direction: ltr;
}

[dir="rtl"] .nav__links {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .nav__cta {
  margin-left: 0;
  margin-right: var(--sp-4);
}

[dir="rtl"] .nav__toggle {
  margin-left: 0;
  margin-right: auto;
}

/* ── Hero RTL ── */
[dir="rtl"] .hero__content {
  text-align: right;
}

[dir="rtl"] .hero__badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero__actions {
  flex-direction: row-reverse;
}

/* Flip the arrow icon in buttons */
[dir="rtl"] .btn-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .hero__chips {
  right: auto;
  left: var(--container-pad);
}

[dir="rtl"] .hero__chip {
  flex-direction: row-reverse;
}

/* ── About RTL ── */
[dir="rtl"] .about__content {
  text-align: right;
}

[dir="rtl"] .about__deco {
  right: auto;
  left: -80px;
  transform: translateY(-50%) scaleX(-1);
}

[dir="rtl"] .about__stats {
  direction: ltr; /* keep number counters LTR */
}

[dir="rtl"] .stat-card {
  align-items: flex-end;
  direction: ltr;
}

/* ── Services / Bento RTL ── */
[dir="rtl"] .bento-card {
  text-align: right;
}

[dir="rtl"] .bento-card__tags {
  justify-content: flex-end;
}

[dir="rtl"] .bento-card__arrow {
  right: auto;
  left: var(--sp-8);
  transform: scaleX(-1);
}

/* ── Section header RTL ── */
[dir="rtl"] .section-header {
  text-align: right;
}

/* ── Product slides RTL (carousel track stays LTR for correct sliding) ── */
[dir="rtl"] .product-slide {
  direction: rtl;
}

[dir="rtl"] .product-slide__info {
  text-align: right;
}

[dir="rtl"] .product-slide__features {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .product-slide__features li {
  direction: rtl;
  text-align: right;
}

/* ── Why Us RTL ── */
[dir="rtl"] .why-us__header {
  text-align: right;
}

[dir="rtl"] .why-card {
  text-align: right;
}

[dir="rtl"] .why-us__statement {
  text-align: center; /* stays centered */
}

/* ── Contact RTL ── */
[dir="rtl"] .contact__info {
  text-align: right;
}

[dir="rtl"] .contact__detail-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact__detail-item > div:last-child {
  text-align: right;
}

[dir="rtl"] .contact__detail-value {
  direction: ltr;
  unicode-bidi: embed;
  text-align: right;
}

/* Floating labels in RTL */
[dir="rtl"] .form-label {
  left: auto;
  right: var(--sp-5);
}

[dir="rtl"] .form-input:focus ~ .form-label,
[dir="rtl"] .form-input:not(:placeholder-shown) ~ .form-label {
  right: var(--sp-5);
  left: auto;
}

[dir="rtl"] .form-input {
  text-align: right;
  direction: rtl;
}

/* Keep email/URL inputs LTR even in Arabic layout */
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="tel"] {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .form-error {
  padding-left: 0;
  padding-right: var(--sp-1);
  text-align: right;
}

/* ── Footer RTL ── */
[dir="rtl"] .footer__brand {
  text-align: right;
}

[dir="rtl"] .footer__social {
  justify-content: flex-end;
}

[dir="rtl"] .footer__col {
  text-align: right;
}

[dir="rtl"] .footer__link:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .footer__bottom {
  flex-direction: row-reverse;
}

/* ── Mobile menu RTL ── */
[dir="rtl"] .mobile-menu__link:hover {
  transform: translateX(-8px);
}

/* ── Back to top: flip side in RTL ── */
[dir="rtl"] .back-to-top {
  right: auto;
  left: var(--sp-8);
}

/* ── Testimonials: always LTR (client quotes in English) ── */
.testimonials__track {
  direction: ltr;
}

/* ── Carousel buttons: swap in RTL ── */
[dir="rtl"] .carousel-btn--prev svg,
[dir="rtl"] .carousel-btn--next svg {
  transform: scaleX(-1);
}

/* ── Arabic font size boost for hero title ──
   Cairo renders slightly compact at display sizes */
[dir="rtl"] .hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
}

[dir="rtl"] .why-us__title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
}

/* ── Language toggle: active state reflects direction ── */
[dir="rtl"] .lang-toggle__option[data-lang="ar"] { color: var(--c-cyan); font-weight: var(--fw-bold); }
[dir="rtl"] .lang-toggle__option[data-lang="en"] { color: var(--c-text-dim); font-weight: var(--fw-regular); }

/* ── Responsive: hide chips on mobile regardless of RTL ── */
@media (max-width: 900px) {
  [dir="rtl"] .hero__chips { display: none; }
  [dir="rtl"] .about__deco { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   23. THEME TOGGLE BUTTON
   ═══════════════════════════════════════════════════════════════════ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-border-bright);
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-text-muted);
  justify-content: center;
  transition:
    background  var(--dur-fast),
    border-color var(--dur-fast),
    color       var(--dur-fast),
    transform   var(--dur-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--c-cyan-dim);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: scale(1.1) rotate(15deg);
}

/* Only sun is visible by default (dark mode → clicking goes light) */
.theme-icon--moon { display: none; }

/* In light mode: show moon, hide sun */
[data-theme="light"] .theme-icon--sun  { display: none; }
[data-theme="light"] .theme-icon--moon { display: block; }

/* Mobile variant */
.theme-toggle--mobile {
  width: auto;
  height: auto;
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-5);
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
}

.theme-toggle__label { font-size: var(--fs-sm); }

/* ═══════════════════════════════════════════════════════════════════
   24. LIGHT THEME  [data-theme="light"]
   Overrides only the tokens and elements that differ from dark.
   ═══════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  /* ── Color tokens (aligned with logo: green + gold) ── */
  --c-bg:            #f2f7f2;
  --c-surface:       #ffffff;
  --c-surface-2:     #e8f0ea;
  --c-surface-3:     #dce8e2;
  --c-border:        rgba(28, 133, 57, 0.1);
  --c-border-bright: rgba(28, 133, 57, 0.18);

  /* Accent colours: logo-aligned for light-bg contrast */
  --c-cyan:          #167534;
  --c-cyan-dim:      rgba(22, 117, 52, 0.12);
  --c-cyan-glow:     rgba(22, 117, 52, 0.2);
  --c-violet:        #8b6914;
  --c-violet-dim:    rgba(139, 105, 20, 0.1);
  --c-violet-glow:   rgba(139, 105, 20, 0.22);
  --c-pink:          #a67c00;
  --c-pink-dim:      rgba(166, 124, 0, 0.1);
  --c-amber:         #b8860b;

  /* Text */
  --c-text:          #0c1912;
  --c-text-muted:    #3d5548;
  --c-text-dim:      #5a6b62;

  /* Shadows: visible on light backgrounds */
  --shadow-sm:   0 1px 3px  rgba(15, 40, 25, 0.08);
  --shadow-md:   0 4px 20px rgba(15, 40, 25, 0.10);
  --shadow-lg:   0 8px 40px rgba(15, 40, 25, 0.12);
  --shadow-xl:   0 16px 60px rgba(15, 40, 25, 0.14);
  --shadow-glow: 0 0 40px rgba(22, 117, 52, 0.18);
  --shadow-glow-violet: 0 0 40px rgba(139, 105, 20, 0.2);
}

/* ── Body / base ── */
[data-theme="light"] body::before { opacity: 0.012; }

[data-theme="light"]::selection {
  background: var(--c-cyan-dim);
  color: var(--c-cyan);
}

[data-theme="light"]::-webkit-scrollbar-track { background: #f2f7f2; }

/* ── Navigation ── */
[data-theme="light"] .nav.nav--scrolled {
  background: rgba(242, 247, 242, 0.92);
  border-bottom-color: var(--c-border);
}

[data-theme="light"] .theme-toggle {
  background: rgba(15, 40, 25, 0.04);
}

[data-theme="light"] .theme-toggle:hover {
  background: var(--c-cyan-dim);
}

/* ── Mobile menu ── */
[data-theme="light"] .mobile-menu {
  background: rgba(242, 247, 242, 0.98);
}

/* ── Hero section ── */
[data-theme="light"] .hero::after {
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(22, 117, 52, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(139, 105, 20, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(166, 124, 0, 0.04) 0%, transparent 60%);
}

[data-theme="light"] .hero__badge {
  background: rgba(22, 117, 52, 0.1);
  border-color: rgba(22, 117, 52, 0.25);
}

[data-theme="light"] .hero__chip {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 40, 25, 0.12);
  box-shadow: 0 2px 12px rgba(15, 40, 25, 0.08);
}

/* ── CSS shapes in light mode ── */
[data-theme="light"] .shape__face {
  border-color: rgba(22, 117, 52, 0.2);
  background:   rgba(22, 117, 52, 0.03);
}

[data-theme="light"] .shape--ring {
  border-color: rgba(139, 105, 20, 0.22);
}
[data-theme="light"] .shape--ring::before {
  border-color: rgba(139, 105, 20, 0.12);
}

[data-theme="light"] .shape--sphere {
  background: radial-gradient(circle at 35% 35%, rgba(22,117,52,0.2), rgba(22,117,52,0.03) 60%);
  border-color: rgba(22, 117, 52, 0.18);
  box-shadow: 0 0 20px rgba(22,117,52,0.08);
}

[data-theme="light"] .shape--diamond {
  background:   rgba(201, 162, 39, 0.06);
  border-color: rgba(201, 162, 39, 0.2);
}

[data-theme="light"] .shape--triangle {
  border-bottom-color: rgba(139, 105, 20, 0.12);
  filter: drop-shadow(0 0 6px rgba(139, 105, 20, 0.18));
}

/* ── Glass cards ── */
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--c-border);
  box-shadow: 0 4px 24px rgba(15, 40, 25, 0.07), inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-theme="light"] .glass-card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
}

/* ── Buttons ── */
[data-theme="light"] .btn--ghost {
  background: rgba(15, 40, 25, 0.06);
  border-color: var(--c-border-bright);
}

[data-theme="light"] .btn--ghost:hover {
  background: rgba(15, 40, 25, 0.1);
}

/* ── Section tags ── */
[data-theme="light"] .section-tag {
  background: rgba(22, 117, 52, 0.1);
  border-color: rgba(22, 117, 52, 0.25);
}

/* ── About section ── */
[data-theme="light"] .about__deco { opacity: 0.12; }

/* ── Services / Bento ── */
[data-theme="light"] .services::before,
[data-theme="light"] .services::after { opacity: 0.5; }

[data-theme="light"] .bento-card { background: rgba(255,255,255,0.6); }

[data-theme="light"] .bento-card--accent {
  background: linear-gradient(135deg, rgba(139,105,20,0.06), rgba(22,117,52,0.05));
  border-color: rgba(139, 105, 20, 0.14);
}

[data-theme="light"] .bento-card__number {
  color: rgba(139, 105, 20, 0.12);
}

[data-theme="light"] .tag {
  background: var(--c-surface-3);
  border-color: var(--c-border);
  color: var(--c-text-muted);
}

/* ── Stat cards ── */
[data-theme="light"] .stat-card { background: rgba(255,255,255,0.85); }

/* ── Why Us ── */
[data-theme="light"] .why-us__bg-text { color: rgba(15, 40, 25, 0.03); }

[data-theme="light"] .why-card {
  background: rgba(255,255,255,0.7);
  border-color: var(--c-border);
}

[data-theme="light"] .why-card__number { color: rgba(22, 117, 52, 0.14); }

[data-theme="light"] .why-us__statement {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--c-border-bright);
}

/* ── Testimonials ── */
[data-theme="light"] .testi-card__text { color: var(--c-text-muted); }

/* ── Contact form ── */
[data-theme="light"] .form-input {
  background: var(--c-surface-2);
  border-color: var(--c-border-bright);
  color: var(--c-text);
}

[data-theme="light"] .form-input:hover { border-color: rgba(15,40,25,0.28); }

[data-theme="light"] .form-input:focus {
  background: #ffffff;
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px var(--c-cyan-dim);
}

[data-theme="light"] select.form-input option {
  background: var(--c-surface);
  color: var(--c-text);
}

[data-theme="light"] .contact__detail-icon {
  background: var(--c-surface-2);
}

/* ── Footer ── */
[data-theme="light"] .footer { background: var(--c-surface); }

[data-theme="light"] .footer__bottom { border-top-color: var(--c-border); }

/* ── Back to top ── */
[data-theme="light"] .back-to-top {
  background: rgba(15, 40, 25, 0.08);
  border-color: var(--c-border-bright);
  color: var(--c-text-muted);
}

[data-theme="light"] .back-to-top:hover {
  background: var(--c-cyan-dim);
  color: var(--c-cyan);
}

/* ── Smooth theme transition on key properties ── */
body,
.nav,
.glass-card,
.bento-card,
.why-card,
.stat-card,
.form-input,
.footer,
.mobile-menu,
.hero__chip,
.tag {
  transition:
    background-color 350ms ease,
    border-color     350ms ease,
    color            350ms ease,
    box-shadow       350ms ease;
}
