:root {
  color-scheme: dark;
  --bg: #03030a;
  --panel: rgba(10, 12, 24, 0.85);
  --panel-light: rgba(255, 255, 255, 0.02);
  --accent: #5ce0ff;
  --accent-strong: #28a0ff;
  --text: #f7f9ff;
  --muted: rgba(247, 249, 255, 0.68);
  --border: rgba(255, 255, 255, 0.08);
  --gradient: radial-gradient(circle at 20% -20%, rgba(92, 224, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(216, 90, 255, 0.15), transparent 50%),
    linear-gradient(180deg, #050511 0%, #02020a 60%, #010106 100%);
  font-family: "Manrope", "Space Grotesk", "Sora", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--gradient);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brand {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: var(--muted);
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

header.hero {
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(92, 224, 255, 0.08), rgba(255, 255, 255, 0.01));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

header.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(92, 224, 255, 0.35), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(28, 146, 255, 0.25), transparent 40%);
  opacity: 0.65;
  filter: blur(12px);
  z-index: 0;
  animation: gradientPulse 18s linear infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.hero p.lede {
  margin: 0 0 1.5rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero .mute {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.15), transparent 55%),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 40px rgba(3, 3, 10, 0.6);
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
  opacity: 0.4;
  animation: floatDrift 12s ease-in-out infinite;
  z-index: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  animation: floatDrift 14s ease-in-out infinite;
}

.caption {
  margin: 0;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn.primary {
  background: var(--accent-strong);
  color: #02030a;
  box-shadow: 0 10px 30px rgba(40, 160, 255, 0.25);
}

.btn.secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-3px);
}

section {
  margin-top: 4rem;
}

.section-heading {
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.stats,
.services-grid,
.portfolio-grid,
.visual-grid {
  display: grid;
  gap: 1rem;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  background: var(--panel-light);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 180ms ease, transform 180ms ease;
  min-height: 180px;
}

.service-card strong {
  font-size: 1rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.portfolio-card .tagline {
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.portfolio-card h4 {
  margin: 0;
  font-size: 1.25rem;
}

.portfolio-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.portfolio-card small {
  color: rgba(255, 255, 255, 0.6);
}

.visual-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.visual-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 30px rgba(2, 3, 10, 0.5);
  transition: transform 220ms ease, border-color 220ms ease;
}

.visual-card:hover {
  transform: translateY(-6px);
  border-color: rgba(92, 224, 255, 0.4);
}

.visual-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  animation: floatDrift 18s ease-in-out infinite;
}

.visual-card .caption {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  background: rgba(3, 3, 10, 0.8);
}

.photo-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

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

.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.photo-card .caption {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.process-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.process-step {
  flex: 1 1 200px;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.process-step h5 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.process-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-card {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  background: linear-gradient(135deg, rgba(92, 224, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

footer {
  margin-top: 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes floatDrift {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes gradientPulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.4;
  }
}

@media (max-width: 640px) {
  header.hero {
    padding: 2rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .ctas {
    flex-direction: column;
    align-items: stretch;
  }
}
