:root {
  --bg: #0a0c10;
  --bg2: #0f1218;
  --bg3: #151b24;
  --surface: #1a2233;
  --border: #1e2d42;
  --accent: #0077cc;
  --accent2: #005fa3;
  --accent3: #00a0e0;
  --text: #e8eef5;
  --text2: #8da0b8;
  --text3: #4a6380;
  --danger: #ff4455;
  --success: #00cc77;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 6px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── GRID BACKGROUND ── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,119,204,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,119,204,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.2;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text2);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent2), var(--accent)) !important;
  color: #fff !important;
  font-weight: 500 !important;
}

.nav-cta:hover { opacity: 0.9; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 1rem;
  gap: 0.25rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text2);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  transition: all var(--transition);
}

.mobile-menu a:hover { background: var(--surface); color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0,119,204,0.25);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,119,204,0.05);
}

/* ── SECTION ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg2);
  padding: 2.5rem;
  transition: background var(--transition);
  cursor: pointer;
}

.service-card:hover { background: var(--bg3); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,119,204,0.2), rgba(0,119,204,0.1));
  border: 1px solid rgba(0,119,204,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.25rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,119,204,0.06);
  border: 1px solid rgba(0,119,204,0.12);
  color: var(--accent);
}

/* ── WHY SECTION ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.why-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 1rem;
}

.why-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-text { font-size: 14px; color: var(--text2); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p { color: var(--text2); margin-bottom: 2rem; font-size: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.contact-item:last-child { border-bottom: none; }
.contact-icon { font-size: 18px; width: 24px; text-align: center; }
.contact-item a { color: var(--accent); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

.contact-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

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

label {
  display: block;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  transition: border-color var(--transition);
  outline: none;
}

input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--bg2); }

.honeypot { display: none !important; }

.form-note {
  font-size: 12px;
  color: var(--text3);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.form-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 1rem;
}

.form-message.success {
  background: rgba(0,200,119,0.1);
  border: 1px solid rgba(0,200,119,0.3);
  color: var(--success);
  display: block;
}

.form-message.error {
  background: rgba(255,68,85,0.1);
  border: 1px solid rgba(255,68,85,0.3);
  color: var(--danger);
  display: block;
}

/* ── LEGAL PAGES ── */
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.legal-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section { margin-bottom: 3rem; }

.legal-section h2 {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--text2);
}

.legal-section p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-section a { color: var(--accent); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.legal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.legal-box p { margin-bottom: 0.25rem; font-size: 14px; color: var(--text2); }
.legal-box strong { color: var(--text); }

/* ── SERVICES DETAIL ── */
.services-page {
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.service-detail {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  transition: border-color var(--transition);
}

.service-detail:hover { border-color: rgba(0,119,204,0.2); }

.service-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,119,204,0.2), rgba(0,119,204,0.1));
  border: 1px solid rgba(0,119,204,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.service-detail-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-detail-content p {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.service-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.service-detail-list li {
  font-size: 14px;
  color: var(--text2);
  padding-left: 1.25rem;
  position: relative;
}

.service-detail-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── ALERT ── */
.alert {
  background: rgba(0,119,204,0.06);
  border: 1px solid rgba(0,119,204,0.15);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: var(--text2);
  margin: 1rem 0;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 240px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text3);
  font-family: var(--font-mono);
}

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--accent); }

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%; right: 10%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,119,204,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  bottom: 10%; left: 5%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,119,204,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,119,204,0.08);
  border: 1px solid rgba(0,119,204,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent3);
  animation: pulse 2s infinite;
}

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

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

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

h1 .accent { color: var(--accent); }

.hero-desc {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text3);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
  .service-detail { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
}

/* ══════════════════════════════════════════
   LIGHT MODE
══════════════════════════════════════════ */
/* ══════════════════════════════════════
   TOGGLE BUTTON
══════════════════════════════════════ */
.theme-toggle {
  width: 40px;
  height: 22px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text2);
  transition: transform 0.3s, background 0.3s;
}

.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-icon {
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

/* ══════════════════════════════════════
   LIGHT MODE
══════════════════════════════════════ */
body.light {
  --bg: #f0f4f8;
  --bg2: #ffffff;
  --bg3: #e8edf3;
  --surface: #dde4ed;
  --border: #c8d3e0;
  --accent: #0077cc;
  --accent2: #005fa3;
  --accent3: #00a0e0;
  --text: #0f1923;
  --text2: #3a4a5e;
  --text3: #7a8fa8;
  --danger: #cc2233;
  --success: #00885a;
}

body.light .grid-bg {
  background-image:
    linear-gradient(rgba(0,119,204,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,119,204,0.05) 1px, transparent 1px);
}

body.light nav {
  background: rgba(240,244,248,0.88);
  border-bottom-color: var(--border);
}

body.light .hero-glow {
  background: radial-gradient(ellipse, rgba(0,119,204,0.1) 0%, transparent 70%);
}
body.light .hero-glow2 {
  background: radial-gradient(ellipse, rgba(0,119,204,0.06) 0%, transparent 70%);
}

body.light input,
body.light textarea,
body.light select {
  background: #f8fafc;
  border-color: var(--border);
  color: var(--text);
}

/* Toggle light */
body.light .theme-toggle {
  background: #c8d3e0;
  border-color: #b0bece;
}
body.light .theme-toggle::after {
  transform: translateX(18px);
  background: #0077cc;
}

/* Buttons */
body.light .btn-primary {
  background: linear-gradient(135deg, #005fa3, #0077cc);
  color: #fff;
}
body.light .nav-cta {
  background: linear-gradient(135deg, #005fa3, #0077cc) !important;
  color: #fff !important;
}
body.light .btn-outline {
  color: #0077cc;
  border-color: #0077cc;
}
body.light .btn-outline:hover {
  background: rgba(0,119,204,0.06);
}

/* Texte & Akzente */
body.light h1 .accent           { color: #0077cc; }
body.light .stat-num            { color: #0077cc; }
body.light .section-tag         { color: #0077cc; }
body.light .logo-sub            { color: #0077cc; }
body.light .contact-item a      { color: #0077cc; }
body.light .legal-section a     { color: #0077cc; }
body.light .footer-col a:hover  { color: #0077cc; }
body.light .footer-legal a:hover{ color: #0077cc; }
body.light input:focus,
body.light textarea:focus,
body.light select:focus         { border-color: #0077cc; }

/* Hero badge */
body.light .hero-badge {
  background: rgba(0,119,204,0.07);
  border-color: rgba(0,119,204,0.22);
  color: #0077cc;
}
body.light .hero-badge::before { background: #0077cc; }

/* Tags */
body.light .tag {
  background: rgba(0,119,204,0.07);
  border-color: rgba(0,119,204,0.22);
  color: #0077cc;
}

/* Service icons */
body.light .service-icon,
body.light .service-detail-icon {
  background: linear-gradient(135deg, rgba(0,95,163,0.1), rgba(0,119,204,0.07));
  border-color: rgba(0,119,204,0.2);
}

body.light .service-detail:hover     { border-color: rgba(0,119,204,0.3); }
body.light .service-detail-list li::before { color: #0077cc; }

/* Alert */
body.light .alert {
  background: rgba(0,119,204,0.05);
  border-color: rgba(0,119,204,0.18);
  border-left-color: #0077cc;
}

/* Footer */
body.light footer {
  background: #e8edf3;
  border-top-color: var(--border);
}
body.light .footer-bottom { border-top-color: var(--border); }
