:root {
  --bg: #06110e;
  --bg-soft: #0b1b17;
  --text: #ebfff7;
  --muted: #a7c3bb;
  --tiffany: #42e8c4;
  --lime: #a8ff1a;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #123328 0%, var(--bg) 55%),
              radial-gradient(1000px 500px at 100% 0%, #153d32 0%, var(--bg) 60%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.noise {
  pointer-events: none;
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: -1;
}

.bg-orb {
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -2;
  opacity: 0.18;
}
.orb-1 { background: var(--lime); top: -120px; left: -100px; }
.orb-2 { background: var(--tiffany); bottom: -180px; right: -120px; }

.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
}
.logo {
  font-weight: 800;
  letter-spacing: .3px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo span { color: var(--tiffany); }
nav { display: flex; gap: 18px; align-items: center; }
nav a { color: var(--text); text-decoration: none; opacity: .9; }
nav a, .lang-toggle { white-space: nowrap; }

.lang-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: rgba(66, 232, 196, 0.55);
}

.hero {
  padding: 70px 0 50px;
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 30px;
}
.eyebrow {
  color: var(--tiffany);
  font-weight: 600;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
h1 span { color: var(--lime); }
.subtitle {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.6;
}
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  background: linear-gradient(135deg, var(--tiffany), #6cf5d8);
  color: #062218;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  padding: 12px 18px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 10px 24px rgba(66, 232, 196, 0.25);
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: .92rem; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.pulse {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(168,255,26,.8);
  margin-bottom: 14px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 18px rgba(168,255,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(168,255,26,0); }
}
.hero-card h3 { margin-bottom: 10px; }
.hero-card p { color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

.stack-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.stack-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}

.stack-btn.is-active {
  border-color: rgba(66, 232, 196, 0.55);
  background: rgba(66, 232, 196, 0.14);
  color: #d5fff5;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: .86rem;
}

section { margin-top: 68px; }
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  margin-bottom: 20px;
  letter-spacing: -.5px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-strip article {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 16px;
}

.trust-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 6px;
}
.services .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: var(--card);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); line-height: 1.6; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(66,232,196,.08), rgba(255,255,255,.03));
  transition: transform .2s ease, border-color .2s ease;
}

.project-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  object-position: center center;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: filter .3s ease;
  filter: saturate(1.02);
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 232, 196, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-media {
    transform: scale(1.045);
    filter: saturate(1.18) contrast(1.08);
  }
}

@media (hover: none) {
  .project-media {
    transition: none;
  }
}

.project-tag {
  display: inline-block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lime);
  margin-bottom: 10px;
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  color: var(--muted);
  line-height: 1.6;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.roadmap-card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #07261b;
  background: var(--tiffany);
  margin-bottom: 10px;
}

.roadmap-card h3 {
  margin-bottom: 8px;
}

.roadmap-card p {
  color: var(--muted);
  line-height: 1.55;
}

.about {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
.about-panel, .about-metric {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 24px;
}
.about ul { list-style: none; display: grid; gap: 10px; color: var(--muted); }
.about li::before { content: "✓ "; color: var(--lime); font-weight: 700; }
.metric {
  display: grid; place-items: center;
  height: 100%;
  text-align: center;
}
.metric .num {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--tiffany);
}
.metric p { color: var(--muted); margin-top: 8px; }

.cta {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(66,232,196,.12), rgba(255,255,255,.03));
  padding: 42px 20px;
}
.cta p { color: var(--muted); margin: 10px 0 20px; }

.footer {
  padding: 42px 0 30px;
  color: #8ea9a1;
  font-size: .94rem;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--tiffany);
}

.page-shell {
  padding: 40px 0 50px;
}

.page-shell h1 {
  margin-bottom: 14px;
}

.page-shell .lead {
  color: var(--muted);
  max-width: 760px;
}

.feature-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 16px;
}

.feature-grid p {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.insights .lead {
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .hero, .about { grid-template-columns: 1fr; }
  .services .grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .header { flex-wrap: wrap; gap: 12px; align-items: flex-start; }
  nav { gap: 10px; flex-wrap: wrap; width: 100%; }
}

@media (max-width: 600px) {
  .container { width: min(1120px, 94%); }

  .header {
    padding: 16px 0;
  }

  nav {
    justify-content: flex-start;
  }

  nav a {
    font-size: .95rem;
  }

  .lang-toggle {
    padding: 7px 10px;
    font-size: .88rem;
  }

  .hero {
    padding: 34px 0 28px;
    gap: 18px;
  }

  h1 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
    letter-spacing: -0.7px;
  }

  .subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .hero-card,
  .card,
  .project-card,
  .about-panel,
  .about-metric {
    padding: 18px;
  }

  .stack-controls {
    gap: 7px;
  }

  .stack-btn {
    flex: 1 1 calc(33.333% - 7px);
    text-align: center;
    padding: 7px 9px;
  }

  .chips {
    gap: 6px;
  }

  .chips span {
    font-size: .8rem;
    padding: 5px 9px;
  }

  section {
    margin-top: 52px;
  }

  .cta {
    padding: 32px 16px;
    border-radius: 16px;
  }

  .footer {
    padding-top: 30px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .project-media {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-media {
    transition: none;
  }
}

@media (max-width: 430px) {
  .header {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  nav {
    gap: 8px;
  }

  nav a,
  .btn-sm {
    font-size: .88rem;
  }

  .logo {
    font-size: clamp(1.2rem, 6.8vw, 1.45rem);
  }
}