/* ========================================
   Yousite Consulting – Design System & Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #4F46E5;
  --color-primary-light: #6366F1;
  --color-primary-dark: #3730A3;
  --color-accent: #06B6D4;
  --color-accent-glow: #22D3EE;
  --color-dark: #1E1B2E;
  --color-dark-soft: #2D2A3E;
  --color-gray-900: #111827;
  --color-gray-800: #1F2937;
  --color-gray-700: #374151;
  --color-gray-600: #4B5563;
  --color-gray-500: #6B7280;
  --color-gray-400: #9CA3AF;
  --color-gray-300: #D1D5DB;
  --color-gray-200: #E5E7EB;
  --color-gray-100: #F3F4F6;
  --color-gray-50: #F9FAFB;
  --color-white: #FFFFFF;
  --color-bg: #FAFBFF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  --gradient-hero: linear-gradient(160deg, #0F0C29 0%, #1E1B4B 40%, #302B63 100%);
  --gradient-card: linear-gradient(145deg, rgba(79,70,229,0.05) 0%, rgba(6,182,212,0.05) 100%);
  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99,102,241,0.08), transparent 40%);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding: 6rem 0;
  --container-width: 1200px;
  --container-padding: 0 1.5rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 40px rgba(79,70,229,0.15);

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-gray-800);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--color-gray-600);
  max-width: 65ch;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-gray-200);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-gray-400);
}

.section--gray {
  background: var(--color-gray-50);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  background: rgba(79,70,229,0.08);
  padding: 0.35rem 1rem;
  border-radius: 50px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79,70,229,0.4);
  color: var(--color-white);
}

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

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--color-primary);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn svg,
.btn .btn-icon {
  width: 18px;
  height: 18px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-base);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 0.6rem 0;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

 .header-logo .logo-image {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
 }

 .site-header.scrolled .header-logo .logo-image {
  height: 60px;
 }

 .footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
 }

 .footer-logo .logo-image {
  height: 100px;
 }

.header-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
}

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

.header-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.site-header.scrolled .header-nav a {
  color: var(--color-gray-600);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-white);
}

.site-header.scrolled .header-nav a:hover,
.site-header.scrolled .header-nav a.active {
  color: var(--color-primary);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width var(--transition-base);
}

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

.header-cta {
  display: none;
}

.header-cta .btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.site-header.scrolled .mobile-toggle span {
  background: var(--color-gray-800);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--color-gray-800) !important;
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--color-gray-800) !important;
}

/* --- Hero Profile Image --- */
.hero-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(99,102,241,0.4);
  box-shadow: 0 0 25px rgba(79,70,229,0.3), 0 0 60px rgba(6,182,212,0.15);
  animation: profileGlow 4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes profileGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(79,70,229,0.3), 0 0 60px rgba(6,182,212,0.15); border-color: rgba(99,102,241,0.4); }
  50% { box-shadow: 0 0 35px rgba(79,70,229,0.5), 0 0 80px rgba(6,182,212,0.25); border-color: rgba(6,182,212,0.6); }
}

.hero-profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.hero-profile-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.hero-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #34D399;
  font-weight: 600;
  margin-top: 0.15rem;
}

.hero-profile-status::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* --- Hero Tech Stack Badges --- */
.hero-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(99,102,241,0.4);
  color: var(--color-white);
  transform: translateY(-2px);
}

.tech-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.tech-badge--highlight {
  background: rgba(79,70,229,0.15);
  border-color: rgba(79,70,229,0.3);
  color: #A78BFA;
}

.tech-badge--accent {
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.25);
  color: #67E8F9;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

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

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

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 50px;
  background: rgba(6,182,212,0.08);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

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

/* Grid for hero visual */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,70,229,0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--color-primary);
  border: 1px solid rgba(79,70,229,0.1);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* --- Process / Steps (old grid removed – see timeline styles below) --- */

/* --- Why Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.why-item:hover {
  background: rgba(79,70,229,0.04);
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.why-icon svg {
  stroke: white;
}

/* --- Project Showcase (modern alternating layout) --- */
.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.project-showcase-item--reverse {
  direction: rtl;
}

.project-showcase-item--reverse > * {
  direction: ltr;
}

/* Browser mockup visual */
.project-showcase-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-dark);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.project-browser-mockup {
  position: relative;
  z-index: 2;
  padding: 0.6rem 1rem;
  background: rgba(30,30,40,0.95);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FFBD2E; }
.browser-dots span:nth-child(3) { background: #28CA41; }

.browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  padding: 0.3rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.project-showcase-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}

.project-showcase-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
}

.project-showcase-gradient--1 {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
}

.project-showcase-gradient--2 {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0ea5e9 100%);
}

.project-showcase-gradient--3 {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #10b981 100%);
  opacity: 1;
}

.project-browser-mockup--chat .browser-url {
  color: rgba(255,255,255,0.6);
}

/* Hover lift */
.project-showcase-visual {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-showcase-item:hover .project-showcase-visual {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

/* Content side */
.project-showcase-content {
  padding: 1rem 0;
}

.project-showcase-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.tag--primary {
  color: var(--color-primary);
  background: rgba(79,70,229,0.08);
}

.tag--outline {
  color: var(--color-gray-500);
  background: transparent;
  border: 1px solid var(--color-gray-200);
}

.project-showcase-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-showcase-content > p {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-gray-700);
  font-weight: 500;
}

.project-highlights li svg {
  flex-shrink: 0;
  color: #10B981;
  stroke: #10B981;
}

/* --- Reference Cards (Startseite) --- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ref-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.ref-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border-color: rgba(79,70,229,0.2);
}

.ref-card-visual {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

 .ref-card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
 }

 .ref-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
  pointer-events: none;
 }

 .ref-card-visual--3::after {
  background: linear-gradient(135deg, rgba(6,78,59,0.5) 0%, rgba(6,95,70,0.4) 40%, rgba(16,185,129,0.3) 100%);
 }

.ref-card-visual--1 {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
}

.ref-card-visual--2 {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0ea5e9 100%);
}

.ref-card-visual--3 {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #10b981 100%);
}

.ref-card-browser {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.5rem 0.75rem;
  background: rgba(30,30,40,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}

.ref-card-browser span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ref-card-browser span:nth-child(1) { background: #FF5F57; }
.ref-card-browser span:nth-child(2) { background: #FFBD2E; }
.ref-card-browser span:nth-child(3) { background: #28CA41; }

.ref-card-browser--dark {
  background: rgba(30,30,40,0.95);
}

.ref-card-url {
  margin-left: auto;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
}

.ref-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ref-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.ref-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ref-card-body > p {
  font-size: 0.88rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.ref-card-detail {
  font-size: 0.82rem !important;
  color: var(--color-gray-400) !important;
  font-style: italic;
  margin-bottom: 1rem !important;
}

.ref-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.3s;
}

.ref-card-link:hover {
  gap: 0.7rem;
}

.ref-card-link svg {
  transition: transform 0.3s;
}

.ref-card-link:hover svg {
  transform: translate(2px, -2px);
}

/* Legacy compat */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* --- Contact Hero – Dark --- */
.contact-hero {
  position: relative;
  background: var(--color-dark);
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 40%, rgba(79,70,229,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 70% 60%, rgba(6,182,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.section-label--light {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
}

.contact-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.contact-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-hero-stats {
  display: flex;
  gap: 2.5rem;
}

.contact-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #A78BFA 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Contact Main Section --- */
.contact-main-section {
  background: var(--color-gray-50);
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.contact-grid--modern {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  border: 1px solid var(--color-gray-100);
}

.contact-form-header {
  margin-bottom: 2rem;
}

.contact-form-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.contact-form-header p {
  color: var(--color-gray-500);
  font-size: 0.92rem;
}

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

/* --- Contact Sidebar --- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  border: 1px solid var(--color-gray-100);
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.contact-cta-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-cta-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
}

.contact-cta-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.contact-cta-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.contact-cta-card .btn--primary {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.contact-cta-card .btn--primary:hover {
  background: rgba(255,255,255,0.25);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label:not(.checkbox-label) {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-gray-800);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

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

/* --- About Page --- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

/* --- Animated Visitenkarte --- */
.vcard-wrapper {
  display: flex;
  justify-content: center;
  perspective: 800px;
}

.vcard {
  width: 420px;
  background: linear-gradient(145deg, #1a1740 0%, #1e1b4b 50%, #0f172a 100%);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99,102,241,0.2);
  box-shadow:
    0 25px 60px rgba(15,12,41,0.4),
    0 0 40px rgba(79,70,229,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.vcard:hover {
  box-shadow:
    0 35px 80px rgba(15,12,41,0.5),
    0 0 60px rgba(79,70,229,0.2);
}

.vcard-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.04) 45%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 55%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(45deg);
  animation: vcardShine 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes vcardShine {
  0%, 100% { transform: translateX(-100%) rotate(45deg); }
  50% { transform: translateX(100%) rotate(45deg); }
}

.vcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

 .vcard-top--center {
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
 }

 .vcard-logo-large {
  width: min(340px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
 }

.vcard-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

 .vcard-logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
 }

.vcard-logo .logo-icon {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.vcard-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}

.vcard-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.vcard-photo {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 45px rgba(15,12,41,0.45), 0 0 35px rgba(79,70,229,0.18);
}

.vcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  image-rendering: auto;
}

.vcard-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.vcard-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white) !important;
  letter-spacing: -0.01em;
  margin-bottom: 0.1rem;
}

.vcard-role {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

.vcard-info .hero-profile-status {
  justify-content: center;
  margin-top: 0.35rem;
}

.vcard-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.vcard-contact {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  transition: all var(--transition-base);
}

.value-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,70,229,0.15);
}

.value-card h3 {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* --- AI Agents --- */
.agent-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6,182,212,0.3);
}

.agent-card .card-icon {
  background: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, rgba(79,70,229,0.1) 100%);
}

/* --- Service Detail --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

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

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

.service-detail-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #E0E7FF 0%, #CFFAFE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-size: 0.85rem;
}

.service-detail-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-detail-content .problem,
.service-detail-content .solution,
.service-detail-content .benefit {
  margin-bottom: 1rem;
}

.service-detail-content .label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(79,70,229,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  border: 1px solid rgba(79,70,229,0.1);
  transition: all var(--transition-base);
}

.contact-info-item:hover .contact-info-icon {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.contact-info-item:hover .contact-info-icon svg {
  stroke: white;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-gray-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

 .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
 }

.footer-brand p {
  color: var(--color-gray-400);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
  text-align: center;
}

.footer-heading {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  color: var(--color-gray-400);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--color-gray-400);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* --- Animations (Scroll Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  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; }

/* --- Page Hero (Subpages) --- */
.page-hero {
  padding: 10rem 0 4rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero h1 {
  color: var(--color-white);
  position: relative;
  max-width: 700px;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.15rem;
  margin-top: 1rem;
  position: relative;
  max-width: 560px;
}

.page-hero .section-label {
  position: relative;
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .header-cta {
    display: block;
  }
}

@media (max-width: 992px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vcard {
    width: 100%;
    max-width: 380px;
  }

  .vcard-photo {
    height: 280px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .contact-grid,
  .contact-grid--modern {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ref-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-showcase-item,
  .project-showcase-item--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .project-showcase-item--reverse > * {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }

  .vcard-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
  }

  .contact-hero {
    padding: 7rem 0 3rem;
  }

  .contact-hero h1 {
    font-size: 1.75rem;
  }

  .contact-hero-stats {
    gap: 1.5rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

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

  .contact-hero-stat-number {
    font-size: 1.25rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: right var(--transition-slow);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  }

  .header-nav.open {
    right: 0;
  }

  .header-nav a {
    color: var(--color-gray-700) !important;
    font-size: 1.05rem;
  }

  .header-nav a:hover {
    color: var(--color-primary) !important;
  }

  .header-cta {
    display: none !important;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-profile {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-profile-img {
    width: 64px;
    height: 64px;
  }

  .hero-profile-name {
    font-size: 0.9rem;
  }

  .hero-profile-role {
    font-size: 0.72rem;
  }

  .hero-tech-stack {
    gap: 0.4rem;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .tech-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.7rem;
  }

  .tech-badge svg {
    width: 12px;
    height: 12px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }

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

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ========================================
   HERO VISUAL – Animated Code/AI Element
   ======================================== */

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

.hero-visual {
  position: relative;
  width: 100%;
  height: 520px;
  perspective: 1000px;
}

/* Floating code window */
.hero-code-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(-8deg) rotateX(4deg);
  width: 380px;
  background: rgba(15, 12, 41, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  box-shadow:
    0 0 80px rgba(79, 70, 229, 0.2),
    0 0 160px rgba(6, 182, 212, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: codeWindowFloat 6s ease-in-out infinite;
  z-index: 3;
}

@keyframes codeWindowFloat {
  0%, 100% { transform: translate(-50%, -50%) rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotateY(-6deg) rotateX(2deg) translateY(-15px); }
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot--red { background: #FF5F57; }
.code-dot--yellow { background: #FEBC2E; }
.code-dot--green { background: #28C840; }

.code-window-bar span {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-window-body {
  padding: 18px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  min-height: 220px;
}

.code-window-body .code-tag { color: #7C3AED; }
.code-window-body .code-attr { color: #06B6D4; }
.code-window-body .code-string { color: #34D399; }
.code-window-body .code-comment { color: rgba(255,255,255,0.25); font-style: italic; }
.code-window-body .code-keyword { color: #F472B6; }
.code-window-body .code-fn { color: #FBBF24; }
.code-window-body .code-bracket { color: rgba(255,255,255,0.4); }

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--color-accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

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

/* Floating HTML tag elements */
.floating-tag {
  position: absolute;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
  white-space: nowrap;
}

.floating-tag--1 {
  top: 5%;
  right: 5%;
  background: rgba(79, 70, 229, 0.15);
  color: #A78BFA;
  animation: floatTag1 7s ease-in-out infinite;
}

.floating-tag--2 {
  bottom: 15%;
  left: 0;
  background: rgba(6, 182, 212, 0.15);
  color: #67E8F9;
  animation: floatTag2 8s ease-in-out infinite;
}

.floating-tag--3 {
  top: 20%;
  left: 5%;
  background: rgba(52, 211, 153, 0.12);
  color: #6EE7B7;
  animation: floatTag3 9s ease-in-out infinite;
}

.floating-tag--4 {
  bottom: 5%;
  right: 10%;
  background: rgba(244, 114, 182, 0.12);
  color: #F9A8D4;
  animation: floatTag1 6s ease-in-out infinite reverse;
}

@keyframes floatTag1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-8px, -12px) rotate(-2deg); }
  66% { transform: translate(5px, -6px) rotate(1deg); }
}

@keyframes floatTag2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -10px) rotate(3deg); }
}

@keyframes floatTag3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 15px); }
}

/* Neural network dots */
.hero-neural {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.neural-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.neural-dot:nth-child(1) { top: 10%; left: 20%; animation: pulseDot 3s ease-in-out infinite; }
.neural-dot:nth-child(2) { top: 30%; right: 15%; animation: pulseDot 4s ease-in-out infinite 0.5s; }
.neural-dot:nth-child(3) { bottom: 25%; left: 10%; animation: pulseDot 3.5s ease-in-out infinite 1s; }
.neural-dot:nth-child(4) { top: 60%; right: 25%; animation: pulseDot 4.5s ease-in-out infinite 0.3s; }
.neural-dot:nth-child(5) { bottom: 10%; right: 5%; animation: pulseDot 3s ease-in-out infinite 0.7s; }
.neural-dot:nth-child(6) { top: 15%; right: 35%; animation: pulseDot 5s ease-in-out infinite 1.2s; }
.neural-dot:nth-child(7) { bottom: 40%; left: 30%; animation: pulseDot 4s ease-in-out infinite 0.8s; }

.neural-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent);
  transform-origin: left center;
}

.neural-line:nth-child(8) { top: 12%; left: 22%; width: 150px; transform: rotate(25deg); animation: fadeLineIn 4s ease-in-out infinite; }
.neural-line:nth-child(9) { top: 35%; left: 15%; width: 200px; transform: rotate(-15deg); animation: fadeLineIn 5s ease-in-out infinite 1s; }
.neural-line:nth-child(10) { bottom: 30%; right: 10%; width: 120px; transform: rotate(40deg); animation: fadeLineIn 3.5s ease-in-out infinite 0.5s; }

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.8); opacity: 1; }
}

@keyframes fadeLineIn {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.4; }
}

/* Glow orb behind code window */
.hero-glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, rgba(6,182,212,0.15) 40%, transparent 70%);
  filter: blur(40px);
  animation: orbPulse 5s ease-in-out infinite;
  z-index: 0;
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ========================================
   STATS / SOCIAL PROOF SECTION – MODERN
   ======================================== */

.stats-section {
  padding: 5rem 0 6rem;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(79,70,229,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 50%, rgba(6,182,212,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.stat-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(79,70,229,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(79,70,229,0.1);
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #A78BFA 0%, #818CF8 30%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  line-height: 1.4;
}

.stat-source {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.75rem;
  font-style: italic;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ========================================
   ENHANCED CARD ANIMATIONS
   ======================================== */

.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,0.03), transparent);
  transition: left 0.6s ease;
}

.card:hover::after {
  left: 100%;
}

/* Animated counter for cards */
.card-icon {
  position: relative;
  transition: transform var(--transition-base);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* ========================================
   MARQUEE / INFINITE SCROLL TICKER – MODERN
   ======================================== */

.ticker-section {
  padding: 1.25rem 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a2e 100%);
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(79,70,229,0.15);
  border-bottom: 1px solid rgba(79,70,229,0.15);
}

.ticker-section::before,
.ticker-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-dark) 0%, transparent 100%);
}

.ticker-section::after {
  right: 0;
  background: linear-gradient(270deg, #1a1a2e 0%, transparent 100%);
}

.ticker-track {
  display: flex;
  animation: ticker 30s linear infinite;
  width: max-content;
}

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

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  white-space: nowrap;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s;
}

.ticker-item:hover {
  color: rgba(255,255,255,0.8);
}

.ticker-item .ticker-dot {
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(79,70,229,0.5);
}

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

/* Ultrawide: faster + more spacing */
@media (min-width: 2000px) {
  .ticker-item {
    padding: 0 3.5rem;
    font-size: 0.95rem;
  }
  .ticker-section {
    padding: 1.5rem 0;
  }
  .ticker-section::before,
  .ticker-section::after {
    width: 200px;
  }
}

/* ========================================
   PROCESS SECTION – TIMELINE DESIGN
   ======================================== */

.process-section {
  background: var(--color-gray-50);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 800px 600px at 50% 0%, rgba(79,70,229,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  transition: all 0.4s ease;
}

.process-step:hover .process-step-content {
  transform: translateY(-4px);
}

.process-step:hover .process-icon {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(79,70,229,0.3);
}

/* Visual / Icon side */
.process-step-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.process-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(79,70,229,0.25);
  transition: all 0.4s ease;
  position: relative;
}

.process-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: var(--gradient-primary);
  opacity: 0.15;
  z-index: -1;
}

.process-icon svg {
  stroke: white;
}

/* Connector between steps */
.process-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  min-height: 140px;
}

.process-connector-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, rgba(79,70,229,0.3) 0%, rgba(6,182,212,0.3) 100%);
  position: relative;
}

.process-connector-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(79,70,229,0.4);
}

.process-arrow {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  margin: 0.5rem 0;
  opacity: 0.6;
  animation: arrowBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(79,70,229,0.3));
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.process-connector--last .process-connector-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(16,185,129,0.4);
}

/* Content side */
.process-step-content {
  padding: 2rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  transition: all 0.4s ease;
  position: relative;
}

.process-step-content:hover {
  border-color: rgba(79,70,229,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.process-number {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(79,70,229,0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.process-step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.process-step-content p {
  font-size: 0.92rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.process-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-gray-500);
  background: var(--color-gray-50);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  border: 1px solid var(--color-gray-200);
  letter-spacing: 0.02em;
}

/* Even steps: card left, icon right – same look as odd steps, just mirrored position */

/* ========================================
   ANIMATED BACKGROUND PARTICLES
   ======================================== */

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; animation-duration: 11s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; animation-duration: 14s; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; animation-duration: 13s; animation-delay: 3s; }
.particle:nth-child(6) { left: 85%; animation-duration: 16s; animation-delay: 5s; }
.particle:nth-child(7) { left: 15%; animation-duration: 10s; animation-delay: 6s; }
.particle:nth-child(8) { left: 60%; animation-duration: 12s; animation-delay: 7s; }

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ========================================
   LOGO ICON ENHANCED
   ======================================== */

.header-logo .logo-icon {
  position: relative;
  overflow: hidden;
}

.header-logo .logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.2) 50%,
    transparent 70%
  );
  animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ========================================
   BUTTON PULSE ANIMATION
   ======================================== */

.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn--primary:hover::after {
  width: 300px;
  height: 300px;
}

/* Pulse ring on CTA */
.btn--pulse {
  animation: btnPulseRing 2s ease-out infinite;
}

@keyframes btnPulseRing {
  0% { box-shadow: 0 4px 15px rgba(79,70,229,0.3), 0 0 0 0 rgba(79,70,229,0.4); }
  70% { box-shadow: 0 4px 15px rgba(79,70,229,0.3), 0 0 0 15px rgba(79,70,229,0); }
  100% { box-shadow: 0 4px 15px rgba(79,70,229,0.3), 0 0 0 0 rgba(79,70,229,0); }
}

/* ========================================
   BENTO GRID – STUDIES SECTION
   ======================================== */

.studies-section {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.studies-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 10% 20%, rgba(79,70,229,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 90% 80%, rgba(6,182,212,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.studies-section .section-header h2 {
  color: var(--color-white);
}

.studies-section .section-header p {
  color: rgba(255,255,255,0.5);
}

.studies-section .section-label {
  color: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.1);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.bento-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.bento-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(79,70,229,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.bento-card-inner {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento-card-inner--horizontal {
  flex-direction: row;
  gap: 2rem;
  align-items: center;
}

/* Grid placement */
.bento-card--feature {
  grid-column: 1 / 3;
}

.bento-card--tall {
  grid-row: 1 / 3;
  grid-column: 3;
}

.bento-card--wide {
  grid-column: 1 / 3;
}

/* Icon row */
.bento-icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-icon svg {
  stroke: white;
}

.bento-icon--speed {
  background: linear-gradient(135deg, #F59E0B, #EF4444);
}

.bento-icon--ai {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
}

.bento-icon--design {
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
}

.bento-icon--ux {
  background: linear-gradient(135deg, #10B981, #059669);
}

.bento-source {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  letter-spacing: 0.02em;
}

.bento-stat {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #A78BFA 0%, #818CF8 40%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.4rem;
}

.bento-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* Progress bar visual */
.bento-bar {
  margin-top: auto;
  padding-top: 1.25rem;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  overflow: hidden;
}

.bento-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #6366F1, #06B6D4);
  animation: barGrow 2s ease-out forwards;
  width: 0;
}

@keyframes barGrow {
  to { width: 85%; }
}

/* Dot matrix visual */
.bento-visual-dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 1.5rem;
}

.bento-visual-dots span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(99,102,241,0.15);
  transition: background 0.3s;
}

.bento-visual-dots span:nth-child(-n+7) {
  background: rgba(99,102,241,0.5);
  box-shadow: 0 0 8px rgba(99,102,241,0.3);
}

/* Mini chart visual */
.bento-chart {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 120px;
  flex-shrink: 0;
  min-width: 120px;
}

.bento-chart-bar {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: rgba(255,255,255,0.08);
  position: relative;
  transition: height 1s ease;
  min-width: 44px;
}

.bento-chart-bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.bento-chart-bar--highlight {
  background: linear-gradient(180deg, #6366F1, #06B6D4);
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

/* ========================================
   ULTRAWIDE (2000px+)
   ======================================== */

@media (min-width: 2000px) {
  .stats-section {
    padding: 6rem 0 7rem;
  }

  .stat-item {
    padding: 3rem 2rem;
  }

  .stat-number {
    font-size: 5rem;
  }

  .process-timeline {
    max-width: 1100px;
  }

  .process-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
  }

  .process-step-content {
    padding: 2.5rem;
  }
}

/* ========================================
   RESPONSIVE: TABLET (992px)
   ======================================== */

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 350px;
    margin-top: 2rem;
  }

  .hero-code-window {
    width: 320px;
  }

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

  .process-step {
    grid-template-columns: 1fr 60px 1fr;
  }

  .process-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

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

  .process-connector {
    min-height: 120px;
  }
}

/* ========================================
   RESPONSIVE: MOBILE (768px)
   ======================================== */

@media (max-width: 768px) {
  .hero {
    padding-top: 7.5rem;
  }

  .hero-label {
    margin-top: 1rem;
  }

  .hero-visual {
    height: 300px;
    margin-top: 1rem;
  }

  .hero-code-window {
    width: 280px;
  }

  .floating-tag--1,
  .floating-tag--3 {
    display: none;
  }

  .stats-section {
    padding: 3rem 0 4rem;
  }

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

  .stat-item {
    padding: 1.75rem 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Bento grid: stack on mobile */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--feature,
  .bento-card--tall,
  .bento-card--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .bento-card-inner--horizontal {
    flex-direction: column;
    gap: 1.25rem;
  }

  .bento-chart {
    width: 100%;
    height: 80px;
  }

  /* Process: stack vertically */
  .process-step {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Even steps already left-aligned, no override needed */

  .process-step-visual {
    order: 1;
    padding: 1rem 0 0;
  }

  .process-connector {
    order: 2;
    flex-direction: row;
    min-height: auto;
    height: 40px;
    width: 100%;
    padding: 0 2rem;
  }

  .process-connector-line {
    width: 100%;
    height: 2px;
    flex: 1;
  }

  .process-connector-line::before {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  .process-arrow {
    transform: rotate(-90deg);
  }

  @keyframes arrowBounce {
    0%, 100% { transform: rotate(-90deg) translateY(0); }
    50% { transform: rotate(-90deg) translateY(3px); }
  }

  .process-step-content {
    order: 3;
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .process-icon {
    width: 56px;
    height: 56px;
  }
}

/* ========================================
   RESPONSIVE: SMALL MOBILE (480px)
   ======================================== */

@media (max-width: 480px) {
  .hero-visual {
    height: 260px;
  }

  .hero-code-window {
    width: 240px;
    transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg);
  }

  @keyframes codeWindowFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
  }

  .stats-section {
    padding: 2.5rem 0 3rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-item {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .stat-number {
    font-size: 2.2rem;
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 80px;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .stat-source {
    border-top: none;
    padding-top: 0.25rem;
    margin-top: 0.25rem;
  }

  .process-step-visual {
    padding: 0.75rem 0 0;
  }

  .process-step-content {
    padding: 1.25rem;
  }

  .process-connector {
    height: 30px;
    padding: 0 1rem;
  }
}

/* ========================================
   CHECKBOX & FORM ENHANCEMENTS
   ======================================== */

.form-group--checkbox {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-gray-600);
  line-height: 1.5;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-gray-300);
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-fast);
  margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--gradient-primary);
  border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

 .checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  outline: 3px solid rgba(79,70,229,0.25);
  outline-offset: 3px;
  border-color: var(--color-primary);
 }

.checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-hint {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--color-gray-400);
  text-align: center;
}

 .form-error {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #EF4444;
 }

 .form-error.is-visible {
  display: block;
 }

 .checkbox-label.is-invalid .checkbox-custom {
  border-color: rgba(239,68,68,0.75);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
 }

/* ========================================
   FORM MESSAGE OVERLAY (Success/Error)
   ======================================== */

.form-message-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.form-message-box {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}

.form-message-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 32px;
  color: white;
  font-weight: bold;
  animation: iconPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-message-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.form-message-text {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.form-message-close {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.form-message-close:hover {
  background: var(--color-gray-200);
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes messageSlideIn {
  from { 
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes iconPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ========================================
   MODERNIZED SECTION ACCENTS
   ======================================== */

.section-label svg {
  display: inline;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.value-card h3 svg {
  vertical-align: middle;
  flex-shrink: 0;
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.legal-content p {
  margin-bottom: 1rem;
  max-width: none;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content ul li {
  padding: 0.25rem 0;
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
