:root {
  /* Oceanic Twilight Palette — lightened */
  --bg-deep: #060e1f;
  --bg-surface: #0c1a35;
  --bg-surface-hover: #162544;
  --text-primary: #f8fafc;
  --text-secondary: #b0bec5;
  --text-muted: #94a3b8;
  
  --accent-sky: #0ea5e9;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --border-subtle: rgba(148, 197, 255, 0.08);
  --border-strong: rgba(148, 197, 255, 0.14);
  --glow-cyan: 0 0 16px rgba(56, 189, 248, 0.2);
  --glow-emerald: 0 0 12px rgba(16, 185, 129, 0.25);
  --glow-matrix: 0 0 20px rgba(16, 185, 129, 0.4);
  --glow-button: 0 0 20px rgba(14, 165, 233, 0.3);

  --font-sans: 'Google Sans Flex', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Google Sans Code', 'JetBrains Mono', ui-monospace, monospace;
  --font-display: 'Google Sans Code', 'JetBrains Mono', monospace;
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: 1.5rem; }

a { color: var(--accent-sky); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-cyan); }

/* Focus-visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(6, 14, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

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

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: var(--glow-matrix);
}

.logo-brace {
  color: var(--accent-cyan);
  font-weight: 600;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-surface);
}

.lang-switch a {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}
.lang-switch a.active {
  background: var(--border-strong);
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent-sky);
  color: #ffffff;
  box-shadow: var(--glow-button);
}

.btn-primary:hover {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--border-subtle);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* Glass-morphic Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--glow-matrix);
}

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

/* Glass-morphic Asset Placeholders */
.asset-placeholder {
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(3, 7, 18, 0.6) 100%);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.asset-placeholder::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shine 3s infinite;
}

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

.hero-placeholder { height: 400px; margin-top: 2rem; }
.icon-placeholder { height: 80px; width: 80px; border-radius: 16px; margin-bottom: 1.5rem; }

/* Hero Graphic */
.hero-graphic {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin-top: 2rem;
  border-radius: 12px;
}

/* Service Icons */
.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-sky);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Language Banner */
#nd-lang-banner {
  position: fixed;
  bottom: 24px; right: 24px;
  max-width: 380px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#nd-lang-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.banner-btns { display: flex; gap: 1rem; margin-top: 1rem; }
.banner-btns button { font-size: 0.875rem; padding: 0.5rem 1rem; }

/* Section divider */
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--accent-emerald);
  margin-bottom: 1.5rem;
  box-shadow: var(--glow-matrix);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* Process grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.process-step {
  border-left: 2px solid var(--border-strong);
  padding-left: 1.5rem;
  transition: border-color 0.3s ease;
}
.process-step:hover {
  border-color: var(--accent-cyan);
}

.process-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  text-shadow: var(--glow-cyan);
}

.process-step h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0; }

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-emerald);
  text-shadow: var(--glow-matrix);
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Testimonial */
.testimonial {
  max-width: 650px;
  margin: 0 auto;
  border-left: 4px solid var(--accent-emerald);
  padding: 1rem 0 1rem 2rem;
}

.testimonial-quote p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-top: 3rem;
}

/* Contact grid — collapses to single column on mobile */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-bar { flex-direction: column; gap: 1.5rem; }
  .testimonial-quote p { font-size: 1.0625rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Hamburger menu — visible only on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-emerald);
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: var(--glow-matrix);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  }
  .nav-links.show { display: flex; }
  .nav-links a { font-size: 0.9375rem; padding: 0.5rem 0; }
  .lang-switch { margin-top: 0.5rem; align-self: flex-start; }
  h1 { font-size: 2.5rem; }
  .hero-placeholder { height: 250px; }
}

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