:root {
  --bg: #07090f;
  --bg-2: #0c111c;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.08);
  --text: #e8ecf5;
  --muted: #9fb0c7;
  --accent: #7ce7f3;
  --accent-2: #8f7bf7;
  --glow: 0 0 40px rgba(124, 231, 243, 0.3);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

:root.light-mode {
  --bg: #f6f7fb;
  --bg-2: #ecf0f7;
  --card: rgba(255, 255, 255, 0.7);
  --card-strong: rgba(255, 255, 255, 0.9);
  --text: #0b1728;
  --muted: #3b4c65;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(124, 231, 243, 0.12), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(143, 123, 247, 0.16), transparent 28%),
    var(--bg);
  line-height: 1.6;
}

.page-gradient,
.page-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-gradient {
  background: linear-gradient(135deg, rgba(124, 231, 243, 0.08), rgba(143, 123, 247, 0.06));
  mix-blend-mode: screen;
}

.page-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 48px 48px;
  opacity: 0.25;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: linear-gradient(90deg, rgba(7, 9, 15, 0.9), rgba(7, 9, 15, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text);
}

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

nav a {
  margin: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ghost,
.pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pill {
  background: linear-gradient(135deg, rgba(124, 231, 243, 0.35), rgba(143, 123, 247, 0.4));
  color: #041019;
  border: none;
  box-shadow: var(--glow);
}

.ghost:hover,
.pill:hover,
.ghost:focus-visible,
.pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 32px;
  padding: 64px 24px 48px;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
  margin: 12px 0;
}

.hero-copy .lede {
  color: var(--muted);
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 800;
  color: var(--accent);
  font-size: 13px;
}

.lede {
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.metric-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow);
}

.metric-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.hero-panel {
  background: var(--card);
  border: 1px solid rgba(124, 231, 243, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 231, 243, 0.08), rgba(143, 123, 247, 0.08));
  opacity: 0.7;
}

.hero-panel * {
  position: relative;
  z-index: 1;
}

.panel-header,
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.status {
  background: rgba(124, 231, 243, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
}

.panel-body {
  margin: 18px 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.panel-mesh {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, rgba(124, 231, 243, 0.15), rgba(7, 9, 15, 0.4));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.panel-mesh::after,
.panel-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.3;
  mix-blend-mode: screen;
}

.core {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 231, 243, 0.9), rgba(143, 123, 247, 0.9));
  display: grid;
  place-items: center;
  color: #041019;
  font-weight: 800;
  font-size: 22px;
  box-shadow: var(--glow);
}

.pulse,
.orbit {
  position: absolute;
  border: 1px solid rgba(124, 231, 243, 0.3);
  border-radius: 50%;
}

.pulse {
  width: 120px;
  height: 120px;
  animation: pulse 4s infinite;
}

.orbit {
  width: 180px;
  height: 180px;
  animation: spin 16s linear infinite;
}

.orbit.delay {
  width: 240px;
  height: 240px;
  animation-duration: 22s;
  animation-direction: reverse;
  border-color: rgba(143, 123, 247, 0.25);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.grid-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.services,
.work,
.process,
.contact {
  padding: 32px 24px 64px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 231, 243, 0.35);
}

.card-icon {
  font-size: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(124, 231, 243, 0.14);
  margin-bottom: 8px;
}

.card ul {
  padding-left: 18px;
  color: var(--muted);
}

.work-card {
  background: linear-gradient(145deg, rgba(124, 231, 243, 0.06), rgba(143, 123, 247, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(124, 231, 243, 0.12), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}

.work-card h3 {
  margin: 4px 0 8px;
}

.work-card span {
  color: var(--accent);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  box-shadow: var(--shadow);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.timeline-bullet {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 231, 243, 0.16);
  font-weight: 800;
}

.contact-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.contact-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}

.contact-card input,
.contact-card textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  font: inherit;
}

.contact-card textarea {
  resize: vertical;
}

.input-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-note {
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 32px 24px 48px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, rgba(124, 231, 243, 0.4), rgba(143, 123, 247, 0.4));
  color: #041019;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 840px) {
  nav {
    display: none;
  }

  .site-header {
    justify-content: space-between;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-2: #ecf0f7;
    --card: rgba(255, 255, 255, 0.7);
    --card-strong: rgba(255, 255, 255, 0.9);
    --text: #0b1728;
    --muted: #3b4c65;
    color-scheme: light;
  }

  body {
    background: radial-gradient(circle at 20% 20%, rgba(124, 231, 243, 0.18), transparent 30%),
      radial-gradient(circle at 80% 0%, rgba(143, 123, 247, 0.18), transparent 28%),
      var(--bg);
  }

  .pill {
    color: #041019;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.85);
  }
}

@keyframes pulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.92); opacity: 0.7; }
}

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