:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #06080f;
  color: #e8edf8;
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: transform 0.8s ease, opacity 0.8s ease;
  will-change: transform, opacity;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(86, 135, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 149, 113, 0.18), transparent 28%),
    #06080f;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(6, 8, 15, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a {
  color: rgba(232, 237, 248, 0.82);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  color: #7f8cba;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.hero h1,
.section-header h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-text,
.section p,
.about-grid p,
.stat span {
  color: rgba(232, 237, 248, 0.78);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #5f86ff 0%, #d376ff 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(95, 134, 255, 0.18);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fbff;
}

.hero-panel {
  display: grid;
}

.panel-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 28px;
  padding: 2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.panel-card h2 {
  font-size: clamp(1.75rem, 2vw, 2.3rem);
  margin: 0;
}

.panel-stats {
  display: grid;
  gap: 1rem;
}

.panel-stats div {
  display: grid;
  gap: 0.35rem;
}

.panel-stats strong {
  font-size: 1.6rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.service-grid,
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

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

.service-card,
.project-card,
.stats-panel,
.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 1.75rem;
}

.service-card h3,
.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.service-card p,
.project-card p {
  margin: 0;
}

.projects-grid {
  grid-template-columns: 1fr;
}

.project-card {
  display: grid;
  gap: 1.5rem;
}

.project-label {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(95, 134, 255, 0.12);
  color: #a8c0ff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  color: #fff;
  font-weight: 600;
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.stats-panel {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1.35rem;
  border-radius: 20px;
}

.stat strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.45rem;
}

.stat span {
  color: rgba(232, 237, 248, 0.75);
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-panel p {
  margin: 0;
  max-width: 700px;
}

.site-footer {
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(232, 237, 248, 0.7);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 0.95fr 0.8fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .service-card,
  .project-card,
  .stats-panel,
  .contact-panel {
    padding: 1.35rem;
  }

  .btn {
    width: 100%;
  }
}
