:root {
  /* Oceanic Twilight Palette — lightened */
  --bg-deep: #060e1f;
  --bg-surface: #111d3a;
  --bg-surface-hover: #1a2b4a;
  --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.15);
  --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;
}

/* ── Skip Link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--accent-cyan);
  border-radius: 0 0 6px 0;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* 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; }
.page-header { padding: 4rem 0 2rem; text-align: left; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.page-header p { max-width: 720px; font-size: 1.125rem; color: var(--text-secondary); }

/* 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: var(--bg-deep);
  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-strong);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 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: 2px solid #3b82f6; outline-offset: 2px;
  border-color: var(--accent-sky);
}

/* Dynamic Hero Section */
.hero-dynamic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: visible;
}

@media (max-width: 992px) {
  .hero-dynamic {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-dynamic-cta {
    justify-content: center;
  }
  .hero-dynamic-visual {
    margin-top: 2rem;
  }
}

.hero-dynamic-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 20px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: var(--glow-button);
}

.hero-dynamic-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-dynamic-subtitle {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 600px;
}

.hero-dynamic-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-dynamic-cta {
  display: flex;
  gap: 1rem;
}

/* Dynamic Visual Side */
.hero-dynamic-visual {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1000px;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: orb-float 8s ease-in-out infinite alternate;
}

.orb-1 {
  top: 10%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: rgba(14, 165, 233, 0.3);
}

.orb-2 {
  bottom: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, 0.2);
  animation-delay: -4s;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 30px) scale(1.1); }
}

.glass-card {
  background: rgba(17, 29, 58, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.main-glass-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg);
  width: 80%;
  height: 300px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes float {
  0% { transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg) translateY(-15px); }
  100% { transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg) translateY(0); }
}

.glass-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
}

.glass-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.glass-dot.red { background: #ef4444; }
.glass-dot.yellow { background: #f59e0b; }
.glass-dot.green { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); }

.glass-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pulse-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.pulse-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: slide-pulse 2s infinite;
}

@keyframes slide-pulse {
  0% { left: -40%; }
  100% { left: 100%; }
}

.pulse-line.short { width: 60%; animation-delay: 0.2s; }
.pulse-line.medium { width: 80%; animation-delay: 0.5s; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 80px;
  margin-top: auto;
}

.bar {
  flex: 1;
  background: var(--accent-sky);
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  animation: bar-grow 3s ease-out forwards;
}
.bar-1 { height: 40%; animation-delay: 0.1s; }
.bar-2 { height: 60%; animation-delay: 0.3s; }
.bar-3 { height: 30%; animation-delay: 0.5s; }
.bar-4 { height: 80%; background: var(--accent-emerald); opacity: 1; box-shadow: var(--glow-matrix); animation-delay: 0.7s; }
.bar-5 { height: 50%; animation-delay: 0.9s; }

@keyframes bar-grow {
  0% { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}

.glass-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}
.glass-badge.sg {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.floating-card-1 {
  position: absolute;
  top: 15%;
  right: 0%;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float-fast 4s ease-in-out infinite alternate;
  z-index: 2;
}

.floating-card-2 {
  position: absolute;
  bottom: 10%;
  left: 0%;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float-fast 5s ease-in-out infinite alternate-reverse;
  z-index: 2;
}

@keyframes float-fast {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

.glass-icon {
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  width: 40px;
  height: 40px;
}

.floating-card-2 .glass-icon {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.fc-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fc-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 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; }

.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-cyan);
  white-space: nowrap;
}

/* Blog article content */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.blog-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.blog-article h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-article h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-article p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.blog-article ul, .blog-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-article li {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.blog-article li strong {
  color: var(--text-primary);
}

.blog-article .meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Inline code */
.blog-article code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--accent-cyan);
  white-space: nowrap;
}

/* Code blocks */
.blog-article pre {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.blog-article pre code {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

/* CTA block inside articles */
.blog-article .cta-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-emerald);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0 1.5rem;
}

.blog-article .cta-block p {
  margin-bottom: 0.5rem;
}

.blog-article .cta-block a {
  font-weight: 600;
}

/* Blog card as full clickable area */
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-link .card {
  position: relative;
}

.blog-card-link .card h3 {
  font-size: 1.125rem;
}

.blog-card-link .card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-card-link .card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.blog-card-link .card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  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; }
  .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.75rem 0; min-height: 44px; display: flex; align-items: center; }
  .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;
  }
}