:root {
  --bg-main: #0b1120;
  --bg-elevated: #020617;
  --bg-section: #f3f4f6;
  --bg-section-alt: #ffffff;
  --border-subtle: #e5e7eb;
  --border-strong: #111827;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-hover: #1d4ed8;
  --text-main: #0f172a;
  --text-subtle: #4b5563;
  --text-muted: #6b7280;
  --text-on-dark: #e5e7eb;
  --radius-lg: 0.9rem;
  --radius-xl: 1.25rem;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.15);
}

/* Reset / base */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background-color: #f9fafb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

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

/* Hero / header */

.hero {
  position: relative;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%, #000 100%);
  color: var(--text-on-dark);
  padding: 1.25rem 0 4.5rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: -50px;
  background-image: radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.14) 0, transparent 50%),
    radial-gradient(circle at 90% 0, rgba(129, 140, 248, 0.18) 0, transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

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

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding: 0.25rem 0;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav.scrolled {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(16px);
  background-color: rgba(15, 23, 42, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.5);
  transform: translateY(-2px);
  z-index: 50;
}

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

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(145deg, #1d4ed8, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-title {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: #9ca3af;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  font-size: 0.88rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #e5e7eb;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #2563eb);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

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

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #f9fafb;
}

/* Hero content */

.hero-content {
  max-width: 640px;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.6rem;
}

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

.hero-text {
  font-size: 0.98rem;
  color: #e5e7eb;
  opacity: 0.92;
  margin-bottom: 1.8rem;
}

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

/* Buttons */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
  border: 1px solid rgba(255, 255, 255, 1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.7);
  text-decoration: none;
}

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

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.95);
  border-color: #e5e7eb;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

/* Sections */

.section {
  padding: 3.8rem 0;
  background-color: var(--bg-section);
}

.section-alt {
  background-color: var(--bg-section-alt);
}

.section-header {
  /* max-width: 720px; */
  margin: 0 auto 2.2rem;
  text-align: left;
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-subtle);
}

/* About */

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

.about-text p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--text-subtle);
}

.info-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  margin-bottom: 0.9rem;
}

.info-card.muted {
  background-color: #f9fafb;
}

.info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.info-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

/* Services */

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

.service-card {
  background-color: #f9fafb;
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at -20% -20%, var(--accent-soft) 0, transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.service-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin: 0;
}

/* Contact */

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

.contact-info {
  font-size: 0.95rem;
}

.detail-block {
  margin-bottom: 1.1rem;
}

.detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.detail-value {
  color: var(--text-main);
}

.detail-value a {
  color: var(--accent);
  text-decoration: none;
}

.detail-value a:hover {
  text-decoration: underline;
}

.contact-form {
  background-color: #ffffff;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 0.9rem;
  background-color: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
  background-color: #ffffff;
}

.form-status {
  font-size: 0.8rem;
  margin-top: 0.7rem;
  color: #059669;
  min-height: 1em;
}

/* Footer */

.footer {
  background-color: var(--bg-main);
  color: #9ca3af;
  padding: 1.2rem 0;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-left span + span {
  margin-left: 0.5rem;
}

.footer-right {
  opacity: 0.9;
}

/* Responsive */

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

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 1.5rem;
    top: 64px;
    flex-direction: column;
    background-color: rgba(15, 23, 42, 0.98);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 40;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-bottom: 3.4rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 480px) {
  .logo-title {
    max-width: 200px;
    line-height: 1.2;
  }

  .container {
    padding: 0 1.1rem;
  }
}
