:root {
  --bg-body: #050814;
  --bg-elevated: #0d1224;
  --bg-elevated-soft: #111729;
  --bg-muted: #050814;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --accent-strong: #818cf8;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --danger: #ef4444;
  --success: #22c55e;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --nav-height: 72px;
  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #020617 100%);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding-top: var(--nav-height);
}

/* Header / Navigation */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.86),
    rgba(15, 23, 42, 0.72)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  z-index: 40;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 40%;
  background: radial-gradient(circle at 30% 20%, #22c55e, #4f46e5);
  color: #0b1020;
  font-weight: 650;
  font-size: 16px;
}

.logo-text {
  font-weight: 620;
  letter-spacing: 0.02em;
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  position: relative;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast),
    transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--text-main);
  background: var(--accent-soft);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #e5e7eb;
  padding-inline: 14px;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
}

.nav-cta-outline {
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-menu button {
  font-family: inherit;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: 999px;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero */

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 10px 0 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--accent-strong);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.9);
}

.badge.subtle {
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(15, 23, 42, 0.7);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-soft);
  font-size: 13px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-item::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

.meta-dot {
  opacity: 0.6;
}

.accent {
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.55);
  transition: background var(--transition-med), transform var(--transition-fast),
    box-shadow var(--transition-med), border-color var(--transition-fast);
}

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

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  border-color: transparent;
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.5);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.85);
}

.btn.ghost:hover {
  border-color: rgba(148, 163, 184, 0.85);
  background: rgba(15, 23, 42, 0.95);
}

.btn.outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
}

.btn.outline:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.5);
}

.btn.full {
  width: 100%;
}

/* Hero visual */

.hero-visual {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  object-fit: cover;
  max-height: 500px;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */

.section {
  padding: 50px 0;
}

.section.muted {
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
  padding: 60px 0;
}

.section.highlight {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(15, 23, 42, 1));
  padding: 60px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Grids */

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

.about-grid,
.contact-grid,
.highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

/* Cards */

.card {
  background: var(--bg-elevated-soft);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.26), transparent 55%);
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.85);
}

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

.feature-card h3 {
  margin: 8px 0 4px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(51, 65, 85, 0.65);
  font-size: 18px;
}

/* Logos */

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-soft);
}

.logo-row span {
  opacity: 0.85;
}

/* Highlight */

.highlight-grid h2 {
  margin-bottom: 6px;
}

.highlight-grid p {
  color: var(--text-muted);
}

.highlight-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.highlight-list li + li {
  margin-top: 6px;
}

/* CTA banner */

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 20px;
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.35), rgba(15, 23, 42, 0.98));
  border-radius: 20px;
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.85);
}

.cta-banner > div:first-child {
  flex: 1;
  min-width: 300px;
}

.cta-banner h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.cta-banner p {
  margin: 0;
  color: #e5e7eb;
  max-width: 520px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Page hero */

.page-hero {
  padding: 80px 0 20px;
}

.page-hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.narrow {
  max-width: 720px;
}

/* Product / pricing cards */

.product-card h2 {
  margin-top: 6px;
  margin-bottom: 4px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.card-list {
  list-style: none;
  margin: 10px 0 12px;
  padding-left: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.card-list li + li {
  margin-top: 4px;
}

.link-arrow {
  font-size: 13px;
  color: var(--accent-strong);
  text-decoration: none;
}

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

.pricing-card {
  text-align: left;
}

.pricing-card .price {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0;
}

.pricing-card .price-caption {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.pricing-card.popular {
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.4);
  transform: scale(1.02);
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-2px);
}

/* About stats */

.about-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  object-fit: cover;
  animation: fadeInUp 0.6s ease-out;
}

.about-image-section {
  margin-bottom: 26px;
}

.full-width-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  object-fit: cover;
  max-height: 400px;
  animation: fadeInUp 0.6s ease-out;
}

.services-image-section {
  margin-bottom: 20px;
}

.auth-side-image {
  animation: fadeInUp 0.6s ease-out;
}

.stats-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.stats-list li + li {
  margin-top: 10px;
}

.stats-value {
  display: block;
  font-size: 20px;
  font-weight: 600;
}

.stats-label {
  color: var(--text-soft);
  font-size: 13px;
}

/* Forms */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

label {
  font-size: 13px;
  color: #e5e7eb;
}

input,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

input:focus,
textarea:focus {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.form-error {
  min-height: 16px;
  font-size: 12px;
  color: var(--danger);
}

.form-success {
  margin-top: 6px;
  font-size: 13px;
  color: var(--success);
  min-height: 18px;
}

input.error,
textarea.error {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.6);
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
}

.checkbox input {
  width: auto;
  margin-top: 3px;
}

.password-group {
  position: relative;
}

.password-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.password-wrapper input {
  flex: 1;
}

.password-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-soft);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast);
}

.password-toggle:hover {
  background: rgba(30, 64, 175, 0.8);
  border-color: rgba(129, 140, 248, 0.9);
  color: #e5e7eb;
  transform: translateY(-0.5px);
}

.password-hint {
  font-size: 11px;
  color: var(--text-soft);
}

.form-row-between {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* Contact page */

.contact-image-section {
  margin-bottom: 20px;
}

.contact-grid > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Auth pages */

.auth-body {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
}

.auth-main {
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 40px;
}

.auth-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 0 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.auth-visual {
  flex: 0 0 400px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.auth-side-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  object-fit: cover;
  max-height: 600px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  flex: 1;
}

.auth-title {
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 24px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-footer-text {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

.text-link {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.text-link:hover {
  text-decoration: underline;
  color: #a5b4fc;
}

.text-sm {
  font-size: 12px;
}

.disabled-link {
  opacity: 0.6;
  pointer-events: none;
}

/* Legal content */

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 18px;
  margin-top: 16px;
  margin-bottom: 6px;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-content ul {
  color: var(--text-muted);
  font-size: 14px;
  padding-left: 18px;
}

/* Footer */

.site-footer {
  padding: 40px 0 20px;
  background: rgba(0, 0, 0, 0.54);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-text {
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
}

.footer-links h4 {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  text-decoration: none;
  margin-top: 6px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.26);
  padding-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}

.auth-footer {
  margin-top: 18px;
}

/* Utilities */

.center {
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

/* Responsive */

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

  .hero-visual {
    order: -1;
  }

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

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

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

  .footer-links {
    justify-content: flex-start;
  }

  .auth-section {
    flex-direction: column;
    align-items: center;
  }

  .auth-visual {
    flex: none;
    width: 100%;
    max-width: 420px;
    position: static;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: var(--nav-height) 16px auto 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.4);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .main-nav.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 8px 10px;
  }

  .nav-user-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-user-menu .nav-link,
  .nav-user-menu button {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 50px;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }

  .cta-banner > div:first-child {
    min-width: auto;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1;
  }

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

  .contact-grid > div:last-child {
    flex-direction: row;
    overflow-x: auto;
  }

  .contact-grid > div:last-child .card {
    min-width: 220px;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 64px;
  }

  main {
    padding-top: 64px;
  }

  .logo-text {
    font-size: 16px;
  }

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

  .auth-card {
    padding: 16px 14px 14px;
  }

  .auth-visual {
    display: none;
  }
}
