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

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --accent: #0ea5e9;

  --bg: #000000;
  --surface: #0a0a0f;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;

  --shadow-sm: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.15);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 24px -6px rgba(59, 130, 246, 0.3);

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);

  --header-h: 72px;
  --container: min(1120px, 92%);
}

/* ===== Noir Background ===== */
.noir-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, #080812, #000000);
}

.noir-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.noir-stars-1, .noir-stars-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  background: transparent;
}

.noir-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}

.noir-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

::selection {
  background: var(--primary);
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ===== View Transitions (Page Switching) ===== */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-old(root) {
  animation-name: page-out;
}

::view-transition-new(root) {
  animation-name: page-in;
}

@keyframes page-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-18px) scale(0.985);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Smooth header during transition */
.header {
  view-transition-name: header;
}

::view-transition-group(header) {
  animation-duration: 0.45s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition:
    transform 0.15s ease-out,
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.btn:hover {
  transform: translate(var(--mx, 0px), var(--my, 0px)) translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.55);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: #eff6ff;
}

.btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

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

.logo-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.logo:hover .logo-img {
  transform: rotate(15deg) scale(1.15);
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

.logo:active .logo-img {
  transform: rotate(-5deg) scale(0.95);
}

.footer-brand .logo-img {
  width: 52px;
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  border-radius: 1px;
  transition: width var(--transition);
  box-shadow: 0 0 8px var(--primary-light);
}

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

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

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Page Layout ===== */
.page {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: 60px 0 80px;
}

/* Page hero */
.page-hero {
  padding: 40px 0 50px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ===== Home Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 1rem) 1rem 2rem;
  background: #08080e;
}

/* Grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Badge */
.hero-badge {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
}

/* Hero title */
.hero-heading {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(3rem, 13vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em;
}

.hero-heading-clip {
  display: inline-block;
  overflow: hidden;
  padding: 0.05em 0;
}

.hero-heading-clip--right .hero-heading-text {
  animation-delay: 0.6s;
}

.hero-heading-text {
  display: inline-block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: clip-slide-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-heading-text--right {
  animation: clip-slide-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes clip-slide-in {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-0.1em);
  }
  30% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
    transform: translateX(0);
  }
}

/* Typewriter */
.hero-type-line {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2rem;
  min-height: 1.6em;
  font-weight: 400;
}

.hero-cursor {
  display: inline-block;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 100;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* CTA row */
.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-actions .btn-primary {
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.2);
}

.hero-actions .btn-primary:hover {
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.35);
}

.hero-actions .btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Card area */
.hero-card-area {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  margin-top: auto;
}

.hero-card {
  position: relative;
}

.card-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.08));
  border-radius: 28px;
  filter: blur(40px);
  opacity: 0.5;
  animation: pulse-glow 5s ease-in-out infinite;
  pointer-events: none;
}

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

.card-inner {
  position: relative;
  background: #0f0f18;
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-inner h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.card-inner > p {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-pills {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition), transform var(--transition);
}

.pill:hover {
  background: rgba(37, 99, 235, 0.12);
  transform: translateX(4px);
}

.pill-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* 3D Geometric shapes */
.geo {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 0;
}

.geo-1 {
  width: 160px;
  height: 160px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 12%;
  left: 6%;
  animation: geo-float 14s ease-in-out infinite;
}

.geo-2 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  bottom: 20%;
  right: 8%;
  animation: geo-float 10s ease-in-out infinite reverse;
}

.geo-3 {
  width: 70px;
  height: 70px;
  border-radius: 50% 0 50% 0;
  top: 60%;
  left: 88%;
  animation: geo-float 18s ease-in-out infinite;
}

@keyframes geo-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(90deg); }
  50% { transform: translate(-10px, 10px) rotate(180deg); }
  75% { transform: translate(15px, 20px) rotate(270deg); }
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: 0;
}

.shape-1 {
  width: 320px;
  height: 320px;
  background: #93c5fd;
  top: calc(10% + var(--py, 0px));
  right: 5%;
  animation: float 9s ease-in-out infinite;
}

.shape-2 {
  width: 220px;
  height: 220px;
  background: #7dd3fc;
  bottom: calc(15% + var(--py, 0px));
  left: 8%;
  animation: float 11s ease-in-out infinite reverse;
}

.shape-3 {
  width: 160px;
  height: 160px;
  background: #bfdbfe;
  top: calc(50% + var(--py, 0px));
  left: 40%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -20px); }
  66% { transform: translate(-10px, 12px); }
}

/* ===== Shared ===== */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition:
    transform 0.4s var(--ease),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.icon-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  transition: background var(--transition);
}

.service-card:hover .icon-wrap {
  background: #dbeafe;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Process */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 0 1rem;
}

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  border-radius: 50%;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.4);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-line {
  position: relative;
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 28px;
  flex-shrink: 0;
  overflow: hidden;
}

.step-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}

.step-line.animated .step-line-fill {
  transform: scaleX(1);
}

/* ===== Exploded View ===== */
.exploded-view {
  position: relative;
  margin: 3rem auto 0;
  max-width: 860px;
  min-height: 280px;
}

.ev-center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
  z-index: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.ev-center-glow::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-light);
  opacity: 0.5;
  animation: pulse-center 2.5s ease-in-out infinite;
}

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

.ev-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.ev-step {
  position: relative;
  flex: 1;
  max-width: 230px;
  text-align: center;
  padding: 1.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.04);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
  overflow: hidden;
}

.ev-step .step-num {
  margin: 0 auto 0.75rem;
}

.ev-step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.ev-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ev-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(59,130,246,0.04) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.ev-step.exploded .ev-shimmer {
  opacity: 1;
  animation: shimmer-slide 3s ease-in-out infinite;
}

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

.ev-connector {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  margin-top: 60px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.ev-connector-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1) 0.4s;
}

.ev-connector.filled .ev-connector-fill {
  transform: scaleX(1);
}

/* Phase states */
.ev-step.state-cluster {
  opacity: 0;
  transform: scale(0.5) rotate(-8deg);
  pointer-events: none;
}

.ev-step.state-explode {
  opacity: 1;
  pointer-events: auto;
}

.ev-step.state-settle {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}

/* Explosion trajectory per index */
.ev-step[data-index="0"].state-explode {
  transform: translateX(-40px) scale(0.85) rotate(-4deg);
}

.ev-step[data-index="1"].state-explode {
  transform: translateY(-20px) scale(0.9) rotate(2deg);
}

.ev-step[data-index="2"].state-explode {
  transform: translateX(40px) scale(0.85) rotate(4deg);
}

@media (max-width: 720px) {
  .ev-track {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .ev-connector {
    width: 2px;
    height: 24px;
    margin-top: 0;
  }
  .ev-connector-fill {
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
    transform-origin: top;
  }
  .ev-step {
    max-width: 100%;
  }
  .ev-step[data-index="0"].state-explode {
    transform: translateY(-20px) scale(0.9) rotate(-3deg);
  }
  .ev-step[data-index="2"].state-explode {
    transform: translateY(0) scale(0.9) rotate(3deg);
  }
}

/* Contact */
.contact-box {
  background: linear-gradient(135deg, #1e3a5f, #0a2a4a);
  color: #fff;
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-box::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -100px;
  right: -80px;
  pointer-events: none;
}

.contact-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
  position: relative;
}

.contact-box > p {
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-box .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.2);
}

.contact-box .btn-primary:hover {
  background: #f0f9ff;
}

.contact-box .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.contact-box .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.contact-note {
  font-size: 0.9rem;
  opacity: 0.8;
  position: relative;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-brand .logo {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.footer-contact a {
  color: #cbd5e1;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

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

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

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .step-line {
    display: none;
  }

  .steps {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform var(--transition),
      opacity var(--transition),
      visibility var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: #f1f5f9;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .btn-nav {
    display: none;
  }

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

  .hero {
    padding: calc(var(--header-h) + 1.5rem) 1rem 2rem;
  }

  .hero-heading {
    font-size: clamp(2.5rem, 16vw, 4.5rem);
  }

  .contact-box {
    padding: 2.5rem 1.5rem;
  }

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

  .footer-contact {
    text-align: center;
  }

  .logo-img {
    width: 46px;
    height: 46px;
  }

  .footer-brand .logo-img {
    width: 42px;
    height: 42px;
  }

  .footer-brand p {
    margin-inline: auto;
  }
}

/* ===== Premium Animations ===== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10001;
  pointer-events: none;
}

/* Custom cursor */
body:not(.touch-device) .custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

body:not(.touch-device) .custom-cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(96, 165, 250, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s, opacity 0.2s;
}

body:not(.touch-device) .custom-cursor-follower.grow {
  width: 56px;
  height: 56px;
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(96, 165, 250, 0.06);
}

body:not(.touch-device) a,
body:not(.touch-device) button,
body:not(.touch-device) .btn,
body:not(.touch-device) .service-card {
  cursor: none;
}

/* Particle canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Split text reveal */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: pre;
}

.split-active .split-word {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 .split-word,
.page-hero h1 .split-word {
  font-size: inherit;
  line-height: inherit;
}

/* ===== Enhanced Animations ===== */

/* Shimmer for gradient text */
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gradient word in headings */
.hero-heading .split-word:last-child,
.page-hero h1[data-split] .split-word:last-child {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: shimmer 5s ease-in-out infinite;
}

/* Card 3D tilt on hover */
.service-card:hover {
  transform: perspective(1000px) rotateX(var(--rotX, 0deg)) rotateY(var(--rotY, 0deg)) translateY(-6px);
  transition: transform 0.15s ease-out, box-shadow var(--transition), border-color var(--transition);
}

/* Card shine sweep */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 35%, rgba(255,255,255,0.3) 50%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  border-radius: inherit;
}

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

/* Reveal direction variants */
.animate-from-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.animate-from-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.animate-scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
  transition: background var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection styling */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ===== Single Page Scroll ===== */

html {
  scroll-behavior: smooth;
}

.scroll-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 1rem;
}

.hero-section {
  min-height: 100vh;
  justify-content: center;
  padding-top: calc(var(--header-h) + 2rem);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: scroll-bounce 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Section transitions */
.scroll-section:not(.hero-section)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.15), transparent);
}

/* Reveal 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[data-delay="0"] { transition-delay: 0s; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

/* Active nav highlight */
.nav-links a.active {
  color: var(--primary-light);
}

/* ===== Blue Noir Reference Components ===== */

/* Gradient text base */
.gradient-text {
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Accent underline */
.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline svg {
  position: absolute;
  width: 100%;
  height: 0.5em;
  bottom: -0.15em;
  left: 0;
  color: var(--primary-light);
  opacity: 0.5;
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Animated ping dot */
.ping-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.ping-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: ping-anim 2s ease-out infinite;
  opacity: 0.3;
}

.ping-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary-light);
}

@keyframes ping-anim {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(3); opacity: 0; }
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.status-badge .arrow {
  color: var(--primary-light);
  font-size: 0.7rem;
}

/* Shiny CTA button (conic border spin) */
.btn-shiny {
  --gradient-angle: 0deg;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-full);
  padding: 1rem 2.5rem;
  background: linear-gradient(#000, #000) padding-box,
    conic-gradient(from var(--gradient-angle), transparent 0%, var(--primary-light) 5%, var(--primary-light) 15%, var(--primary-light) 30%, transparent 40%, transparent 100%) border-box;
  border: 2px solid transparent;
  animation: border-spin 2.5s linear infinite;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-shiny::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0.5px, transparent 0);
  background-size: 4px 4px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.btn-shiny .btn-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes border-spin {
  from { --gradient-angle: 0deg; }
  to { --gradient-angle: 360deg; }
}

@keyframes animStar {
  from { transform: translateY(0); }
  to { transform: translateY(-2000px); }
}

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Ghost button (dark variant) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  max-width: 680px;
  margin: 2.5rem auto 0;
}

.bento-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30,41,59,0.25) 0%, rgba(15,23,42,0.45) 100%);
  border: 1px solid rgba(59,130,246,0.06);
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, transparent 30%, rgba(59,130,246,0.04) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(59,130,246,0.18);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(59,130,246,0.06), 0 8px 32px rgba(0,0,0,0.3);
}

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

.bento-card .bento-hover-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,0.05) 0%, rgba(59,130,246,0.02) 40%, transparent 60%);
}

.bento-card:hover .bento-hover-glow {
  opacity: 1;
}

.bento-card .bento-accent {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  margin-bottom: 1rem;
  opacity: 0.5;
  transition: width 0.4s ease, opacity 0.4s ease;
}

.bento-card:hover .bento-accent {
  width: 44px;
  opacity: 1;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .bento-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* ===== Loading Screen ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  animation: load-pulse 1.2s ease-in-out infinite;
}

.loading-logo span {
  color: var(--primary-light);
}

@keyframes load-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1); }
}

/* ===== Nav Button Improvements ===== */
.nav-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ===== Footer Improvements ===== */
.footer-inner {
  gap: 2.5rem;
}

.footer-brand p {
  margin-top: 0.5rem;
  opacity: 0.6;
  font-size: 0.85rem;
}

.footer-contact {
  gap: 0.6rem;
}

/* ===== Contact Box Polish ===== */
.contact-box {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.contact-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.08);
}

/* ===== Inner Page Card Polish ===== */
.service-card {
  transition: transform 0.4s var(--ease), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
}

/* ===== Eyebrow Badge ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: ping-anim 2s ease-out infinite;
}

/* ===== Smooth page body ===== */
body {
  opacity: 0;
  animation: body-fade-in 0.5s ease 0.1s forwards;
}

@keyframes body-fade-in {
  to { opacity: 1; }
}

/* ===== Better mobile nav ===== */
@media (max-width: 720px) {
  .nav-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.5rem 0.75rem;
  }

  .nav-buttons .btn {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ===== Gradient line separator ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.2), transparent);
  margin: 0 auto;
  max-width: 600px;
}

/* ===== CTA Button Glow ===== */
.btn-shiny:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
}

.btn-ghost:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* ===== Better step numbers ===== */
.step-num {
  position: relative;
}

.step-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  z-index: -1;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.step:hover .step-num::after {
  opacity: 1;
  transform: scale(1.15);
}

/* ===== Responsive nav buttons fix ===== */
@media (max-width: 720px) {
  .btn-nav {
    display: inline-flex !important;
  }
}

/* Accent banner */
.accent-banner {
  background: var(--primary);
  padding: 4rem 2rem;
  text-align: center;
  color: #000;
}

.accent-banner h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: #000;
}

.accent-banner .attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 500;
}

.accent-banner .attribution-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Logo strip */
.logo-strip {
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  padding: 2.5rem 0;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.logo-strip:hover {
  opacity: 1;
}

.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.logo-strip-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.logo-strip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.logo-strip-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

/* Footer watermark */
.footer-watermark {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
  pointer-events: none;
  user-select: none;
}

.footer-watermark p {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  line-height: 1;
  margin: 0;
}

/* CTA section */
.cta-section {
  padding: 6rem 0;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #fff;
}

.cta-section > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.cta-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  gap: 0.75rem;
}

.cta-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.cta-form input:focus {
  border-color: var(--primary-light);
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.cta-form button {
  background: var(--primary-light);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.cta-form button:hover {
  background: var(--primary);
}

/* Pricing card */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-hover);
}

.pricing-card.featured {
  border-color: var(--primary-light);
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.06);
  transform: scale(1.03);
  z-index: 1;
}

.pricing-card .badge-rec {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-light);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.pricing-card .pricing-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.pricing-card ul li .check {
  color: var(--primary-light);
}

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