:root {
  --bg: #030712;
  --surface: rgba(15, 23, 42, 0.55);
  --surface-solid: #0f172a;
  --surface-hover: rgba(30, 41, 59, 0.7);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --primary-dim: rgba(56, 189, 248, 0.15);
  --accent: #34d399;
  --accent-dim: rgba(52, 211, 153, 0.12);
  --violet: #a78bfa;
  --line: rgba(148, 163, 184, 0.12);
  --glow: rgba(56, 189, 248, 0.35);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(167, 139, 250, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 50%, rgba(52, 211, 153, 0.08), transparent);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

.header,
main,
.copy {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.header {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 16px;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header:hover {
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.05);
}

.logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--text) 30%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header nav {
  display: flex;
  gap: 4px;
}

.header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.header nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 20px 0 18px;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 12px 0 28px;
}

h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-text {
  color: var(--muted);
  font-size: 17px;
  max-width: 52ch;
  margin: 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: #0c4a6e;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn.primary:hover {
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.5);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.25);
}

.hero-card {
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 180deg, var(--primary), var(--violet), var(--accent), var(--primary));
  opacity: 0.25;
  filter: blur(60px);
  z-index: -1;
  animation: rotate 12s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.hero-card img {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, transparent 50%, rgba(3, 7, 18, 0.6));
  pointer-events: none;
}

.section {
  margin-top: 100px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 8px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: var(--shadow-lg);
}

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

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-dim);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 16px;
  color: var(--primary);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.split img {
  box-shadow: var(--shadow-lg);
}

.card.testimonial {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 64px;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(56, 189, 248, 0.15);
  opacity: 1;
  height: auto;
  background: none;
}

.card.testimonial h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  padding-right: 40px;
}

.card.testimonial span {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #34d399);
  color: #042f2e;
  margin-bottom: 14px;
}

.process .grid {
  counter-reset: step;
}

.newsletter {
  margin-top: 100px;
  position: relative;
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(167, 139, 250, 0.08));
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 60%);
  pointer-events: none;
}

.newsletter h2,
.newsletter p {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.newsletter h2 {
  margin-bottom: 8px;
}

.newsletter p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

.newsletter form {
  position: relative;
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
}

.newsletter input {
  flex: 1;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.newsletter input::placeholder {
  color: var(--muted);
}

.newsletter button {
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: #0c4a6e;
  font-family: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.newsletter button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.copy {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

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

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px;
  }

  .header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .grid.four,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    margin-top: 36px;
  }

  .split {
    padding: 28px;
  }

  .newsletter {
    padding: 32px 24px;
  }

  .newsletter form,
  .hero-actions {
    flex-direction: column;
  }

  .section {
    margin-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
