:root {
  --bg: #05070f;
  --bg-soft: #0d1122;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #e9eefb;
  --muted: #a6b4d8;
  --primary: #6f6bff;
  --secondary: #00d4ff;
  --accent: #ff4ecd;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #182039 0%, var(--bg) 35%),
    radial-gradient(circle at 85% 0%, #1d1642 0%, transparent 35%), var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 0.35px, transparent 0.35px);
  background-size: 4px 4px;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(111, 107, 255, 0.2), transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(20px);
  z-index: 0;
}

#orb-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(120deg, var(--secondary), var(--accent));
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  z-index: 9;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1200px, 92vw);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 20, 0.58);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 14px;
  z-index: 7;
}

.brand {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.brand span {
  color: var(--secondary);
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
}

main {
  width: min(1200px, 92vw);
  margin: 24px auto 90px;
}

.hero {
  padding: 4.8rem 0 3.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.hero-title {
  font-family: Outfit, sans-serif;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  line-height: 1.05;
  max-width: 980px;
  margin: 0;
}

.hero-copy {
  color: var(--muted);
  max-width: 750px;
  margin: 14px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 18px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #f9fbff;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 180, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 180, 255, 0.25);
}

.btn.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  box-shadow: none;
}

.btn.btn-sm {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.hero-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.hero-pills span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
}

.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 24px;
}

.stat h3 {
  margin: 0;
  font-size: 2rem;
}

.stat p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section {
  padding: 5.5rem 0 1rem;
}

.section-head h2 {
  font-family: Outfit, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  margin: 0;
}

.section-subcopy {
  margin-top: 12px;
  max-width: 850px;
  color: var(--muted);
  line-height: 1.6;
}

.service-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.service-card {
  grid-column: span 4;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  transform-style: preserve-3d;
  transition: border-color 0.25s ease;
}

.service-card:hover {
  border-color: rgba(111, 107, 255, 0.65);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-deep-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deep-card,
.project-card,
.infra-card,
.brand-card,
.value-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 20px;
}

.deep-card h3,
.project-card h3,
.infra-card h3,
.brand-card h3,
.value-card h3 {
  margin-top: 0;
}

.deep-card ul,
.project-card ul,
.infra-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #d5ddf8;
  line-height: 1.6;
}

.project-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.project-type {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
}

.project-card p,
.infra-card p,
.brand-card p,
.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.split-content ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.split-content h2 {
  font-family: Outfit, sans-serif;
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.split-content p {
  margin: 0;
  color: var(--muted);
}

.stack-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.stack-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marquee 16s linear infinite;
}

.stack-track span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: 12px;
  color: #d5dfff;
  font-weight: 500;
}

.terminal-window {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #020202;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  width: min(560px, 100%);
  height: 265px;
  min-height: 265px;
  max-height: 265px;
  display: flex;
  flex-direction: column;
  flex: 0 0 265px;
}

.terminal-window-hero {
  max-width: 560px;
  margin-top: 0;
  margin-bottom: 6px;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #111828;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.terminal-topbar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-topbar span:nth-child(2) {
  background: #febc2e;
}

.terminal-topbar span:nth-child(3) {
  background: #28c840;
}

.terminal-topbar p {
  margin: 0;
  color: #d8e2ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: auto;
}

.terminal-topbar span {
  order: 2;
}

.terminal-screen {
  margin: 0;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  padding: 16px;
  color: #f2f6ff;
  font-size: 1rem;
  line-height: 1.45;
  white-space: normal;
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  background: #020202;
  overflow-y: auto;
  overflow-x: hidden;
}

.typed-terminal {
  display: block;
  width: 100%;
  max-height: 100%;
}

.terminal-line {
  display: block;
  color: #eef3ff;
  margin: 0;
}

.terminal-line.muted {
  color: #eef3ff;
}

.terminal-line.success {
  color: #15ffa3;
}

.terminal-cursor {
  display: inline-block;
  width: 11px;
  height: 1.1em;
  margin-left: 0;
  margin-top: 2px;
  background: #2c88ff;
  color: transparent;
  animation: blink 1s step-end infinite;
  vertical-align: baseline;
}

.terminal-window-hero .terminal-screen {
  min-height: 0;
}

.infra-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.brand-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.step span {
  color: var(--secondary);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 8px 0 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.value-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  color: var(--muted);
  margin: 10px 0 2px;
  line-height: 1.6;
}

.contact {
  margin-top: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 42px;
  background: linear-gradient(150deg, rgba(111, 107, 255, 0.15), rgba(0, 212, 255, 0.08));
}

.contact h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.contact p {
  color: #d8e1ff;
  max-width: 760px;
}

.site-footer {
  width: min(1200px, 92vw);
  margin: 10px auto 40px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .service-card {
    grid-column: span 6;
  }

  .service-deep-grid,
  .project-grid,
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .site-nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: calc(100% + 8px);
    padding: 12px;
    border-radius: 12px;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 28, 0.95);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
  }

  .site-header .btn-sm {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-column: span 12;
  }

  .service-deep-grid,
  .project-grid,
  .infra-grid,
  .brand-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
