/* ============================================
   CSP — Cyber Service Pattaya
   Design System & Styles — v2 Enhanced
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Base Colors */
  --bg-primary: #0A0A12;
  --bg-secondary: #111119;
  --bg-tertiary: #18182A;
  --bg-elevated: #222238;

  /* Text */
  --text-primary: #E4E4EC;
  --text-muted: #8B8BA0;

  /* Accent */
  --accent: #4A9EAE;
  --accent-hover: #5BC0D2;
  --accent-glow: rgba(74, 158, 174, 0.15);
  --accent-subtle: rgba(74, 158, 174, 0.08);

  /* Glass */
  --glass-bg: rgba(10, 10, 18, 0.82);
  --glass-border: rgba(255, 255, 255, 0.06);

  /* Gradients */
  --gradient-text: linear-gradient(135deg, #4A9EAE 0%, #7BC4CF 50%, #4A9EAE 100%);
  --gradient-mesh-1: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(74, 158, 174, 0.08) 0%, transparent 70%);
  --gradient-mesh-2: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(74, 100, 174, 0.06) 0%, transparent 70%);
  --gradient-mesh-3: radial-gradient(ellipse 50% 60% at 50% 80%, rgba(74, 158, 174, 0.05) 0%, transparent 70%);

  /* v2 Enhanced — Effect Variables */
  --gradient-text-animated: linear-gradient(
    135deg,
    #4A9EAE 0%,
    #7BC4CF 25%,
    #A5E0E8 50%,
    #7BC4CF 75%,
    #4A9EAE 100%
  );
  --gradient-border: linear-gradient(135deg, var(--accent) 0%, rgba(74, 158, 174, 0.2) 50%, var(--accent) 100%);
  --glow-soft: 0 0 30px rgba(74, 158, 174, 0.08);
  --glow-medium: 0 0 40px rgba(74, 158, 174, 0.12);
  --icon-glow-bg: radial-gradient(circle, rgba(74, 158, 174, 0.1) 0%, transparent 70%);
  --icon-glow-bg-sm: radial-gradient(circle, rgba(74, 158, 174, 0.08) 0%, transparent 70%);
  --divider-dots: radial-gradient(circle, rgba(74, 158, 174, 0.12) 1px, transparent 1px);
  --pattern-grid-color: rgba(74, 158, 174, 0.03);
  --noise-opacity: 0.02;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1140px;
  --navbar-height: 72px;
}


/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Gradient text shimmer */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Floating element drift */
@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.4; }
  25% { transform: translateY(-12px) translateX(4px); opacity: 0.6; }
  50% { transform: translateY(-6px) translateX(-4px); opacity: 0.3; }
  75% { transform: translateY(-16px) translateX(2px); opacity: 0.5; }
}

/* Accent pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 158, 174, 0); }
  50% { box-shadow: 0 0 16px 2px rgba(74, 158, 174, 0.12); }
}

/* Background grid shift */
@keyframes grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Glow orb drift in hero */
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}

/* Section label subtle glow */
@keyframes label-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 12px rgba(74, 158, 174, 0.15); }
}

/* CTA button pulse */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 158, 174, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(74, 158, 174, 0.1); }
}

/* Mesh gradient shift for hero */
@keyframes mesh-shift {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  25% {
    background-position: 30% 20%, 70% 80%, 40% 60%;
  }
  50% {
    background-position: 60% 40%, 40% 60%, 60% 40%;
  }
  75% {
    background-position: 20% 60%, 80% 40%, 30% 70%;
  }
}

/* Gradient border animation */
@keyframes gradient-border-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Top accent line gradient sweep */
@keyframes accent-sweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll bounce (kept from original) */
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul { list-style: none; }

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}


/* --- Skip to Content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}


/* --- Container --- */
.container {
  width: min(90%, var(--container-max));
  margin: 0 auto;
}


/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-text);
  z-index: 9999;
  transition: width 50ms linear;
}


/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-base);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* v2: Active nav link glowing underline */
.nav-links a.active::after {
  height: 2px;
  box-shadow: 0 0 8px rgba(74, 158, 174, 0.3);
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

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

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


/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu.open {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.mobile-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-links a {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-links a:hover {
  color: var(--text-primary);
}

.mobile-cta-btn {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent) !important;
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + var(--space-2xl)) 0 var(--space-2xl);
  overflow: hidden;
}

/* v2: Animated mesh gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(74, 158, 174, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(74, 100, 174, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 80%, rgba(74, 158, 174, 0.05) 0%, transparent 70%),
    var(--bg-primary);
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  animation: mesh-shift 25s ease-in-out infinite;
  z-index: 0;
}

/* v2: Floating glow orb in hero */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 60%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74, 158, 174, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: orb-drift 20s ease-in-out infinite;
  pointer-events: none;
}

/* v2: Floating particles/dots via box-shadows */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 10%;
  width: 3px;
  height: 3px;
  background: rgba(74, 158, 174, 0.3);
  border-radius: 50%;
  box-shadow:
    120px 40px 0 rgba(74, 158, 174, 0.15),
    280px -20px 0 rgba(74, 158, 174, 0.1),
    400px 80px 0 rgba(74, 158, 174, 0.2),
    600px 30px 0 rgba(74, 158, 174, 0.08),
    750px -40px 0 rgba(74, 158, 174, 0.15),
    900px 60px 0 rgba(74, 158, 174, 0.12),
    180px 200px 0 rgba(74, 158, 174, 0.1),
    500px 250px 0 rgba(74, 158, 174, 0.18),
    350px 350px 0 rgba(74, 158, 174, 0.08),
    700px 180px 0 rgba(74, 158, 174, 0.14),
    50px 400px 0 rgba(74, 158, 174, 0.1),
    850px 300px 0 rgba(74, 158, 174, 0.06),
    1000px 150px 0 rgba(74, 158, 174, 0.12),
    200px 500px 0 rgba(74, 158, 174, 0.08),
    650px 420px 0 rgba(74, 158, 174, 0.16),
    450px 120px 0 rgba(74, 158, 174, 0.1);
  animation: float 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  padding: 0.375rem 1rem;
  border: 1px solid rgba(74, 158, 174, 0.2);
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

/* v2: Shimmer animation on gradient text */
.gradient-text {
  background: var(--gradient-text-animated);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: scrollBounce 2s ease infinite;
  z-index: 1;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

/* v2: CTA glow pulse */
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: cta-pulse 2s ease-in-out infinite;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}


/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

/* v2: Subtle pulse glow on section labels */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  animation: label-glow 4s ease-in-out infinite;
}

.section-title {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}


/* ============================================
   SECTION DIVIDERS (v2 Enhanced)
   ============================================ */
/* Reusable enhanced divider — gradient line with center dot cluster */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--glass-border) 20%,
    var(--glass-border) 80%,
    transparent 100%
  );
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 6px;
  background: var(--divider-dots);
  background-size: 6px 6px;
  opacity: 0.8;
}


/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--space-3xl) 0;
  position: relative;
}

/* v2: Subtle dot/grid pattern overlay */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--pattern-grid-color) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.services > .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* v2: Enhanced service cards */
.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* v2: Animated gradient top accent line */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 30%,
    rgba(123, 196, 207, 0.6) 50%,
    var(--accent) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover::before {
  opacity: 1;
  animation: accent-sweep 3s linear infinite;
}

/* v2: Glow border wrapper on hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    transparent 40%,
    transparent 60%,
    var(--accent) 100%
  );
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
  animation: gradient-border-rotate 4s ease infinite;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 158, 174, 0.15);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(74, 158, 174, 0.04);
}

.service-card:hover::after {
  opacity: 1;
}

/* v2: Icon with circular glow background */
.service-icon {
  color: var(--accent);
  margin-bottom: var(--space-lg);
  opacity: 0.8;
  position: relative;
  display: inline-block;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--icon-glow-bg);
  border-radius: 50%;
  pointer-events: none;
}

.service-name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.accent-tag {
  background: rgba(74, 158, 174, 0.12);
  color: var(--accent);
  border-color: rgba(74, 158, 174, 0.2);
}


/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
  position: relative;
}

/* v2: Subtle diagonal line pattern */
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(74, 158, 174, 0.015) 40px,
    rgba(74, 158, 174, 0.015) 41px
  );
  pointer-events: none;
  z-index: 0;
}

.process > .container {
  position: relative;
  z-index: 1;
}

/* v2: Enhanced top divider with dots */
.process::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--glass-border) 20%,
    var(--glass-border) 80%,
    transparent 100%
  );
}

.process-steps {
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  min-width: 60px;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.step-connector {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: var(--space-md) 0 var(--space-md) 30px;
  opacity: 0.3;
}


/* ============================================
   TRUST / ABOUT
   ============================================ */
.trust {
  padding: var(--space-3xl) 0;
  position: relative;
}

/* v2: Radial gradient glow behind quote */
.trust-statement {
  margin-bottom: var(--space-2xl);
  text-align: center;
  position: relative;
}

.trust-statement::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 158, 174, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.trust-content {
  max-width: 800px;
  margin: 0 auto;
}

.trust-quote {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: normal;
  max-width: 680px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* v2: Trust cards with left-border accent glow */
.trust-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: var(--space-lg);
  bottom: var(--space-lg);
  left: 0;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--transition-base);
  box-shadow: 0 0 8px rgba(74, 158, 174, 0.2);
}

.trust-card:hover {
  border-color: rgba(74, 158, 174, 0.12);
}

.trust-card:hover::before {
  opacity: 1;
}

/* v2: Trust icon with smaller glow */
.trust-icon {
  color: var(--accent);
  margin-bottom: var(--space-md);
  opacity: 0.7;
  position: relative;
  display: inline-block;
}

.trust-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--icon-glow-bg-sm);
  border-radius: 50%;
  pointer-events: none;
}

.trust-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.trust-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}


/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
  position: relative;
}

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

.contact > .container {
  position: relative;
  z-index: 1;
}

/* v2: Enhanced top divider */
.contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--glass-border) 20%,
    var(--glass-border) 80%,
    transparent 100%
  );
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast);
  min-height: 44px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239898A8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

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

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-xs);
}

.contact-alt {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.alt-card {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.alt-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.alt-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.alt-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.alt-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.alt-item svg {
  color: var(--accent);
  flex-shrink: 0;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* ============================================
   FADE-IN ANIMATION
   ============================================ */
[data-fade] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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


/* ============================================
   RESPONSIVE
   ============================================ */

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

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .logo-sub {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

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

  .step {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .step-connector {
    margin-left: 0;
    width: auto;
    height: 24px;
    background: linear-gradient(to bottom, var(--accent), transparent);
  }

  .step-number {
    font-size: 1.5rem;
    min-width: auto;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .alt-item {
    font-size: 0.75rem;
  }

  /* v2: Reduce hero floating elements on mobile */
  .hero-bg::before {
    width: 200px;
    height: 200px;
  }

  .trust-statement::before {
    width: 300px;
    height: 150px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .service-card {
    padding: var(--space-lg);
  }

  .hero {
    min-height: 90vh;
  }
}

/* Focus visible for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* Service page responsive */
@media (max-width: 768px) {
  .approach-step {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .scenario-card {
    padding: var(--space-lg);
  }

  .faq-question {
    padding: var(--space-md);
    font-size: 0.9375rem;
  }

  .faq-answer {
    padding: 0 var(--space-md) var(--space-md);
  }

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

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

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


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

  [data-fade] {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-scroll {
    animation: none;
    opacity: 0.4;
  }

  /* v2: Disable all enhanced animations */
  .gradient-text {
    animation: none;
  }

  .hero-bg {
    animation: none;
  }

  .hero-bg::before,
  .hero-bg::after {
    animation: none;
  }

  .section-label {
    animation: none;
  }

  .btn-primary:hover {
    animation: none;
  }

  .service-card::before,
  .service-card::after {
    animation: none;
  }
}


/* ============================================
   SERVICE PAGES
   ============================================ */

/* --- Dropdown Navigation --- */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* v2: Dropdown with gradient border at top via pseudo-element */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 1000;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

/* v2: Gradient top accent line (pseudo-element avoids border-radius conflict) */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 50%,
    transparent 100%
  );
  opacity: 0.6;
  border-radius: 2px;
}


.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background: var(--accent-subtle);
  color: var(--accent);
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--bg-primary);
    padding: 0 0 0 16px;
    min-width: auto;
    display: none;
    grid-template-columns: 1fr;
  }
  .dropdown-menu::before {
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: grid;
  }
}


/* --- Service Page Layout --- */
.service-page {
  padding-top: 80px;
}


/* --- Breadcrumb --- */
.breadcrumb {
  margin-bottom: 32px;
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-list li::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-muted);
}

.breadcrumb-list li:first-child::before {
  display: none;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--text-muted);
}


/* --- Service Hero --- */
.service-hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.service-hero-content {
  max-width: 720px;
}

.service-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.service-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* --- Service Sections --- */
.service-section {
  padding: 80px 0;
}

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

.service-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--text-primary);
}


/* --- Scenarios --- */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* v2: Scenario cards with accent line on left side */
.scenario-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.scenario-card::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent) 20%,
    var(--accent) 80%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2px;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 158, 174, 0.2);
}

.scenario-card:hover::before {
  opacity: 0.6;
}

.scenario-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.scenario-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}


/* --- Steps / Approach (Service Pages) --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.approach-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.approach-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid rgba(74, 158, 174, 0.3);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.approach-step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}


/* --- Deliverables --- */
.deliverables-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.deliverables-list li {
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding-left: 44px;
}

.deliverables-list li::before {
  content: '\2713';
  position: absolute;
  left: 16px;
  color: var(--accent);
  font-weight: 600;
}


/* --- FAQ Accordion --- */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
}

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

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

.faq-question svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
  color: var(--accent);
}

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

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}


/* --- Related Services --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* v2: Related cards with enhanced hover */
.related-card {
  display: block;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 158, 174, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(74, 158, 174, 0.04);
}

.related-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.related-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.related-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}


/* --- Service CTA Section --- */
.service-cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.service-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.service-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}


/* --- Service card link on homepage --- */
.service-card-wrapper {
  text-decoration: none;
  display: block;
  color: inherit;
}

.service-card-wrapper .service-card {
  cursor: pointer;
}

.service-card-wrapper .service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 158, 174, 0.3);
}
