:root {
  --petra-blue: #5a3fff;
  --petra-blue-dark: #4a32d9;
  --text: #1a1625;
  --text-muted: #6b6578;
  --surface: #f5f4f8;
  --white: #ffffff;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.container.narrow {
  width: min(760px, calc(100% - 40px));
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(90, 63, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav > a:not(.btn) {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 4px;
}

.site-nav > a:not(.btn):hover {
  color: var(--white);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--white);
  color: var(--petra-blue);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--petra-blue);
}

.btn-nav {
  padding: 12px 18px;
  font-size: 0.875rem;
}

.btn-light {
  background: var(--white);
  color: var(--petra-blue);
}

.btn-light-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-light-outline:hover {
  background: var(--white);
  color: var(--petra-blue);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  padding: 120px 32px 80px;
  background: linear-gradient(160deg, var(--petra-blue) 0%, #3d28b8 100%);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual img {
  width: 100%;
  background: transparent;
}

/* ── Sections ───────────────────────────────────────── */
.section {
  padding: 96px 0;
}

.section-light {
  background: var(--surface);
}

.section-dark {
  background: var(--white);
}

.section-purple {
  background: linear-gradient(160deg, var(--petra-blue) 0%, #3d28b8 100%);
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2,
.section-purple h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-purple .lead.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card,
.feature {
  padding: 28px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(90, 63, 255, 0.08);
}

.section-dark .feature {
  background: var(--surface);
}

.card h3,
.feature h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p,
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.checklist {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.section-cta.center {
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  padding: 48px 0;
  background: #120d24;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  width: 130px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-copy,
.footer-links {
  margin: 0;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .section-cta {
    justify-content: center;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
  }

  .site-nav {
    justify-content: center;
  }

  .hero {
    padding-top: 180px;
  }
}

@media (max-width: 600px) {
  .site-nav > a:not(.btn) {
    display: none;
  }
}
