/* ═══════════════════════════════════════════════════════
   COLOUR PALETTE
   Change these variables to re-theme the entire site.
   Each colour has an -rgb companion for use in rgba().
   ═══════════════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg-primary: #0a0b10;
  --bg-primary-rgb: 10, 11, 16;
  --bg-secondary: #10121a;
  --bg-secondary-rgb: 16, 18, 26;

  /* Accents */
  --accent-orange: #2563eb;
  --accent-orange-rgb: 37, 99, 235;
  --accent-orange-hover: #3b82f6;
  --accent-red: #1e3a8a;
  --accent-red-rgb: 30, 58, 138;
  --accent-red-light: #60a5fa;
  --accent-yellow: #38bdf8;
  --accent-yellow-rgb: 56, 189, 248;
  --accent-blue: #6366f1;
  --accent-blue-rgb: 99, 102, 241;
  --accent-blue-light: #818cf8;
  --accent-blue-light-rgb: 129, 140, 248;

  /* Feature / pop colours */
  --feature-emerald: #10b981;
  --feature-emerald-rgb: 16, 185, 129;
  --feature-amber: #f59e0b;
  --feature-amber-rgb: 245, 158, 11;

  /* Text */
  --text-primary: #e8ecf4;
  --text-primary-rgb: 232, 236, 244;
  --text-muted: #7a8194;
  --text-muted-rgb: 122, 129, 148;

  /* Surfaces */
  --card-bg: #161825;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: var(--bg-primary);
}

/* ─── Utility ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── Nav accent bar ─── */
.nav-accent-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: linear-gradient(90deg, var(--accent-orange), var(--feature-emerald), var(--feature-amber), var(--accent-orange), var(--feature-emerald));
  background-size: 200% 100%;
  animation: gradientSlide 8s ease-in-out infinite;
}
@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--bg-primary-rgb), 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(var(--bg-primary-rgb), 0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-logo svg {
  width: 34px;
  height: 34px;
}
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  line-height: 1;
}
.nav-wordmark span {
  color: var(--accent-orange);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--accent-orange);
  color: var(--text-primary) !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
  box-shadow: 0 2px 12px rgba(var(--accent-orange-rgb), 0.25);
}
.nav-cta:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(var(--accent-orange-rgb), 0.4);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--bg-primary-rgb), 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 48px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.2rem;
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* Animated swirling background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(var(--accent-orange-rgb), 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 70% 15%, rgba(var(--accent-red-rgb), 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 70%, rgba(var(--accent-blue-rgb), 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 45% 25% at 20% 50%, rgba(var(--accent-yellow-rgb), 0.12) 0%, transparent 50%);
  animation: heroSwirl 20s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 55% 35% at 65% 35%, rgba(var(--accent-orange-rgb), 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 25% 65%, rgba(var(--accent-blue-light-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 80% 75%, rgba(var(--accent-yellow-rgb), 0.1) 0%, transparent 45%);
  animation: heroSwirl2 25s ease-in-out infinite;
}

@keyframes heroSwirl {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(3deg) scale(1.02) translateX(2%); }
  50% { transform: rotate(-2deg) scale(1.04) translateY(1%); }
  75% { transform: rotate(1deg) scale(1.01) translateX(-1%); }
}
@keyframes heroSwirl2 {
  0%, 100% { transform: rotate(0deg) scale(1.02); }
  33% { transform: rotate(-3deg) scale(1) translateX(-2%); }
  66% { transform: rotate(2deg) scale(1.03) translateY(-1%); }
}

/* SVG wave overlays */
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}
.hero-waves svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(var(--accent-orange-rgb), 0.1);
  border: 1px solid rgba(var(--accent-orange-rgb), 0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 .accent {
  color: #ef4444;
  position: relative;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: #ef4444;
  border-radius: 2px;
  opacity: 0.5;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 44px;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
  background: var(--accent-orange);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(var(--accent-orange-rgb), 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-orange-rgb), 0.45), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(var(--text-primary-rgb), 0.15);
}
.btn-secondary:hover {
  border-color: rgba(var(--text-primary-rgb), 0.35);
  background: rgba(var(--text-primary-rgb), 0.04);
  transform: translateY(-2px);
}
.btn-arrow {
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ─── Section shared styles ─── */
section {
  position: relative;
  padding: 120px 24px;
}
@media (max-width: 768px) {
  section { padding: 80px 24px; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent-orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 1.5px;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* Wave dividers */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── What We Do ─── */
.services {
  background: var(--bg-secondary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(var(--text-primary-rgb), 0.05);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent-orange), var(--feature-emerald)); }
.service-card:nth-child(2)::before { background: linear-gradient(90deg, var(--feature-amber), var(--accent-orange)); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, var(--accent-blue-light), var(--feature-emerald)); }

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--text-primary-rgb), 0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card:nth-child(1) .service-icon { background: rgba(var(--accent-orange-rgb), 0.12); color: var(--accent-orange); }
.service-card:nth-child(2) .service-icon { background: rgba(var(--feature-amber-rgb), 0.15); color: var(--feature-amber); }
.service-card:nth-child(3) .service-icon { background: rgba(var(--feature-emerald-rgb), 0.15); color: var(--feature-emerald); }

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Why scream.io ─── */
.why {
  background: var(--bg-primary);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.why-grid .why-card:last-child {
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-grid .why-card:last-child {
    grid-column: auto;
  }
}

.why-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid rgba(var(--text-primary-rgb), 0.04);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.why-card:hover {
  border-color: rgba(var(--text-primary-rgb), 0.1);
}
.why-card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 0 16px 0 0;
  opacity: 0.06;
  pointer-events: none;
}
.why-card:nth-child(1) .why-card-accent { background: radial-gradient(circle at top right, var(--accent-orange), transparent); }
.why-card:nth-child(2) .why-card-accent { background: radial-gradient(circle at top right, var(--feature-amber), transparent); }
.why-card:nth-child(3) .why-card-accent { background: radial-gradient(circle at top right, var(--feature-emerald), transparent); }
.why-card:nth-child(4) .why-card-accent { background: radial-gradient(circle at top right, var(--accent-blue-light), transparent); }
.why-card:nth-child(5) .why-card-accent { background: radial-gradient(circle at top right, var(--accent-orange), transparent); }

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.why-card .why-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.why-card:nth-child(1) .why-tag { background: rgba(var(--accent-orange-rgb), 0.1); color: var(--accent-orange); }
.why-card:nth-child(2) .why-tag { background: rgba(var(--feature-amber-rgb), 0.1); color: var(--feature-amber); }
.why-card:nth-child(3) .why-tag { background: rgba(var(--feature-emerald-rgb), 0.12); color: var(--feature-emerald); }
.why-card:nth-child(4) .why-tag { background: rgba(var(--accent-blue-light-rgb), 0.12); color: var(--accent-blue-light); }
.why-card:nth-child(5) .why-tag { background: rgba(var(--accent-orange-rgb), 0.1); color: var(--accent-orange); }

/* ─── Bold Statement ─── */
.statement {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.statement::before {
  content: '';
  position: absolute;
  inset: -80%;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(var(--accent-orange-rgb), 0.06) 0%, transparent 60%);
}
.statement-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.statement-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--feature-amber);
  margin-bottom: 24px;
}
.statement-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 1.5px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.statement-strike {
  position: relative;
  color: var(--feature-emerald);
}
.statement-strike::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 3px;
  background: var(--feature-emerald);
  opacity: 0.5;
  border-radius: 2px;
}
.statement-body {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
}

/* ─── How It Works ─── */
.process {
  background: var(--bg-secondary);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
  list-style: none;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--feature-emerald), var(--feature-amber), var(--accent-blue-light));
  opacity: 0.2;
  z-index: 0;
}
@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
  .process-steps::before { display: none; }
}
@media (max-width: 550px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid rgba(var(--accent-orange-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-orange);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 auto;
}

/* ─── Stats ─── */
.stats {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: -100%;
  background:
    radial-gradient(ellipse 40% 30% at 20% 40%, rgba(var(--accent-orange-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(var(--accent-blue-rgb), 0.08) 0%, transparent 50%);
  animation: heroSwirl 30s ease-in-out infinite;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat {
  text-align: center;
  padding: 32px 16px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent-orange), var(--feature-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

/* ─── Technologies ─── */
.tech {
  background: var(--bg-secondary);
}
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 48px;
  margin-bottom: 28px;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid rgba(var(--text-primary-rgb), 0.05);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.tech-badge:hover {
  border-color: rgba(var(--feature-emerald-rgb), 0.3);
  transform: translateY(-2px);
  background: rgba(var(--feature-emerald-rgb), 0.06);
}
.tech-badge svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}
.tech-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── CTA / Contact ─── */
.contact {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.contact-bg::before {
  content: '';
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(ellipse 50% 35% at 40% 30%, rgba(var(--accent-orange-rgb), 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 70% 70%, rgba(var(--accent-red-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 45% 30% at 20% 60%, rgba(var(--accent-blue-rgb), 0.12) 0%, transparent 50%);
  animation: heroSwirl 22s ease-in-out infinite;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner .section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}
.contact-inner .section-subtitle {
  margin: 0 auto 48px;
  max-width: 480px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 550px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid rgba(var(--text-primary-rgb), 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(var(--text-muted-rgb), 0.6);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(var(--accent-orange-rgb), 0.12);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  margin-top: 8px;
  text-align: center;
}
.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
}

.contact-email {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-email a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.contact-email a:hover {
  color: var(--feature-emerald);
}

.recaptcha-notice {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}
.recaptcha-notice a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ─── Footer ─── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(var(--text-primary-rgb), 0.05);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand svg {
  width: 28px;
  height: 28px;
}
.footer-brand-text .footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  line-height: 1;
}
.footer-brand-text .footer-wordmark span { color: var(--accent-orange); }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-center {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-center a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.footer-center a:hover {
  color: var(--text-primary);
}

.footer-right {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--text-muted-rgb), 0.3);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-right a:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Skip-to-content link ─── */
.sr-only-focusable:focus {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  padding: 10px 20px;
  background: var(--accent-orange);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ─── Footer social icons ─── */
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(var(--text-primary-rgb), 0.04);
  border: 1px solid rgba(var(--text-primary-rgb), 0.06);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover {
  color: var(--text-primary);
  background: rgba(var(--accent-orange-rgb), 0.1);
  border-color: rgba(var(--accent-orange-rgb), 0.25);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ─── Legal pages ─── */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content .section-title {
  margin-bottom: 8px;
}
.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
}
.legal-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}
.legal-content ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 8px;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  opacity: 0.6;
}
.legal-content a {
  color: var(--accent-orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-orange-rgb), 0.3);
  transition: border-color 0.2s ease;
}
.legal-content a:hover {
  border-color: var(--accent-orange);
}
.legal-back {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(var(--text-primary-rgb), 0.06);
}

/* ─── Swirling line decorations ─── */
.swirl-line {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}
