:root {
  --bg: #060912;
  --bg-alt: #0b101c;
  --panel: #101a2e;
  --panel-bright: #142039;
  --border: #233048;
  --silver: #c9d3e0;
  --silver-bright: #f3f7fc;
  --silver-dim: #8c97aa;
  --blue: #2f8fff;
  --blue-bright: #7fd4ff;
  --text: #eef2f8;
  --max-width: 1160px;
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-btn: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .brand-text {
  font-family: 'Orbitron', 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

a { color: var(--blue-bright); text-decoration: none; }

.arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: 0.6rem 1.5rem 0;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled .navbar {
  background: rgba(20, 32, 57, 0.92);
  backdrop-filter: blur(14px);
  border-color: rgba(127, 212, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(47, 143, 255, 0.18);
}

.site-header.scrolled {
  padding-top: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
}

.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--silver);
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--silver-dim);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--blue-bright); }

.btn-nav {
  border: 1px solid var(--border);
  color: var(--silver);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
  box-shadow: 0 0 18px rgba(47, 143, 255, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--silver);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 1.5rem 0;
  text-align: center;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(201, 211, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 211, 224, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 60% at 50% 25%, rgba(0,0,0,0.9), transparent 80%);
}

.aurora-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 80%;
  background: radial-gradient(55% 55% at 22% 20%, rgba(47, 143, 255, 0.5), transparent 70%),
              radial-gradient(50% 50% at 78% 18%, rgba(243, 247, 252, 0.22), transparent 70%),
              radial-gradient(45% 45% at 50% 55%, rgba(127, 212, 255, 0.3), transparent 70%);
  filter: blur(50px);
  animation: drift 12s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes drift {
  from { transform: translateY(-10px) scale(1) rotate(0deg); }
  to   { transform: translateY(20px) scale(1.08) rotate(3deg); }
}

.embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.embers span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 10px 2px currentColor;
  animation: ember-rise 7s linear infinite;
  opacity: 0;
}

@keyframes ember-rise {
  0%   { opacity: 0; transform: translateY(0) translateX(0) scale(1); }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-380px) translateX(20px) scale(0.3); }
}

.embers span:nth-child(odd)  { background: var(--blue-bright); }
.embers span:nth-child(even) { background: var(--silver-bright); }

.embers span:nth-child(1) { left: 8%;  animation-delay: 0s;   animation-duration: 6s; }
.embers span:nth-child(2) { left: 18%; animation-delay: 1.2s; animation-duration: 8s; }
.embers span:nth-child(3) { left: 28%; animation-delay: 2.4s; animation-duration: 7s; }
.embers span:nth-child(4) { left: 40%; animation-delay: 0.6s; animation-duration: 9s; }
.embers span:nth-child(5) { left: 52%; animation-delay: 3s;   animation-duration: 6.5s; }
.embers span:nth-child(6) { left: 63%; animation-delay: 1.8s; animation-duration: 8.5s; }
.embers span:nth-child(7) { left: 74%; animation-delay: 2.6s; animation-duration: 7.5s; }
.embers span:nth-child(8) { left: 85%; animation-delay: 0.3s; animation-duration: 6.8s; }
.embers span:nth-child(9) { left: 95%; animation-delay: 4s;   animation-duration: 9.5s; }
.embers span:nth-child(10){ left: 12%; animation-delay: 5s;   animation-duration: 7.2s; }
.embers span:nth-child(11){ left: 48%; animation-delay: 4.4s; animation-duration: 6.2s; }
.embers span:nth-child(12){ left: 90%; animation-delay: 3.4s; animation-duration: 8.8s; }

.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding-bottom: 5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(47, 143, 255, 0.08);
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.8vw, 4.4rem);
  font-weight: 800;
  margin: 0 0 1.2rem;
  color: var(--silver);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--blue), var(--silver-bright), var(--blue-bright), var(--blue));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 6s linear infinite;
  text-shadow: 0 0 28px rgba(47, 143, 255, 0.35);
}

@keyframes gradient-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.tagline {
  font-size: 1.2rem;
  color: var(--silver-dim);
  margin-bottom: 2.4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  background-size: 200% 200%;
  color: #04101e;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0%;
  box-shadow: 0 10px 30px rgba(47, 143, 255, 0.5);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--silver);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
  box-shadow: 0 0 18px rgba(47, 143, 255, 0.35);
}

.value-strip {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-item {
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-left: 1px solid var(--border);
  text-align: center;
}

.value-item:first-child { border-left: none; }

.value-item strong {
  color: var(--silver-bright);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.value-item span {
  color: var(--silver-dim);
  font-size: 0.88rem;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--silver-bright);
  margin: 0 0 0.8rem;
}

.section-lede {
  color: var(--silver-dim);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  margin-top: 0.6rem;
}

#contact, #contact h2, .contact-section { text-align: center; }
.contact-section .section-lede { margin-left: auto; margin-right: auto; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  border-top: 2px solid transparent;
  padding: 2rem 1.6rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  border-top-color: var(--blue-bright);
  background: var(--panel);
}

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(47, 143, 255, 0.12);
  color: var(--blue-bright);
  margin-bottom: 1.2rem;
}

.service-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  margin: 0 0 0.5rem;
  color: var(--silver-bright);
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  color: var(--silver-dim);
  font-size: 0.92rem;
}

/* About */
.about-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-points {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.about-points li {
  color: var(--silver);
  font-size: 0.96rem;
  padding-left: 1.6rem;
  position: relative;
}

.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
}

.about-visual {
  position: relative;
}

.visual-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.visual-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 30% 20%, rgba(47, 143, 255, 0.35), transparent 70%);
}

.visual-dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.dot-1 { width: 14px; height: 14px; top: 18%; left: 22%; background: var(--blue-bright); box-shadow: 0 0 16px var(--blue-bright); }
.dot-2 { width: 9px; height: 9px; top: 60%; left: 68%; background: var(--silver-bright); box-shadow: 0 0 12px var(--silver-bright); }
.dot-3 { width: 11px; height: 11px; top: 75%; left: 30%; background: var(--blue); box-shadow: 0 0 14px var(--blue); }

.visual-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: 0 18%;
}

.visual-lines span {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: rgba(201, 211, 224, 0.12);
}

.visual-lines span:nth-child(1) { width: 80%; }
.visual-lines span:nth-child(2) { width: 55%; background: rgba(127, 212, 255, 0.25); }
.visual-lines span:nth-child(3) { width: 68%; }
.visual-lines span:nth-child(4) { width: 40%; background: rgba(127, 212, 255, 0.25); }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-step {
  position: relative;
  padding-top: 0.5rem;
  border-top: 2px solid var(--border);
}

.process-number {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  color: var(--blue-bright);
  margin-bottom: 0.8rem;
}

.process-step h3 {
  margin: 0 0 0.5rem;
  color: var(--silver-bright);
  font-size: 1.05rem;
}

.process-step p {
  margin: 0;
  color: var(--silver-dim);
  font-size: 0.92rem;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-color: var(--blue-bright);
}

.project-card.coming-soon {
  border-style: dashed;
  opacity: 0.75;
}

.project-card h3 {
  margin: 0 0 0.5rem;
  color: var(--blue-bright);
  font-size: 1.1rem;
}

.project-card p {
  margin: 0;
  color: var(--silver-dim);
  font-size: 0.95rem;
}

/* Contact */
.contact-card {
  background: linear-gradient(160deg, var(--panel-bright) 0%, var(--panel) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card .btn { margin-top: 0.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  height: 64px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--silver-dim);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.footer-copy {
  text-align: center;
  color: var(--silver-dim);
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
}

/* Mobile */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
  }

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

  .brand-text { font-size: 0.95rem; }

  .value-strip { grid-template-columns: 1fr; }
  .value-item { border-left: none; border-top: 1px solid var(--border); }
  .value-item:first-child { border-top: none; }

  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }

  .hero { padding: 5rem 1.25rem 0; }
  .contact-card { padding: 2.8rem 1.5rem; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .aurora-glow, .embers span, .hero h1 .accent {
    animation: none;
  }

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