:root {
  --bg: #0c0f14;
  --bg-elevated: #141a24;
  --bg-card: #1a2230;
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --accent: #3d8bfd;
  --accent-soft: rgba(61, 139, 253, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --container: min(1120px, 92vw);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 139, 253, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #6ba3ff;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}

.logo:hover {
  color: var(--text);
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
}

.logo__accent {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__desc {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.hero__stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero__stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5b6cf0);
  box-shadow: 0 4px 20px rgba(61, 139, 253, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(61, 139, 253, 0.45);
  color: #fff;
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn--full {
  width: 100%;
}

/* Card stack */
.card-stack {
  position: relative;
  min-height: 320px;
}

.card-stack__item {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(340px, 90%);
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-weight: 500;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.card-stack__item--1 {
  top: 0;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.card-stack__item--2 {
  top: 100px;
  z-index: 2;
  opacity: 0.92;
  animation: float 6s ease-in-out 1s infinite;
}

.card-stack__item--3 {
  top: 200px;
  z-index: 1;
  opacity: 0.85;
  animation: float 6s ease-in-out 2s infinite;
}

.card-stack__icon {
  font-size: 1.5rem;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section__head {
  text-align: center;
  margin-bottom: 3rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Services */
.services {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(61, 139, 253, 0.35);
  transform: translateY(-2px);
}

.service-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.about__text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about__quote {
  margin: 0;
  padding: 2rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.about__quote p {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}

.about__quote footer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact__info h2 {
  margin: 0 0 0.5rem;
}

.contact__info > p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact__list li {
  margin-bottom: 1rem;
}

.contact__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: #4ade80;
  text-align: center;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--text);
}

/* Mobile */
@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .contact__box {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    margin-bottom: 1rem;
  }

  .card-stack {
    min-height: 260px;
  }

  .card-stack__item--2 { top: 80px; }
  .card-stack__item--3 { top: 160px; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}
