/* ── TOKENS ──────────────────────────────────────── */
:root {
  --accent:       #00d4ff;
  --accent-glow:  rgba(0, 212, 255, 0.35);
  --accent-dim:   rgba(0, 212, 255, 0.06);
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --nav-bg:       rgba(6, 8, 15, 0.88);
  --footer-bg:    rgba(6, 8, 15, 0.92);
  --page-bg:      #080a12;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--page-bg);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── BACKGROUND (iOS-safe fixed bg) ─────────────── */
.bg-wrapper {
  position: fixed;
  inset: 0;
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 15, 0.74);
  z-index: -1;
}

/* ── HEADER ──────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-brand em {
  font-style: normal;
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-links .status-pill a {
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
}

.nav-links .status-pill a:hover {
  background: rgba(74, 222, 128, 0.08);
  color: #4ade80;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MAIN ────────────────────────────────────────── */
main {
  padding-top: 64px;
  flex: 1;
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 6rem;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.15s ease forwards;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.3s ease forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.45s ease forwards;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.5s 0.6s ease forwards;
}

.scroll-hint {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.9s ease forwards;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-hint svg {
  animation: bounce 2s 1.5s ease-in-out infinite;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #06080f;
}

.btn-primary:hover {
  background: #33ddff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ── SERVICES SECTION ────────────────────────────── */
.services {
  padding: 5rem 1.5rem 7rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  max-width: 440px;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease,
              background 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
  background: var(--accent-dim);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(0, 212, 255, 0.08);
}

.service-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.875rem;
  display: block;
}

.service-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.975rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.service-desc {
  font-size: 0.785rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── PAGE SECTIONS (About / Contact) ─────────────── */
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 2.5rem;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.15s ease forwards;
}

.page-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.page-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 460px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.5s 0.3s ease forwards;
}

.page-content {
  padding: 0 1.5rem 7rem;
  max-width: 860px;
  margin: 0 auto;
}

/* Glass card */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  animation: fadeUp 0.5s 0.45s ease forwards;
}

.glass-card > p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 2.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.spec-item {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.spec-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.spec-label {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ── CONTACT ─────────────────────────────────────── */
.contact-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.5s 0.45s ease forwards;
}

.contact-email {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.contact-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

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

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-sub, .hero-btns,
  .scroll-hint, .page-title, .page-sub,
  .glass-card, .contact-card {
    animation: none;
    opacity: 1;
  }
  .scroll-hint svg { animation: none; }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 199;
    background: rgba(6, 8, 15, 0.97);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 2px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

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

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-links .status-pill a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
  }

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

  .glass-card, .contact-card {
    padding: 1.75rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.75rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
}
