/* ============================================
   coolcoders.de – Dark Mode Only
   Mega cool. No compromises.
   ============================================ */

/* --- Variables --- */
:root {
  --bg-primary: #08080d;
  --bg-secondary: #0e0e16;
  --bg-card: #13131c;
  --bg-card-hover: #18182a;
  --accent: #00ffc8;
  --accent-dim: rgba(0, 255, 200, 0.08);
  --accent-glow: rgba(0, 255, 200, 0.25);
  --accent-rgb: 0, 255, 200;
  --accent-2: #00a8ff;
  --accent-2-rgb: 0, 168, 255;
  --pink: #ff006e;
  --pink-rgb: 255, 0, 110;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #6e6e8a;
  --border: #1e1e2e;
  --border-light: #2a2a3e;
  --gradient-1: linear-gradient(135deg, #00ffc8, #00a8ff);
  --gradient-2: linear-gradient(135deg, #ff006e, #ff7b00);
  --gradient-3: linear-gradient(135deg, #00ffc8, #00a8ff, #7b61ff);
  --nav-bg: rgba(8, 8, 13, 0.8);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Geist', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-1);
  z-index: 200;
  width: 0%;
  transition: none;
}

/* --- Noise Texture Overlay --- */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 150;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' 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: 256px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}

nav.scrolled {
  border-bottom-color: var(--border);
}

.logo {
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--text-muted); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
  letter-spacing: 0.3px;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-xs);
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  transition: transform 0.2s, box-shadow 0.3s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger svg { stroke: var(--text-secondary); transition: stroke 0.3s; }
.hamburger:hover svg { stroke: var(--accent); }

/* Mobile Menu */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 104;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-overlay.open { opacity: 1; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 105;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s, padding-left 0.3s;
}
.mobile-menu a:hover { color: var(--accent); padding-left: 0.5rem; }
.mobile-menu a.nav-cta-mobile {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  margin-top: 1.5rem;
  border: none;
}

/* ============================================
   HERO – Cinematic Video Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 4rem 5vw;
  position: relative;
  overflow: hidden;
  background: #070b0a;
}

/* Background Video */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* Overlays */
.hero-overlay-left {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, #070b0a 0%, #070b0aCC 25%, transparent 60%);
  pointer-events: none;
}
.hero-overlay-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  z-index: 1;
  background: linear-gradient(to top, #070b0a 0%, transparent 100%);
  pointer-events: none;
}

/* Grid Lines */
.hero-gridlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-gridline {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.06);
}

/* Central Glow SVG */
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 400px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* Hero Content Wrapper */
.hero-content-wrap {
  position: relative;
  z-index: 3;
  max-width: 750px;
}

/* ---- Liquid Glass Card ---- */
.glass-card {
  width: 200px;
  height: 200px;
  padding: 1.2rem;
  margin-bottom: 2rem;
  transform: translateY(-50px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.03) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.glass-card-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}
.glass-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}
.glass-card-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}
.glass-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin: 0;
}
.glass-card-arrow {
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  align-self: flex-start;
}

/* ---- Hero Typography ---- */
.hero-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.hero-tag .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 1.5rem 0;
  max-width: 750px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}
.hero-dot {
  color: #5ed29c;
}

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
  position: relative;
}

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-family: 'Geist', sans-serif;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
  font-family: 'Geist', sans-serif;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
section {
  padding: 7rem 2.5rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Alternating section backgrounds */
.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================
   BRAND MARQUEE
   ============================================ */
.brand-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-secondary);
}

.marquee {
  display: flex;
  gap: 4rem;
  animation: marquee 250s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

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

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.4s, box-shadow 0.4s, background 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.06);
  background: var(--bg-card-hover);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  transition: box-shadow 0.3s;
}
.service-card:hover .service-icon {
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover .card-accent { opacity: 1; }

/* ============================================
   PROJECTS / CASE STUDIES
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.4s, background 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: var(--bg-card-hover);
}

.project-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  flex: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: 1.2rem;
  transition: gap 0.3s;
}
.project-link:hover { gap: 0.7rem; }

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

/* ============================================
   TECH STACK
   ============================================ */
.stack-wrapper { max-width: 900px; margin: 0 auto; }

.stack-category {
  margin-bottom: 2rem;
  text-align: center;
}

.stack-category-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.stack-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all 0.3s;
  cursor: default;
}
.stack-pill:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.stack-pill.highlight {
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================
   TERMINAL
   ============================================ */
.terminal-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 700px;
  margin: 3rem auto 0;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 0.8rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  line-height: 2;
}
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd { color: var(--text-primary); }
.terminal-body .output { color: var(--text-muted); }
.terminal-body .success { color: #28c840; }

/* ============================================
   WORKFLOW / PROCESS
   ============================================ */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Connecting line */
.workflow-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border-light);
}

.workflow-step {
  text-align: center;
  position: relative;
}

.workflow-num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  color: var(--bg-primary);
  background: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 5px var(--border);
}

.workflow-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.big-quote {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
}

.big-quote::before {
  content: '\201E';
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -2rem;
  left: -1.5rem;
  font-style: normal;
  line-height: 1;
}

.philosophy-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

/* ============================================
   NUMBERS STRIP
   ============================================ */
.numbers-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.number-item { text-align: center; }

.number-item .num {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.number-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--accent); }

.faq-question i {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question i {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================
   CONTACT CTA
   ============================================ */
#contact {
  text-align: center;
  padding: 8rem 2.5rem;
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: -0.02em;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  position: relative;
}

.contact-item { display: flex; align-items: center; gap: 0.6rem; }

.contact-item a {
  font-family: 'Geist Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}
.contact-item a:hover { opacity: 0.7; }

.contact-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-right a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-right a:hover { color: var(--accent); }

.footer-separator {
  color: var(--border);
  font-size: 0.7rem;
  user-select: none;
}

/* ============================================
   SUBPAGE: Page Header
   ============================================ */
.page-header {
  padding: 10rem 2.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .section-tag { margin-bottom: 1.2rem; }

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.page-header-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   SUBPAGE: Content
   ============================================ */
.content-section {
  padding: 4rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.content-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.content-section ul {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-section li { line-height: 1.8; margin-bottom: 0.3rem; }

/* Service Detail */
.service-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, background 0.3s;
}
.service-detail:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: var(--bg-card-hover);
}
.service-detail .card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-1);
}

.service-detail-icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
}

.service-detail h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--text-primary);
}

.service-detail p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.tech-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.tech-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

/* ============================================
   SUBPAGE: Legal
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2.5rem 6rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

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

.legal-content ul {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.legal-content li { line-height: 1.8; margin-bottom: 0.3rem; }

.legal-content a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}
.legal-content a:hover { opacity: 0.7; }

/* ============================================
   SUBPAGE: Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.4s, background 0.3s;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: var(--bg-card-hover);
}

.contact-card-icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
}

.contact-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }
.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-family: 'Geist Mono', monospace;
  font-size: 0.82rem;
  transition: opacity 0.3s;
}
.contact-card a:hover { opacity: 0.7; }

.sub-cta {
  text-align: center;
  padding: 6rem 2.5rem;
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.sub-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.sub-cta p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 3rem auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 0.4rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: -4.5px;
  box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 4px var(--border);
}

.timeline-year {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.timeline-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; margin-top: 0; }
.timeline-item p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ============================================
   COOKIE CONSENT
   ============================================ */
.consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  padding: 1.5rem 2rem;
  background: rgba(14, 14, 22, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}
.consent-banner.visible { transform: translateY(0); }

.consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.consent-text { flex: 1; min-width: 280px; }
.consent-text p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.consent-text a { color: var(--accent); text-decoration: none; }
.consent-text a:hover { text-decoration: underline; }

.consent-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.consent-btn {
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
  border: none;
  white-space: nowrap;
}

.consent-btn-accept {
  background: var(--accent);
  color: var(--bg-primary);
}
.consent-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.consent-btn-necessary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.consent-btn-necessary:hover { border-color: var(--accent); }

.consent-btn-settings {
  background: transparent;
  color: var(--text-muted);
  padding: 0.6rem 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-btn-settings:hover { color: var(--accent); }

.consent-settings {
  display: none;
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}
.consent-settings.open { display: block; }

.consent-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.consent-category:last-child { border-bottom: none; }
.consent-category-info h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.2rem; }
.consent-category-info p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

.toggle-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-light);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: var(--bg-primary);
  border-radius: 50%;
  transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }

.consent-save-row { display: flex; justify-content: flex-end; padding-top: 1rem; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-menu { display: flex; }

  section { padding: 4rem 1.5rem; }
  .hero {
    padding: 33svh 1rem 2rem 1rem;
    min-height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .hero-video-wrap {
    height: 100%;
    min-height: 100svh;
  }
  .hero { overflow: hidden; }
  .hero-content-wrap { overflow: hidden; }
  .hero-gridlines { display: none; }
  .hero-headline { font-size: clamp(28px, 9vw, 44px); line-height: 1.05; }
  .hero-tag { font-size: 0.7rem; }
  .hero-desc { font-size: 13px; max-width: 100%; }
  .hero-content-wrap { max-width: 100%; }
  .hero-overlay-left {
    background: linear-gradient(to right, #070b0a 0%, #070b0aDD 40%, transparent 80%);
  }
  .page-header { padding: 8rem 1.5rem 3rem; }

  .numbers-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-info { flex-direction: column; align-items: center; }

  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-right { justify-content: center; }

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

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .workflow-grid::before { display: none; }

  .content-section { padding: 3rem 1.5rem; }
  .legal-content { padding: 2rem 1.5rem 4rem; }

  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-buttons { flex-direction: column; }
  .consent-btn { width: 100%; text-align: center; }

  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.5rem; }

  .brand-strip { padding: 2rem 0; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 26px; }
  .hero-desc { font-size: 12px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-ghost { width: 100%; justify-content: center; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  body::after { display: none; }
  .scroll-progress { display: none; }
  nav { display: none; }
  .consent-banner { display: none !important; }
  .mobile-menu, .mobile-overlay { display: none !important; }
  .hero { min-height: auto; padding-top: 2rem; }
  .hero-video-wrap, .hero-gridlines, .hero-glow { display: none; }
  section { padding: 2rem 0; }
  footer { border-top: 1px solid #333; }
  * { transition: none !important; animation: none !important; }
  body { background: #000; }
}
