@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Exo+2:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-black: #000000;
  --bg-card: rgba(14, 29, 58, 0.2);
  --bg-card-hover: rgba(14, 29, 58, 0.35);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(6, 182, 212, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Guidelines Colors */
  --brand-blue: #0E1D3A;
  --brand-teal: #00A8A8;
  
  /* Secondary / Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-gradient: linear-gradient(135deg, #00A8A8 0%, #8b5cf6 100%);
  --accent-gradient-hover: linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --shadow-glow: 0 0 40px rgba(0, 168, 168, 0.15);
  --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-black);
  overflow-x: hidden;
  position: relative;
}

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

/* Ambient glow backgrounds matching visual guidelines */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 168, 168, 0.12) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: absolute;
  top: 40%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(0, 168, 168, 0.04) 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(120px);
  animation: pulseGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  50% { transform: scale(1.05) translate(2%, 2%); opacity: 1; }
  100% { transform: scale(0.95) translate(-2%, -2%); opacity: 0.8; }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

button {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Scroll progress bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 101;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px rgba(0, 168, 168, 0.5);
  transition: width 0.1s ease-out;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover svg {
  transform: rotate(5deg) scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--text-primary) !important;
  background: var(--accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 168, 168, 0.2);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 4px 25px rgba(0, 168, 168, 0.4);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  position: relative;
  z-index: 100;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 6px auto;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Sections */
.section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--brand-teal);
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.split-copy h2,
.contact-card h2 {
  margin: 20px 0;
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 36px;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  min-height: 52px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  z-index: -1;
  transition: none;
}

.button:hover::before {
  animation: shine 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes shine {
  100% { left: 150%; }
}

.button.primary {
  color: #fff;
  background: var(--accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 168, 168, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button.primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 15px 40px rgba(0, 168, 168, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.button.secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
  transform: translateY(-3px) scale(1.02);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  min-height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(10, 20, 35, 0.8), rgba(0, 0, 0, 0.95));
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-dashboard-img {
  position: absolute;
  width: 90%;
  height: 80%;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-hover);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  opacity: 0.95;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  z-index: 2;
}

.hero-visual:hover .hero-dashboard-img {
  transform: scale(1.025);
  opacity: 1;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.orb-a {
  width: 280px;
  height: 280px;
  left: 10%;
  top: 10%;
  background: var(--brand-teal);
  animation: floatOrb 12s ease-in-out infinite;
}

.orb-b {
  width: 300px;
  height: 300px;
  right: 10%;
  bottom: 10%;
  background: var(--accent-violet);
  animation: floatOrb 15s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(30px, -40px) scale(1.1) rotate(10deg); }
  66% { transform: translate(-20px, 20px) scale(0.9) rotate(-5deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* Stats strip */
.stats-strip {
  padding: 40px 0 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 30, 50, 0.3) 0%, rgba(10, 15, 25, 0.5) 100%);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  background: linear-gradient(180deg, rgba(25, 40, 70, 0.4) 0%, rgba(10, 15, 25, 0.6) 100%);
}

.stat-number {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 80%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.3));
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Duo-Ansatz split section */
.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.split-copy .section-desc {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.approach-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 30, 50, 0.3) 0%, rgba(10, 15, 25, 0.5) 100%);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.approach-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(180deg, rgba(25, 40, 70, 0.4) 0%, rgba(10, 15, 25, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.approach-card.highlight {
  border-color: rgba(0, 168, 168, 0.4);
  background: radial-gradient(circle at 100% 0%, rgba(0, 168, 168, 0.15) 0%, rgba(10, 20, 35, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(0, 168, 168, 0.2), 0 10px 40px rgba(0, 168, 168, 0.2);
}

.card-icon-container {
  font-size: 28px;
  margin-bottom: 16px;
}

.approach-card h3 {
  margin: 0 0 12px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
}

.approach-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Section Header */
.section-head {
  max-width: 800px;
  margin-bottom: 50px;
}

.section-head h2 {
  font-size: clamp(34px, 4.5vw, 54px);
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

/* Timeline / Storyline Pathway */
.path-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.path-step {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 30, 50, 0.3) 0%, rgba(10, 15, 25, 0.5) 100%);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.path-step:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, rgba(30, 20, 60, 0.4) 0%, rgba(10, 15, 25, 0.6) 100%);
  transform: translateY(-8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow-purple);
}

.step-num {
  font-family: 'Exo 2', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--brand-teal);
  margin-bottom: 24px;
  line-height: 1;
}

.path-step h3 {
  margin: 0 0 14px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.3;
}

.path-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Service Grid (Leistungen) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 30, 50, 0.3) 0%, rgba(10, 15, 25, 0.5) 100%);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(180deg, rgba(25, 40, 70, 0.4) 0%, rgba(10, 15, 25, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  background: var(--accent-gradient);
  box-shadow: 0 4px 15px rgba(0, 168, 168, 0.2);
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Project Canvas Tab Component */
.canvas-container {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.canvas-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
}

.canvas-tab {
  padding: 24px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  outline: none;
}

.canvas-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.canvas-tab.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 3px solid var(--brand-teal);
}

.canvas-content {
  padding: 48px;
}

.canvas-panel {
  display: none;
}

.canvas-panel.active {
  display: block;
  animation: fadeInTab 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: start;
}

.panel-grid h3 {
  margin: 0 0 16px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.panel-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.panel-details h4 {
  margin: 0 0 16px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-details ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.panel-details li {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding-top: 60px;
}

.contact-card {
  padding: 60px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 10% 20%, rgba(0, 168, 168, 0.1) 0%, rgba(0, 0, 0, 0.95) 80%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
}

.contact-card h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

/* Footer */
.site-footer {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 18px;
}

/* Code Terminal Section */
.terminal-container {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: #030712;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  margin-top: 40px;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #090d16;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-tabs {
  display: flex;
  gap: 8px;
}

.terminal-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.terminal-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.terminal-tab.active {
  color: var(--text-primary);
  background: rgba(0, 168, 168, 0.1);
  border-color: var(--brand-teal);
}

.terminal-body {
  padding: 32px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}

.terminal-code {
  display: none;
  margin: 0;
}

.terminal-code.active {
  display: block;
  animation: fadeInTab 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Code Highlighting */
.terminal-code .key { color: #f43f5e; }
.terminal-code .str { color: #34d399; }
.terminal-code .num { color: #38bdf8; }
.terminal-code .comment { color: #64748b; font-style: italic; }
.terminal-code .tag { color: #fb7185; }
.terminal-code .attr { color: #c084fc; }

/* Configurator Section */
.config-container {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  overflow: hidden;
  padding: 48px;
  margin-top: 40px;
  box-shadow: var(--shadow-glow-purple);
}

.config-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.config-progress::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-black);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.progress-step span {
  position: absolute;
  top: 40px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-step.active {
  border-color: var(--brand-teal);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(0, 168, 168, 0.4);
}

.progress-step.active span {
  color: var(--brand-teal);
}

.progress-step.completed {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: var(--bg-black);
}

.progress-step.completed span {
  color: var(--text-primary);
}

.config-card-wrapper {
  max-width: 800px;
  margin: 0 auto;
  min-height: 480px;
}

.config-step-panel {
  display: none;
}

.config-step-panel.active {
  display: block;
  animation: fadeInTab 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.config-step-panel h3 {
  margin: 0 0 32px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  text-align: center;
}

.config-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.config-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.config-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.option-title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

.option-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  display: block;
}

.config-option-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(6, 182, 212, 0.2);
}

.config-option-card:has(input:checked),
.config-option-card.selected {
  border-color: var(--brand-teal);
  background: rgba(0, 168, 168, 0.05);
  box-shadow: var(--shadow-glow);
}

.config-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.config-actions-row.justify-center {
  justify-content: center;
}

/* Result panel styles */
.result-message-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.result-icon-glowing {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 168, 168, 0.1);
  border: 2px solid var(--brand-teal);
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glow);
  animation: pulseOee 2s infinite;
}

@keyframes pulseOee {
  0% { box-shadow: 0 0 0 0 rgba(0, 168, 168, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 168, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 168, 168, 0); }
}

.result-text {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.result-summary-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-line:last-child {
  border-bottom: none;
}

.summary-line span {
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-line strong {
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
}

/* Custom Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1), transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .site-header {
    padding: 0 24px;
  }

  .main-nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }

  .hero-text {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 90px;
    display: none;
    padding: 30px;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 99;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-nav a:last-child {
    border-bottom: none;
    margin-top: 10px;
    text-align: center;
  }

  .canvas-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .canvas-tab {
    padding: 16px 12px;
  }

  .canvas-content {
    padding: 24px;
  }

  .config-container {
    padding: 32px 24px;
  }

  .config-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .section {
    width: min(100% - 32px, 1200px);
    padding: 60px 0;
  }

  .service-grid,
  .path-timeline {
    grid-template-columns: 1fr;
  }

  .canvas-tabs {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  .config-container {
    padding: 24px 16px;
  }

  .result-summary-box {
    padding: 20px 16px;
  }

  .site-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
