:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #101827;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.5);
  --transition-fast: 180ms ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    Roboto, "Segoe UI", sans-serif;
  background: radial-gradient(
    circle at top left,
    #1d283a 0,
    #020617 40%,
    #020617 100%
  );
  color: var(--text);
  line-height: 1.6;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.6),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #60a5fa, #1d4ed8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #e5f0ff;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.4);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #60a5fa, #a855f7);
  border-radius: 999px;
  transition: width var(--transition-fast);
}

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

.nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  padding: 4.5rem 0;
  background: radial-gradient(circle at top right, #111827 0, #020617 55%);
}

.section-header {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* Hero */

.hero {
  padding: 5.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: #a5b4fc;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.9rem;
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #a855f7);
  color: white;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.6);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: #e5e7eb;
}

.btn.full-width {
  width: 100%;
}

/* Hero meta */

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at left, #1e293b, #020617);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  color: var(--muted);
}

.meta-value {
  font-size: 0.9rem;
}

/* Hero card */

.hero-card {
  background: radial-gradient(circle at top, #1f2937, #020617);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.08;
  background: conic-gradient(
    from 160deg,
    rgba(96, 165, 250, 0.9),
    rgba(129, 140, 248, 0.9),
    rgba(45, 212, 191, 0.9),
    rgba(96, 165, 250, 0.9)
  );
  filter: blur(28px);
  z-index: -1;
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.hero-card p {
  margin: 0 0 1.3rem;
  color: var(--muted);
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
}

.hero-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #60a5fa, #a855f7);
}

.hero-link {
  font-size: 0.88rem;
  text-decoration: none;
  color: #bfdbfe;
}

.hero-link:hover {
  text-decoration: underline;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.highlight-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.92rem;
}

.highlight-label {
  display: inline-flex;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
  border-color: rgba(96, 165, 250, 0.7);
  background: radial-gradient(circle at top left, #111827, #020617);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.service-card p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.service-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card li::before {
  content: "•";
  font-size: 1.2rem;
  line-height: 1;
  color: #93c5fd;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info p {
  margin-top: 1rem;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Form */

.contact-form {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.4);
}

.field textarea {
  resize: vertical;
}

.form-status {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.5rem 0 2rem;
  background: radial-gradient(circle at bottom, #020617, #020617 60%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.back-to-top {
  text-decoration: none;
  color: var(--muted);
}

.back-to-top:hover {
  color: #e5e7eb;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .header-inner {
    padding-inline: 0.4rem;
  }

  .nav {
    display: none;
  }

  .nav.open {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0.75rem 1.5rem 1.1rem;
    background: radial-gradient(circle at top, #020617, #020617 65%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav a {
    padding: 0.4rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-toggle.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .section,
  .section-alt,
  .hero {
    padding-inline: 0;
  }

  .about-highlights {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero-meta {
    border-radius: 1rem;
  }

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