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

:root {
  --bg: #060b14;
  --bg-2: #0c1424;
  --bg-card: rgba(12, 20, 36, 0.72);
  --text: #e8edf7;
  --muted: #8b9bb8;
  --cyan: #00e5ff;
  --purple: #8b5cf6;
  --pink: #f472b6;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-glow: rgba(34, 197, 94, 0.22);
  --border: rgba(34, 197, 94, 0.22);
  --glow: 0 0 32px var(--green-glow);
  --radius: 14px;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 20, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.logo .accent {
  color: var(--green);
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #041208;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.45);
}

.btn-ghost:hover {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  display: block;
  padding-top: 60px;
}

.canvas-host {
  position: relative;
  z-index: 0;
  width: 100%;
  height: clamp(280px, 42vh, 460px);
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 30%, rgba(34, 197, 94, 0.08), transparent 60%), #060b14;
  cursor: crosshair;
  touch-action: pan-y pinch-zoom;
}

.canvas-host canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-lead {
  margin-inline: auto;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 0.5rem;
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  max-width: 42ch;
  margin-bottom: 0;
  line-height: 1.45;
}

/* Sections */
.section {
  padding: 3rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(180deg, transparent, rgba(12, 20, 36, 0.55), transparent);
}

.section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-head h2,
.about-text h2,
.security-text h2,
.quote-intro h2,
.profile-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}

.about-text p,
.security-text p,
.quote-intro p,
.profile-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin-top: 1.25rem;
}

.tech-pills li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
}

/* Orbit card */
.orbit-card {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}

.orbit-core {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--purple));
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  color: #041018;
  box-shadow: var(--glow);
}

.orbit-core small {
  font-size: 0.65rem;
}

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transform: rotate(calc(var(--i) * 90deg)) translateY(-130px);
  animation: spin 24s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orbit-node { animation: orbit 24s linear infinite; }
.orbit-node[style*="--i:0"] { animation-delay: 0s; }
.orbit-node[style*="--i:1"] { animation-delay: -6s; }
.orbit-node[style*="--i:2"] { animation-delay: -12s; }
.orbit-node[style*="--i:3"] { animation-delay: -18s; }

@keyframes orbit {
  from { transform: rotate(0deg) translateY(-130px) rotate(0deg); }
  to { transform: rotate(360deg) translateY(-130px) rotate(-360deg); }
}

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

.service-card {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.45);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Canvas boxes */
.canvas-box {
  width: 100%;
  height: clamp(220px, 32vw, 300px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #08101c;
  margin-bottom: 1.25rem;
}

.canvas-box canvas {
  display: block;
}

.canvas-box--security {
  height: clamp(280px, 36vw, 380px);
  cursor: crosshair;
  touch-action: pan-y pinch-zoom;
}

.canvas-hint {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.benefit {
  padding: 1rem;
  border-left: 3px solid var(--green);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.benefit-num {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 0.85rem;
}

.benefit h4 {
  margin: 0.35rem 0;
}

.benefit p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Security */
.check-list {
  list-style: none;
  margin-top: 1rem;
}

.check-list li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}


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

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Portfolio */
.featured-app {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 1.25rem;
}

.featured-media {
  position: relative;
  display: grid;
  gap: 1rem;
}

.featured-overlay {
  max-width: 70%;
  margin: -3rem auto 0;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.featured-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.featured-info p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.clients-banner img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.client-chip {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(0, 229, 255, 0.05);
}

/* Quote form */
.quote-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.quote-form label {
  display: grid;
  gap: 0.4rem;
}

.quote-form span {
  font-size: 0.85rem;
  color: var(--muted);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #08101c;
  color: var(--text);
  font: inherit;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(34, 197, 94, 0.4);
}

.hidden {
  position: absolute;
  left: -9999px;
}

/* Profile */
.profile-split {
  align-items: center;
}

.profile-frame {
  width: min(220px, 60vw);
  margin-inline: auto;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: var(--glow);
}

.profile-frame img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-2);
}

.profile-note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 2px solid var(--purple);
  padding-left: 1rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: #04080f;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.footer-copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(400px, 1.35fr);
    align-items: stretch;
    gap: 0;
    max-width: 1280px;
    margin-inline: auto;
    padding-top: 60px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 2rem 2rem 2rem 4vw;
  }

  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .hero-lead {
    margin-inline: 0;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(2rem, 3vw, 3rem);
  }

  .canvas-host {
    margin-top: 0;
    height: clamp(400px, 54vh, 580px);
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--border);
  }

  .container {
    width: min(1120px, 90vw);
  }

  .section {
    padding: 3.5rem 0;
  }

  .canvas-box {
    height: clamp(260px, 28vw, 340px);
  }
}

@media (min-width: 721px) and (max-width: 1023px) {
  .nav-links {
    gap: 0.85rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .nav-links .btn-sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }

  .hero-content {
    padding: 1.75rem 0 0.75rem;
  }

  .canvas-host {
    height: clamp(300px, 40vh, 420px);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .orbit-ring,
  .orbit-node {
    animation: none;
  }
}

@media (max-width: 960px) {
  .service-grid,
  .digital-benefits,
  .photo-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .featured-app {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    width: min(260px, 88vw);
    height: calc(100vh - 60px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
    background: rgba(6, 11, 20, 0.96);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links .btn-sm {
    width: 100%;
  }

  .hero h1 {
    max-width: none;
  }

  .canvas-host {
    height: clamp(240px, 38vh, 360px);
  }

  .section {
    padding: 2.25rem 0;
  }

  .service-grid,
  .digital-benefits,
  .photo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .featured-overlay {
    max-width: 85%;
    margin-top: -1.5rem;
  }

  .orbit-card {
    width: min(220px, 65vw);
  }
}
