/* ============================================================
   Quincy Suites — Computer Systems Design & IT Services
   Original Design System — No Templates, No Frameworks
   ============================================================ */

/* --- CSS Reset & Variables --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --abyssal: #0a0f1a;
  --midnight: #141c2e;
  --navy: #1c2840;
  --slate-darkest: #0f172a;
  --slate-dark: #334155;
  --slate: #475569;
  --slate-light: #64748b;
  --border: #e2e8f0;
  --border-soft: #cbd5e1;
  --gray-warm: #f1f5f9;
  --gray-light: #f8fafc;
  --white: #ffffff;
  --electric: #2563eb;
  --electric-light: #3b82f6;
  --electric-glow: #60a5fa;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --rose: #e11d48;
  --violet: #7c3aed;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-dark);
  background-color: var(--gray-light);
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-darkest);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--electric);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--electric-light); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--electric);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--electric);
}
.section-label.amber::before { background: var(--amber); }
.section-label.emerald::before { background: var(--emerald); }
.section-label.amber { color: var(--amber); }
.section-label.emerald { color: var(--emerald); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--abyssal);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.site-header.scrolled {
  background: var(--abyssal);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--electric) 0%, var(--cyan) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.03em;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--electric-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--electric) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--electric-light) !important;
  box-shadow: 0 0 20px rgba(37,99,235,0.4);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION — Diagonal Geometric Design
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--abyssal);
  overflow: hidden;
  padding-top: 68px;
}

.hero-geometry {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

/* Animated geometric shapes */
.hero-geo-shape {
  position: absolute;
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: var(--radius-lg);
}
.hero-geo-shape.shape-1 {
  top: 15%;
  left: -5%;
  width: 320px;
  height: 320px;
  transform: rotate(15deg);
  background: linear-gradient(135deg, rgba(37,99,235,0.03) 0%, transparent 60%);
  animation: geoFloat1 20s ease-in-out infinite;
}
.hero-geo-shape.shape-2 {
  bottom: 10%;
  right: -8%;
  width: 280px;
  height: 280px;
  transform: rotate(-20deg);
  border-color: rgba(6,182,212,0.08);
  animation: geoFloat2 25s ease-in-out infinite;
}
.hero-geo-shape.shape-3 {
  top: 40%;
  right: 15%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border-color: rgba(16,185,129,0.06);
  animation: geoFloat3 18s ease-in-out infinite;
}
.hero-geo-shape.shape-4 {
  bottom: 30%;
  left: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border-color: rgba(245,158,11,0.07);
  animation: geoFloat4 22s ease-in-out infinite;
}

/* Diagonal grid overlay */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, black 0%, transparent 70%);
}

@keyframes geoFloat1 {
  0%, 100% { transform: rotate(15deg) translate(0, 0); }
  25% { transform: rotate(18deg) translate(15px, -20px); }
  50% { transform: rotate(12deg) translate(-10px, 10px); }
  75% { transform: rotate(20deg) translate(20px, 15px); }
}
@keyframes geoFloat2 {
  0%, 100% { transform: rotate(-20deg) translate(0, 0); }
  33% { transform: rotate(-23deg) translate(-20px, -15px); }
  66% { transform: rotate(-17deg) translate(10px, 20px); }
}
@keyframes geoFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, -25px) scale(1.08); }
}
@keyframes geoFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 15px) scale(1.05); }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--electric-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--electric-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--electric);
  color: var(--white);
  box-shadow: 0 0 30px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  background: var(--electric-light);
  box-shadow: 0 0 40px rgba(37,99,235,0.4);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* Hero visual — abstract system design illustration */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/3;
}

.hero-card {
  position: absolute;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}
.hero-card.card-1 {
  top: 0;
  left: 0;
  width: 65%;
  z-index: 3;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3050 100%);
}
.hero-card.card-2 {
  top: 15%;
  right: 0;
  width: 55%;
  z-index: 2;
  background: linear-gradient(135deg, #1c2840 0%, #1a2440 100%);
}
.hero-card.card-3 {
  bottom: 5%;
  left: 10%;
  width: 70%;
  z-index: 1;
  background: linear-gradient(135deg, #182030 0%, #1c2840 100%);
}

.hero-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hero-card .card-dots {
  display: flex;
  gap: 4px;
}
.hero-card .card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.card-dot.red { background: #ef4444; }
.card-dot.yellow { background: #f59e0b; }
.card-dot.green { background: #10b981; }

.hero-card .card-line {
  height: 4px;
  background: var(--electric);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}
.hero-card .card-line:nth-child(3) { width: 70%; }
.hero-card .card-line:nth-child(4) { width: 45%; }
.hero-card .card-line:nth-child(5) { width: 85%; opacity: 0.4; }
.hero-card .card-line:nth-child(6) { width: 55%; opacity: 0.3; }

.hero-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.hero-stat {
  text-align: center;
}
.hero-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* Hero diagonal cut bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--gray-light);
  clip-path: polygon(0 100%, 100% 20%, 100% 100%, 0 100%);
  z-index: 3;
}

/* ============================================================
   SERVICES SECTION — Offset Overlap Grid
   ============================================================ */
.services {
  padding: 7rem 0 5rem;
  background: var(--gray-light);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  margin-bottom: 0.75rem;
}
.section-header .subtitle {
  color: var(--slate-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Asymmetric service grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition-slow);
  cursor: default;
}
.service-card:nth-child(odd) {
  margin-right: -2rem;
  margin-bottom: -1.5rem;
  z-index: 2;
}
.service-card:nth-child(even) {
  margin-left: -2rem;
  margin-top: -1.5rem;
  z-index: 1;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  z-index: 5;
  border-color: var(--electric-light);
}

.service-card .service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-weight: 700;
}
.service-card:nth-child(4n+1) .service-icon { background: var(--electric); }
.service-card:nth-child(4n+2) .service-icon { background: var(--cyan); }
.service-card:nth-child(4n+3) .service-icon { background: var(--emerald); }
.service-card:nth-child(4n+4) .service-icon { background: var(--amber); }

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}
.service-card p {
  color: var(--slate-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--electric);
}
.service-card .service-link .arrow {
  transition: transform var(--transition);
}
.service-card:hover .service-link .arrow {
  transform: translateX(4px);
}

/* ============================================================
   CAPABILITIES SECTION — Asymmetric Split
   ============================================================ */
.capabilities {
  padding: 6rem 0;
  background: var(--midnight);
  position: relative;
  overflow: hidden;
}
.capabilities::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(37,99,235,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(6,182,212,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.capabilities .container {
  position: relative;
  z-index: 2;
}
.capabilities .section-header h2,
.capabilities .section-header .subtitle { color: var(--white); }
.capabilities .section-header .subtitle { color: #94a3b8; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cap-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}
.cap-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-4px);
}

.cap-item .cap-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: #334e80;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.cap-item h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.cap-item p {
  color: #94a3b8;
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   PROCESS SECTION — Vertical Timeline River
   ============================================================ */
.process {
  padding: 7rem 0;
  background: var(--white);
  position: relative;
}

.process-flow {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 3.5rem;
}

.process-flow::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.75rem;
  width: 2px;
  background: linear-gradient(180deg,
    var(--electric) 0%,
    var(--electric) 20%,
    var(--border) 20%,
    var(--border) 40%,
    var(--cyan) 40%,
    var(--cyan) 60%,
    var(--border) 60%,
    var(--border) 80%,
    var(--emerald) 80%,
    var(--emerald) 100%
  );
}

.process-step {
  position: relative;
  padding-bottom: 3.5rem;
}
.process-step:last-child { padding-bottom: 0; }

.process-step .step-marker {
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.process-step:nth-child(1) .step-dot { background: var(--electric); }
.process-step:nth-child(2) .step-dot { background: var(--electric-light); }
.process-step:nth-child(3) .step-dot { background: var(--cyan); }
.process-step:nth-child(4) .step-dot { background: var(--emerald); }

.process-step .step-content {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: all var(--transition);
}
.process-step .step-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-soft);
}

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--electric);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.process-step h4 {
  margin-bottom: 0.4rem;
}
.process-step p {
  color: var(--slate-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================================
   TECH SHOWCASE — Marquee Strip
   ============================================================ */
.tech-strip {
  background: var(--abyssal);
  padding: 2rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.tech-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 40s linear infinite;
}
.tech-track span {
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tech-track span.accent {
  color: var(--electric-light);
}

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

/* ============================================================
   STATS COUNTER SECTION — Diagonal Cut
   ============================================================ */
.stats-section {
  padding: 5rem 0;
  background: var(--electric);
  position: relative;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}
.stats-section .container {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  font-family: var(--font-mono);
}
.stat-block .stat-desc {
  font-size: 0.9rem;
  color: #c7d2fe;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ============================================================
   TESTIMONIALS — Asymmetric Cards
   ============================================================ */
.testimonials {
  padding: 7rem 0;
  background: var(--gray-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}
.testimonial-card.featured {
  grid-row: span 2;
}

.testimonial-card .quote-mark {
  font-size: 4rem;
  line-height: 0.2;
  color: var(--electric);
  font-family: Georgia, serif;
}
.testimonial-card p {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
  margin: 0.75rem 0;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.testimonial-card .author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--electric);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-card .author-name {
  font-weight: 700;
  color: var(--slate-darkest);
  font-size: 0.9rem;
}
.testimonial-card .author-title {
  font-size: 0.8rem;
  color: var(--slate-light);
}

/* ============================================================
   CTA SECTION — Split Diagonal
   ============================================================ */
.cta-section {
  padding: 6rem 0;
  background: var(--midnight);
  position: relative;
  overflow: hidden;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-content p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: 7rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info { padding-top: 1rem; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact-info .info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--gray-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--electric);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.contact-info .info-text { font-size: 0.95rem; color: var(--slate); }
.contact-info .info-text strong { color: var(--slate-darkest); display: block; margin-bottom: 0.15rem; }

.contact-form-card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate-dark);
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--abyssal);
  color: #94a3b8;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: #64748b;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* ============================================================
   LEGAL PAGES — Shared
   ============================================================ */
.legal-hero {
  background: var(--abyssal);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.legal-hero .container { position: relative; z-index: 2; }
.legal-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.legal-hero .legal-meta {
  color: #94a3b8;
  font-size: 0.9rem;
}
.legal-hero .legal-meta strong { color: var(--white); }

/* --- Privacy Page: Sidebar TOC Layout --- */
.legal-body {
  padding: 3rem 0 6rem;
  background: var(--gray-light);
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Sidebar TOC */
.legal-sidebar {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-light);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.legal-sidebar ul { list-style: none; }
.legal-sidebar ul li { margin-bottom: 0.15rem; }
.legal-sidebar ul li a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  color: var(--slate);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}
.legal-sidebar ul li a:hover,
.legal-sidebar ul li a.active {
  color: var(--electric);
  background: rgba(37,99,235,0.06);
  border-left-color: var(--electric);
}

/* Legal content */
.legal-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--slate-darkest);
}
.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content p {
  color: var(--slate);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--slate);
  line-height: 1.8;
}
.legal-content ul li,
.legal-content ol li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--slate-darkest);
}

.legal-content .highlight-box {
  background: var(--gray-warm);
  border-left: 4px solid var(--electric);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.legal-content .highlight-box p { margin-bottom: 0; }

/* --- Terms Page: Accordion-style Distinct Layout --- */
.terms-layout {
  max-width: 900px;
  margin: 0 auto;
}

.terms-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition);
}
.terms-section:hover {
  border-color: var(--border-soft);
}

.terms-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  background: var(--white);
  transition: background var(--transition);
  user-select: none;
}
.terms-section-header:hover {
  background: var(--gray-warm);
}
.terms-section-header .terms-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-warm);
  color: var(--electric);
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 1rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.terms-section-header .terms-title-area {
  display: flex;
  align-items: center;
  flex: 1;
}
.terms-section-header h3 {
  font-size: 1.05rem;
  margin: 0;
}
.terms-section-header .terms-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-light);
  font-size: 1.25rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.terms-section.open .terms-toggle {
  transform: rotate(45deg);
}

.terms-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.45s ease;
  padding: 0 1.75rem;
  color: var(--slate);
  line-height: 1.8;
}
.terms-section.open .terms-section-body {
  max-height: 2000px;
  padding: 0 1.75rem 1.5rem;
}

.terms-section-body p {
  margin-bottom: 0.75rem;
}
.terms-section-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
}
.terms-section-body ul li {
  margin-bottom: 0.35rem;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-content p { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card:nth-child(odd),
  .service-card:nth-child(even) {
    margin: 0;
  }

  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

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

  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; }
  .legal-content { padding: 2rem; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--abyssal);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .nav-cta { margin-left: 0; text-align: center; }

  .nav-toggle { display: flex; }

  .cap-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-section { clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }

  .form-row { grid-template-columns: 1fr; }
  .process-flow { padding-left: 2.5rem; }
  .process-flow::before { left: 1.25rem; }
  .process-step .step-marker { left: -2.5rem; width: 2.5rem; height: 2.5rem; }
  .step-dot { width: 12px; height: 12px; }

  .legal-content { padding: 1.5rem; }
  .terms-section-header { padding: 1rem 1.25rem; }
  .terms-section-body { padding: 0 1.25rem; }
  .terms-section.open .terms-section-body { padding: 0 1.25rem 1.25rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .contact-form-card { padding: 1.5rem; }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .nav-toggle, .legal-sidebar, .btn { display: none; }
  body { background: var(--white); color: #000; }
  .legal-content { box-shadow: none; border: none; padding: 0; }
}
