:root {
  --bg-0: #0d1117;
  --bg-1: #151a22;
  --bg-2: #1e2530;
  --surface: #11151c;
  --surface-alt: #171d27;
  --text: #e5e7eb;
  --muted: #98a2b3;
  --line: #2b3442;
  --primary: #2563eb;
  --accent: #10b981;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 500px at 92% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 500px at -8% 100%, rgba(16, 185, 129, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 30%, black 10%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.background-glow {
  position: fixed;
  width: 640px;
  height: 640px;
  right: -220px;
  top: -160px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 65%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(13, 17, 23, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 190px;
  max-width: 42vw;
  display: block;
}

.login-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 0.55rem 1rem;
  border-radius: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.login-link:hover {
  border-color: #41506a;
  background: rgba(37, 99, 235, 0.14);
}

.hero {
  padding: clamp(2.5rem, 7vw, 6rem) 0 2rem;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: #8cb7ff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  line-height: 1.12;
  max-width: 18ch;
}

.lead {
  margin: 1.1rem 0 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), #3677f0);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.34);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(15, 20, 28, 0.8);
}

.btn-ghost:hover {
  border-color: #3f4c61;
  background: rgba(37, 99, 235, 0.12);
}

.hero-graphic {
  border: 1px solid rgba(132, 150, 176, 0.2);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(19, 25, 33, 0.96), rgba(16, 20, 27, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 26px 46px rgba(0, 0, 0, 0.32);
  padding: 1rem;
}

.hero-graphic svg {
  width: 100%;
  height: auto;
  display: block;
}

.intro {
  margin-top: 2rem;
  margin-bottom: 1.8rem;
  border-top: 1px solid rgba(229, 231, 235, 0.12);
  border-bottom: 1px solid rgba(229, 231, 235, 0.12);
  padding: 1.1rem 0;
}

.intro p {
  margin: 0;
  color: #b4bfce;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  max-width: 80ch;
}

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

.feature-card {
  background: linear-gradient(150deg, rgba(23, 29, 39, 0.92), rgba(17, 21, 28, 0.86));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  min-height: 172px;
}

.feature-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

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

.cta {
  margin: 0.5rem auto 3.2rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: linear-gradient(130deg, rgba(16, 185, 129, 0.13), rgba(37, 99, 235, 0.11));
  border-radius: 16px;
  padding: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.7vw, 1.6rem);
}

.cta p {
  margin: 0.42rem 0 0;
  color: #bed0c3;
}

.site-footer {
  border-top: 1px solid rgba(229, 231, 235, 0.12);
  padding: 1rem 0 1.8rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #8f9cb0;
  font-size: 0.9rem;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  color: #bed7ff;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.2rem;
  }

  .hero-graphic {
    order: -1;
  }

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

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

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