/* ============================================================================
   XEVEN SYSTEMS — Main Stylesheet
   Version: 1.0

   Table of Contents:
   1.  CSS Variables / Design Tokens
   2.  Reset & Base Styles
   3.  Container & Layout
   4.  Navigation
   5.  Hero Section
   6.  Trusted Section
   7.  Section Labels & Headers
   8.  Solutions Section
   9.  Products Section
   10. Why Xeven Section
   11. Case Studies Section
   12. Testimonials Section
   13. CTA Section
   14. Footer
   15. Buttons
   16. Mobile Menu
   17. Demo Modal
   18. Form Styles
   19. Toast / Notification
   20. Inner Page Styles
   21. Animations
   22. Responsive Breakpoints
   ============================================================================ */


/* ============================================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ============================================================================ */

:root {
  /* ===== PRIMARY COLORS ===== */
  --primary-50: #ECFDF6;
  --primary-100: #D1FAE9;
  --primary-200: #A7F3D5;
  --primary-300: #6EE7BC;
  --primary-400: #34D89E;
  --primary-500: #2FC490;  /* MAIN BRAND COLOR */
  --primary-600: #1E9B6E;
  --primary-700: #1A7A5A;
  --primary-800: #186149;
  --primary-900: #16503D;

  /* ===== COOL NEUTRALS (Dark Mode) ===== */
  --neutral-950: #030303;
  --neutral-900: #0A0A0A;  /* MAIN DARK BACKGROUND */
  --neutral-800: #111111;
  --neutral-700: #1A1A1A;
  --neutral-600: #2A2A2A;
  --neutral-500: #444444;
  --neutral-400: #666666;
  --neutral-300: #888888;
  --neutral-200: #AAAAAA;
  --neutral-100: #D4D4D4;
  --neutral-50: #F5F5F5;
  --neutral-0: #FFFFFF;

  /* ===== WARM NEUTRALS (Light Mode) ===== */
  --warm-50: #FAF9F7;   /* MAIN LIGHT BACKGROUND */
  --warm-100: #F5F3EF;
  --warm-200: #EEECE2;
  --warm-300: #E2DFD5;
  --warm-400: #C4C0B5;
  --warm-500: #9A958B;
  --warm-600: #7A756C;
  --warm-700: #5C5850;
  --warm-800: #3D3A35;
  --warm-900: #252320;

  /* ===== SEMANTIC COLORS ===== */
  --success-light: #E8F5F0;
  --success: #4A9E82;
  --success-dark: #2D6B56;

  --warning-light: #FAF0EB;
  --warning: #DA7756;
  --warning-dark: #BD5D3A;

  --error-light: #F8EEEC;
  --error: #C26256;
  --error-dark: #9E4A40;  /* USE FOR NEGATIVE METRICS */

  --info-light: #EEF1F5;
  --info: #6B7A8F;
  --info-dark: #4A5568;

  /* ===== ACCENT COLORS (Charts/Data Viz) ===== */
  --accent-terracotta: #DA7756;
  --accent-sage: #7D9A8B;
  --accent-slate: #6B7A8F;
  --accent-sand: #B8A898;

  /* ===== TYPOGRAPHY ===== */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* ===== FONT SIZES ===== */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* ===== FONT WEIGHTS ===== */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* ===== SPACING ===== */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* ===== BORDER RADIUS ===== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* ===== SHADOWS (Dark Mode) ===== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(47, 196, 144, 0.15);
  --shadow-glow-lg: 0 0 60px rgba(47, 196, 144, 0.2);

  /* ===== SHADOWS (Light Mode) ===== */
  --shadow-light-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-light-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-light-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
  --shadow-light-xl: 0 24px 48px rgba(0, 0, 0, 0.12);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* ===== LAYOUT ===== */
  --max-width: 1280px;
  --container-padding: var(--space-6);
}


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

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--neutral-900);
  color: var(--neutral-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}


/* ============================================================================
   3. CONTAINER & LAYOUT
   ============================================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================================================
   4. NAVIGATION
   ============================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neutral-700);
  padding: 12px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-logo-mark {
  width: 56px;
  height: 56px;
}

.nav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.nav-logo span {
  color: var(--primary-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-300);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--neutral-0);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--neutral-0);
}

.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary-500);
  color: var(--neutral-900);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
}

.nav-cta:hover {
  background: var(--primary-400);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neutral-0);
  transition: all 0.3s ease;
  display: block;
}


/* ============================================================================
   5. HERO SECTION
   ============================================================================ */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--neutral-900);
}

.hero > .container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 196, 144, 0.1);
  border: 1px solid rgba(47, 196, 144, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary-400);
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 50%;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  white-space: nowrap;
}

.hero-title .highlight {
  color: var(--primary-500);
}

.hero-title .highlight-block {
  color: var(--primary-500);
  display: block;
  white-space: nowrap;
}

/* Hero Word-by-Word Animation */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroWordIn 0.5s ease forwards;
  animation-delay: calc(var(--word-index) * 0.3s);
}

@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal rest of hero after words finish */
.hero-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: heroRevealIn 0.6s ease forwards;
  animation-delay: 1.3s;
}

@keyframes heroRevealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--neutral-200);
  line-height: 1.7;
  margin-bottom: 70px;
  max-width: 620px;
}

/* Hero Features Grid */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(47, 196, 144, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  flex-shrink: 0;
}

.hero-feature span {
  font-size: 1.1rem;
  color: var(--neutral-200);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 12px;
}

/* Hero Visual — Cards with overlap */
.hero-visual {
  position: relative;
  height: 380px;
  width: 100%;
}

.hero-card {
  position: absolute;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 16px;
  padding: 20px;
}

/* Main card — top right */
.hero-card-main {
  width: 220px;
  top: 60px;
  right: -10px;
  z-index: 2;
}

/* Secondary card — bottom left, overlapping behind main */
.hero-card-secondary {
  width: 220px;
  top: 240px;
  right: 180px;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Chart Bars */
.chart-title {
  font-size: 0.85rem;
  color: var(--neutral-200);
  margin-bottom: 16px;
  font-weight: 500;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 90px;
  margin-bottom: 16px;
}

.chart-bar {
  width: 28px;
  background: linear-gradient(180deg, #FFFFFF, #71717A);
  border-radius: 4px 4px 0 0;
}

.chart-bar:nth-child(1) { height: 55%; }
.chart-bar:nth-child(2) { height: 75%; }
.chart-bar:nth-child(3) { height: 45%; }
.chart-bar:nth-child(4) { height: 85%; }
.chart-bar:nth-child(5) { height: 65%; }
.chart-bar:nth-child(6) { height: 95%; }

/* Chart Metrics */
.chart-metric {
  text-align: center;
}

.chart-metric-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-500);
  line-height: 1;
}

.chart-metric-value.negative {
  color: var(--error-dark);
}

.chart-metric-label {
  font-size: 0.9rem;
  color: var(--neutral-0);
  margin-top: 6px;
  font-weight: 500;
}

.hero-card-secondary-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 0;
}

.trend-icon {
  margin-bottom: 8px;
}

.trend-icon svg {
  width: 28px;
  height: 28px;
  color: #E4E4E7;
}


/* ============================================================================
   6. TRUSTED SECTION
   ============================================================================ */

.trusted {
  padding: 28px 0 50px;
  background: var(--neutral-800);
  border-top: 1px solid var(--neutral-700);
  border-bottom: 1px solid var(--neutral-700);
  overflow: hidden;
}

.trusted-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--primary-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 40px;
}
.trusted-label .section-label-line {
  width: 32px;
  height: 2px;
  background: currentColor;
}
.trusted > .container {
  text-align: center;
}

/* Marquee container — full width, edge fade */
.trusted-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Track holds duplicated logos, scrolls left infinitely */
.trusted-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
}

.trusted-track:hover {
  animation-play-state: paused;
}

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

/* Individual logo item */
.trusted-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* SVG logos (colored brand logos) */
.trusted-logo-item svg {
  height: 42px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition-slow);
}

.trusted-logo-item:hover svg {
  opacity: 1;
}

/* Uploaded image logos (admin-managed) */
.trusted-logo-item img {
  height: 42px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition-slow);
}

.trusted-logo-item:hover img {
  opacity: 1;
}

/* PostgreSQL two-tone wordmark */
.pg-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity var(--transition-slow);
}

.pg-wordmark:hover {
  opacity: 1;
}

.pg-pre {
  color: #E8E4DE;
}

.pg-sql {
  color: #336791;
}


/* ============================================================================
   7. SECTION LABELS & HEADERS
   ============================================================================ */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.section-label-dark {
  color: var(--primary-600);
}

.section-label-light {
  color: var(--primary-400);
}

.section-label-line {
  width: 32px;
  height: 2px;
  background: currentColor;
}

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-title-dark {
  color: var(--warm-900);
}

.section-title-light {
  color: var(--neutral-0);
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-desc-dark {
  color: var(--warm-600);
}

.section-desc-light {
  color: var(--neutral-200);
}


/* ============================================================================
   8. SOLUTIONS SECTION
   ============================================================================ */

.solutions {
  padding: 60px 0 100px;
  background: var(--warm-50);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--neutral-0);
  border: 1px solid var(--warm-200);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.solution-card:hover {
  border-color: var(--warm-300);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--neutral-900);
}

.solution-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: 8px;
}

.solution-desc {
  font-size: 0.9rem;
  color: var(--warm-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-600);
  transition: gap 0.3s ease;
}

.solution-link:hover {
  gap: 12px;
}

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


/* ============================================================================
   9. PRODUCTS SECTION
   ============================================================================ */

.products {
  padding: 60px 0 100px;
  background: var(--warm-100);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--neutral-0);
  border: 1px solid var(--warm-200);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--primary-500);
  box-shadow: 0 16px 48px rgba(47, 196, 144, 0.12);
  transform: translateY(-6px);
}

.product-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--neutral-800), var(--neutral-700));
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  transition: all 0.4s ease;
}

.product-card:hover .product-icon {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: var(--neutral-900);
  transform: scale(1.1);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--warm-600);
  line-height: 1.5;
}


/* ============================================================================
   10. WHY XEVEN SECTION
   ============================================================================ */

.why-xeven {
  padding: 100px 0;
  background: var(--neutral-900);
  position: relative;
}

.why-xeven::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neutral-700), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-content {
  max-width: 600px;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-feature {
  display: flex;
  gap: 16px;
}

.why-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(47, 196, 144, 0.1);
  border: 1px solid rgba(47, 196, 144, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-500);
}

.why-feature-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-feature-content p {
  color: var(--neutral-200);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Why Visual — Metric Cards */
.why-visual {
  position: relative;
  height: 400px;
}

.why-card {
  position: absolute;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 14px;
  padding: 20px;
}

.why-card-1 {
  top: 0;
  right: 0;
  width: 260px;
}

.why-card-2 {
  top: 130px;
  left: 0;
  width: 240px;
}

.why-card-3 {
  bottom: 0;
  right: 30px;
  width: 220px;
}

.why-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.why-card-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-900);
}

.why-card-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

.why-card-metric {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-500);
  margin-bottom: 4px;
}

.why-card-label {
  font-size: 0.8rem;
  color: var(--neutral-200);
}

.why-card-bar {
  height: 5px;
  background: var(--neutral-700);
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
}

.why-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
  border-radius: 3px;
}


/* ============================================================================
   11. CASE STUDIES SECTION
   ============================================================================ */

.case-studies {
  padding: 100px 0;
  background: var(--warm-50);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-study-card {
  background: var(--neutral-0);
  border: 1px solid var(--warm-200);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.case-study-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.case-study-image {
  height: 180px;
  background: linear-gradient(135deg, var(--neutral-800), var(--neutral-700));
  position: relative;
}

.case-study-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 196, 144, 0.2), transparent);
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-industry {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neutral-0);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.case-study-content {
  padding: 24px;
}

.case-study-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: 10px;
  line-height: 1.4;
}

.case-study-excerpt {
  font-size: 0.9rem;
  color: var(--warm-600);
  line-height: 1.6;
  margin-bottom: 18px;
}

.case-study-metrics {
  display: flex;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--warm-200);
}

.case-study-metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-600);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--warm-500);
}


/* ============================================================================
   12. TESTIMONIALS SECTION
   ============================================================================ */

.testimonials {
  padding: 60px 0 100px;
  background: var(--warm-100);
}

.testimonials-wrapper {
  position: relative;
}

.testimonials-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonials-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Navigation arrows */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--warm-300);
  background: var(--neutral-0);
  color: var(--warm-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.25s;
  z-index: 2;
}
.testimonial-arrow:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
  box-shadow: 0 4px 16px rgba(47,196,144,0.25);
}
.testimonial-arrow-left {
  left: -22px;
}
.testimonial-arrow-right {
  right: -22px;
}

.testimonial-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: var(--neutral-0);
  border: 1px solid var(--warm-200);
  border-radius: 18px;
  padding: 30px;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--warm-800);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 3.5rem;
  color: var(--primary-200);
  position: absolute;
  top: -16px;
  left: -8px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--neutral-900);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.testimonial-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--warm-900);
}

.testimonial-info p {
  font-size: 0.85rem;
  color: var(--warm-500);
}


/* ============================================================================
   13. CTA SECTION
   ============================================================================ */

.cta-section {
  padding: 100px 0;
  background: var(--neutral-900);
}

.cta-content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--neutral-400);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}


/* ============================================================================
   14. FOOTER
   ============================================================================ */

.footer {
  padding: 70px 0 36px;
  background: var(--neutral-950);
  border-top: 1px solid var(--neutral-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-logo span {
  color: var(--primary-500);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--neutral-400);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--neutral-800);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary-500);
  color: var(--neutral-900);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-300);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--neutral-500);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid var(--neutral-800);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.footer-legal {
  display: flex;
  gap: 28px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--neutral-500);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--neutral-300);
}


/* ============================================================================
   15. BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-500);
  color: var(--neutral-900);
}

.btn-primary:hover {
  background: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--neutral-0);
  border: 1px solid var(--neutral-600);
}

.btn-secondary:hover {
  border-color: var(--neutral-400);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background: transparent;
  color: var(--neutral-0);
  border: 1px solid var(--neutral-600);
}

.btn-outline:hover {
  border-color: var(--neutral-400);
  background: var(--neutral-800);
}

/* Light mode button variants */
.btn-primary-light {
  background: var(--primary-500);
  color: var(--neutral-0);
}

.btn-primary-light:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
}

.btn-secondary-light {
  background: var(--neutral-0);
  color: var(--warm-900);
  border: 1px solid var(--warm-200);
}

.btn-secondary-light:hover {
  border-color: var(--warm-300);
  background: var(--warm-50);
}

/* Button sizes */
.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--primary-500);
  border: none;
  padding: 10px 16px;
}

.btn-ghost:hover {
  background: rgba(47, 196, 144, 0.1);
}


/* ============================================================================
   16. MOBILE MENU
   ============================================================================ */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-300);
  transition: color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--neutral-0);
}

.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-500);
  color: var(--neutral-900);
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.mobile-menu-cta:hover {
  background: var(--primary-400);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--neutral-0);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

/* Nav toggle animation when menu is open */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================================================
   17. DEMO MODAL
   ============================================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--neutral-700);
  border: none;
  border-radius: 8px;
  color: var(--neutral-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--neutral-600);
  color: var(--neutral-0);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--neutral-400);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-content .form-group {
  margin-bottom: 14px;
}

.modal-content .form-input,
.modal-content .form-select {
  padding: 10px 14px;
}

.modal-content .form-textarea {
  min-height: 80px;
  padding: 10px 14px;
}


/* ============================================================================
   18. FORM STYLES
   ============================================================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--neutral-300);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-600);
  border-radius: 8px;
  color: var(--neutral-0);
  transition: all 150ms ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--neutral-500);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(47, 196, 144, 0.1);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--neutral-500);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Light mode form variants */
.form-input-light,
.form-textarea-light,
.form-select-light {
  background: var(--neutral-0);
  border: 1px solid var(--warm-200);
  color: var(--warm-900);
}

.form-input-light::placeholder,
.form-textarea-light::placeholder {
  color: var(--warm-500);
}

.form-input-light:focus,
.form-textarea-light:focus,
.form-select-light:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(47, 196, 144, 0.1);
}

/* Validation states */
.form-input.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(194, 98, 86, 0.1);
}

.form-input.success,
.form-textarea.success {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 158, 130, 0.1);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 6px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: 6px;
}

/* Checkbox / Radio */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"],
.form-checkbox input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-500);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--neutral-300);
  cursor: pointer;
}


/* ============================================================================
   19. TOAST / NOTIFICATION
   ============================================================================ */

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease forwards;
  box-shadow: var(--shadow-xl);
}

.toast.toast-out {
  animation: toast-slide-out 0.3s ease forwards;
}

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--neutral-400);
  line-height: 1.5;
}

.toast-close {
  background: none;
  border: none;
  color: var(--neutral-500);
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: var(--neutral-300);
}

/* Toast variants */
.toast-success {
  border-color: rgba(74, 158, 130, 0.3);
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-error {
  border-color: rgba(194, 98, 86, 0.3);
}

.toast-error .toast-icon {
  color: var(--error);
}

.toast-warning {
  border-color: rgba(218, 119, 86, 0.3);
}

.toast-warning .toast-icon {
  color: var(--warning);
}

.toast-info {
  border-color: rgba(107, 122, 143, 0.3);
}

.toast-info .toast-icon {
  color: var(--info);
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}


/* ============================================================================
   20. INNER PAGE STYLES
   ============================================================================ */

/* ---- Page Hero (Inner Pages) ---- */
.page-hero {
  padding: 140px 0 70px;
  background: var(--neutral-900);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0A0A0A 0%, rgba(47, 196, 144, 0.05) 100%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero-content.center {
  margin: 0 auto;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.page-hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-500), #6FE4B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--neutral-300);
  line-height: 1.7;
  max-width: 560px;
}

.page-hero-content.center .page-hero-desc {
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--neutral-500);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--primary-500);
}

.breadcrumbs span {
  color: var(--neutral-600);
}

.breadcrumbs .current {
  color: var(--neutral-300);
}


/* ---- Solutions Detail Page ---- */
.solution-detail {
  padding: 80px 0;
}

.solution-detail:nth-child(odd) {
  background: var(--warm-50);
}

.solution-detail:nth-child(even) {
  background: var(--warm-100);
}

.solution-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.solution-detail:nth-child(even) .solution-detail-inner {
  direction: rtl;
}

.solution-detail:nth-child(even) .solution-detail-inner > * {
  direction: ltr;
}

.solution-detail-content .section-label {
  margin-bottom: 12px;
}

.solution-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: 16px;
  line-height: 1.2;
}

.solution-detail-desc {
  font-size: 1rem;
  color: var(--warm-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

.solution-detail-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.solution-detail-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--warm-700);
}

.solution-detail-feature-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-500);
  flex-shrink: 0;
}

.solution-detail-visual {
  background: linear-gradient(135deg, var(--neutral-800), var(--neutral-700));
  border-radius: 20px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.solution-detail-visual:has(img) {
  background: #ffffff;
  height: auto;
}

.solution-detail-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}


/* ---- Products Detail Page ---- */
.product-detail-hero {
  padding: 160px 0 80px;
  background: var(--neutral-900);
}

.product-detail-section {
  padding: 80px 0;
  background: var(--warm-50);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--neutral-0);
  border: 1px solid var(--warm-200);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.product-feature-item:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-light-md);
}

.product-feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-900);
  flex-shrink: 0;
}

.product-feature-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: 4px;
}

.product-feature-content p {
  font-size: 0.9rem;
  color: var(--warm-600);
  line-height: 1.5;
}


/* ---- About Page ---- */
.about-hero {
  padding: 160px 0 80px;
  background: var(--neutral-900);
}

.about-story {
  padding: 80px 0;
  background: var(--warm-50);
}

.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-story-content p {
  font-size: 1rem;
  color: var(--warm-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-story-image {
  background: linear-gradient(135deg, var(--neutral-800), var(--neutral-700));
  border-radius: 20px;
  height: 400px;
  overflow: hidden;
}

.about-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mission / Vision Cards */
.about-mission {
  padding: 80px 0;
  background: var(--neutral-900);
}

.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-card {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
}

.about-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(47, 196, 144, 0.1);
  border: 1px solid rgba(47, 196, 144, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  margin-bottom: 20px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 1rem;
  color: var(--neutral-400);
  line-height: 1.7;
}

/* Values Grid */
.about-values {
  padding: 80px 0;
  background: var(--warm-50);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-value-card {
  background: var(--neutral-0);
  border: 1px solid var(--warm-200);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.4s ease;
}

.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-light-lg);
}

.about-value-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-900);
  margin: 0 auto 20px;
}

.about-value-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: 8px;
}

.about-value-card p {
  font-size: 0.9rem;
  color: var(--warm-600);
  line-height: 1.6;
}

/* About Stats */
.about-stats {
  padding: 80px 0;
  background: var(--neutral-900);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-stat {
  text-align: center;
  padding: 32px 20px;
}

.about-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-500);
  margin-bottom: 8px;
  line-height: 1;
}

.about-stat-label {
  font-size: 0.9rem;
  color: var(--neutral-400);
}


/* ---- Contact Page ---- */
.contact-section {
  padding: 80px 0;
  background: var(--warm-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.contact-form-card {
  background: var(--neutral-0);
  border: 1px solid var(--warm-200);
  border-radius: 20px;
  padding: 40px;
}

.contact-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: 8px;
}

.contact-form-card > p {
  font-size: 0.95rem;
  color: var(--warm-600);
  margin-bottom: 32px;
}

/* Contact form — light mode inputs */
.contact-form .form-input,
.contact-form .form-textarea,
.contact-form .form-select {
  background: var(--neutral-0);
  border: 1px solid var(--warm-200);
  color: var(--warm-900);
}

.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder {
  color: var(--warm-500);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(47, 196, 144, 0.1);
}

.contact-form .form-label {
  color: var(--warm-800);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Contact Info Card */
.contact-info-card {
  background: var(--neutral-900);
  border-radius: 20px;
  padding: 40px;
  color: var(--neutral-0);
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(47, 196, 144, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 0.9rem;
  color: var(--neutral-400);
  line-height: 1.5;
}

.contact-info-text a {
  color: var(--primary-400);
  transition: color 0.2s ease;
}

.contact-info-text a:hover {
  color: var(--primary-300);
}

.contact-info-divider {
  width: 100%;
  height: 1px;
  background: var(--neutral-700);
  margin: 24px 0;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--neutral-900);
}

.faq-grid {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--neutral-700);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--neutral-0);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--neutral-500);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--neutral-400);
  line-height: 1.7;
}


/* ---- 404 Page ---- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-900);
  text-align: center;
  padding: 40px 24px;
}

.page-404-content {
  max-width: 500px;
}

.page-404-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 14rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary-500);
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-404-desc {
  font-size: 1rem;
  color: var(--neutral-400);
  line-height: 1.6;
  margin-bottom: 32px;
}

.page-404-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}


/* ============================================================================
   21. ANIMATIONS
   ============================================================================ */

/* Intersection Observer animate-in */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animation delays */
.animate-in.stagger-1 { transition-delay: 0.1s; }
.animate-in.stagger-2 { transition-delay: 0.2s; }
.animate-in.stagger-3 { transition-delay: 0.3s; }
.animate-in.stagger-4 { transition-delay: 0.4s; }
.animate-in.stagger-5 { transition-delay: 0.5s; }
.animate-in.stagger-6 { transition-delay: 0.6s; }
.animate-in.stagger-7 { transition-delay: 0.7s; }
.animate-in.stagger-8 { transition-delay: 0.8s; }

/* Fade variants */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Pulse animation for badge dot */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.badge-dot {
  animation: pulse 2s ease-in-out infinite;
}

/* Subtle float animation for hero cards */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-card-main {
  animation: float 6s ease-in-out infinite;
}

.hero-card-secondary {
  animation: float 6s ease-in-out infinite 1.5s;
}

/* Loading spinner */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--neutral-700);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Why-card subtle float */
.why-card-1 {
  animation: float 6s ease-in-out infinite 0s;
}

.why-card-2 {
  animation: float 6s ease-in-out infinite 1s;
}

.why-card-3 {
  animation: float 6s ease-in-out infinite 2s;
}


/* ============================================================================
   22. RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* ---- Extra Large (max-width: 1200px) ---- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .hero-card-main {
    width: 260px;
  }

  .hero-card-secondary {
    width: 200px;
    right: 140px;
  }

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

/* ---- Large (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    white-space: normal;
  }

  .hero-title .highlight-block {
    white-space: normal;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 60px;
  }

  /* Grids go to 2 columns */
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .why-visual {
    height: 320px;
  }

  .case-studies-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  /* Inner page grids */
  .solution-detail-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .solution-detail:nth-child(even) .solution-detail-inner {
    direction: ltr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-story-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
  }

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

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

/* ---- Medium (max-width: 768px) ---- */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  /* Hero */
  .hero-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Grids go to 1 column */
  .solutions-grid {
    grid-template-columns: 1fr;
  }

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

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex: 0 0 300px;
  }

  .testimonial-arrow-left {
    left: 4px;
  }
  .testimonial-arrow-right {
    right: 4px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  /* Inner pages */
  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  /* Why visual */
  .why-visual {
    height: auto;
    position: static;
  }

  .why-card {
    position: static;
    width: 100% !important;
    margin-bottom: 16px;
  }

  /* Section spacing reduction */
  .solutions,
  .products,
  .why-xeven,
  .case-studies,
  .testimonials,
  .cta-section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Page hero spacing */
  .page-hero {
    padding: 120px 0 60px;
  }

  /* Modal */
  .modal-content {
    padding: 28px;
    margin: 16px;
  }

  /* Toast */
  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* ---- Small (max-width: 480px) ---- */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .page-404-number {
    font-size: 8rem;
  }

  .page-404-ctas {
    flex-direction: column;
  }

  .page-404-ctas .btn {
    width: 100%;
  }

  .trusted-logos {
    gap: 24px;
  }

  .container {
    padding: 0 16px;
  }

  .about-stat-value {
    font-size: 2rem;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  /* Modal full width on small screens */
  .modal-content {
    padding: 24px;
    border-radius: 16px;
  }
}


/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
