:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
}

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

.bg-orb {
  position: fixed;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.65;
  z-index: 0;
}

.bg-orb-a {
  top: 8vh;
  left: -5vw;
  width: 16rem;
  height: 16rem;
  background: rgba(37, 99, 235, 0.14);
}

.bg-orb-b {
  right: -3vw;
  bottom: 8vh;
  width: 18rem;
  height: 18rem;
  background: rgba(14, 165, 233, 0.10);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-name {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.94rem;
}

.top-link {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-weight: 600;
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.top-link:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 54px;
  align-items: stretch;
  padding: 22px 0 18px;
}

.hero-copy {
  padding: 10px 0 0;
}

h1 {
  margin: 0;
  max-width: 10.5ch;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.7rem, 6.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #020617;
}

.lead {
  margin: 22px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.72;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: white;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0284c7);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.quick-facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-facts li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.hero-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.90));
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

.hero-card-top {
  display: flex;
  gap: 8px;
  padding: 18px 18px 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  opacity: 0.9;
}

.dot-green { background: #22c55e; }
.dot-yellow { background: #f59e0b; }
.dot-red { background: #ef4444; }

.hero-card-body {
  padding: 18px;
}

.app-preview {
  height: 100%;
  min-height: 392px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.app-preview-icon {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 30px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  object-fit: contain;
}

.app-preview-title {
  margin-top: 18px;
  color: white;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.app-preview-text {
  margin-top: 12px;
  max-width: 22ch;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.72;
}

.app-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.app-preview-actions span {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 600;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
  padding: 24px;
}

.panel h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.steps {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.item h3 {
  margin: 0;
  font-size: 1rem;
}

.item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.note {
  margin-top: 18px;
}

.note p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 4px 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--text);
  font-weight: 700;
}

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

  .hero-card {
    min-height: auto;
    max-width: none;
    justify-self: stretch;
  }

  .app-preview {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 16px;
  }

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

  h1 {
    max-width: 10ch;
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero-card-body,
  .panel {
    padding: 18px;
  }

  .app-preview-actions {
    flex-direction: column;
    width: 100%;
  }
}
