:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --brand: #ff4b26;
  --brand-dark: #e03a1d;
  --brand-soft: #fff5f2;
  --header-bar: #e3e3e3;
  --footer-bg: #0a0a0a;
  --radius: 12px;
  --radius-pill: 999px;
  --radius-shell: 2rem;
  --font: "Google Sans", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  --shell-max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand); }

.page-shell {
  width: min(var(--shell-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

/* —— Header Mayele-style —— */
.site-header {
  margin-bottom: 1.5rem;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--header-bar);
  border-radius: var(--radius-shell);
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
  position: relative;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.45rem;
}

.nav-pill a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.nav-pill a:hover { color: var(--brand); }

.nav-pill a.nav-active {
  color: var(--brand);
  font-weight: 600;
}

.header-cta {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem !important;
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff !important;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand) !important;
}

/* —— Hero —— */
.hero {
  padding: 2rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 34rem;
}

.hero-availability {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface);
  border-radius: var(--radius-shell);
  padding: 3.5rem 1.5rem;
  margin: 0 -0.5rem;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: 1.85rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.section-alt .pillar {
  background: var(--bg);
}

.pillar-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.flow-strip span {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
}

.code-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.section-alt .code-card {
  background: var(--bg);
}

.code-card pre {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

.section-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 2rem;
  color: #fff;
  border-radius: var(--radius-shell);
  background:
    linear-gradient(135deg, #ff4b26 0%, #ff5722 40%, #d63216 100%);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 80%, rgba(255, 255, 255, 0.1), transparent 50%),
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.04) 14px,
      rgba(255, 255, 255, 0.04) 28px
    );
  pointer-events: none;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.cta p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta .btn-outline {
  background: #fff;
  border-color: #fff;
  color: var(--brand) !important;
}

/* —— Footer Mayele-style —— */
.site-footer {
  margin-top: 2.5rem;
}

.footer-bar {
  background: var(--footer-bg);
  color: #fff;
  border-radius: var(--radius-shell);
  padding: 2rem 2rem 1.75rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding-top: 0.15rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}

.footer-links a:hover { color: #fff; }

.footer-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.footer-company {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.footer-company a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-company a:hover { color: #fff; }

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.footer-copy a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page-shell {
    width: calc(100% - 1.25rem);
    padding: 0.75rem 0 1.5rem;
  }

  .header-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo toggle"
      "cta cta"
      "nav nav";
    gap: 0.5rem;
    border-radius: 1.25rem;
    padding: 0.65rem;
  }

  .logo-pill { grid-area: logo; }
  .nav-toggle {
    display: block;
    grid-area: toggle;
    justify-self: end;
  }

  .header-cta {
    grid-area: cta;
    width: 100%;
    justify-content: center;
  }

  .nav-pill {
    grid-area: nav;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
  }

  .nav-pill.open { display: flex; }

  .nav-pill a {
    text-align: center;
    padding: 0.65rem;
  }

  .footer-bar {
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 0.75rem;
  }

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