:root {
  --bg: #fff7ec;
  --bg-alt: #fffdf8;
  --ink: #12263f;
  --ink-soft: #35506d;
  --line: #d8e2eb;
  --card: rgba(255, 255, 255, 0.72);
  --accent: #f45b32;
  --accent-2: #0f8c7f;
  --shadow: 0 18px 48px rgba(31, 62, 86, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: linear-gradient(170deg, #fff9f0 0%, #f6fbff 55%, #f8fff9 100%);
}

/* ── Background decorations ── */

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
  z-index: -2;
}

.bg-orb-1 {
  top: -180px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(244, 91, 50, 0.22) 0%, rgba(244, 91, 50, 0) 70%);
}

.bg-orb-2 {
  right: -90px;
  top: 180px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(15, 140, 127, 0.24) 0%, rgba(15, 140, 127, 0) 72%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(to right, rgba(18, 38, 63, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 38, 63, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.65), transparent 78%);
}

/* ── Layout ── */

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* ── Top bar ── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 249, 240, 0.78);
  border-bottom: 1px solid rgba(18, 38, 63, 0.08);
}

.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a {
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-2);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.btn-sm:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #f58938 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(244, 91, 50, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(244, 91, 50, 0.35);
}

.btn-secondary {
  border-color: rgba(18, 38, 63, 0.15);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

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

/* ── Typography ── */

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.84rem;
  text-transform: uppercase;
}

/* ── Hero ── */

.hero {
  padding: 5.7rem 0 3.8rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  margin: 1.1rem 0 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-panel {
  padding: 1.25rem 1.25rem 1.1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 249, 255, 0.84) 100%);
  border: 1px solid rgba(18, 38, 63, 0.12);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.hero-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.hero-panel li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 0.65rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.hero-panel li span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15, 140, 127, 0.12);
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

/* ── Sections ── */

.section {
  padding: 4.8rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(245, 252, 250, 0.8) 100%);
  border-top: 1px solid rgba(18, 38, 63, 0.08);
  border-bottom: 1px solid rgba(18, 38, 63, 0.08);
}

.section-head p {
  margin-bottom: 0.45rem;
}

.section-head h2 {
  max-width: 24ch;
}

/* ── Feature cards ── */

.feature-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: 0 10px 26px rgba(22, 56, 84, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 140, 127, 0.4);
  box-shadow: 0 14px 30px rgba(15, 140, 127, 0.12);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  margin-bottom: 0.6rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ── Screenshots ── */

.screenshot-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.screenshot-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(22, 56, 84, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.screenshot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(22, 56, 84, 0.14);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}

.screenshot-card figcaption {
  padding: 1rem 1.25rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

.screenshot-card figcaption strong {
  color: var(--ink);
}

/* ── Install steps ── */

.install-steps {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.install-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(22, 56, 84, 0.06);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), #12a394);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.step-content pre {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #1a1e2e;
  color: #e8ecf1;
  border-radius: 0.6rem;
  overflow-x: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

.step-content code {
  font-family: "IBM Plex Mono", monospace;
}

.config-note {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(22, 56, 84, 0.06);
}

.config-note h3 {
  margin-bottom: 0.6rem;
}

.config-note p {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 0.6rem;
}

.config-note p:last-child {
  margin-bottom: 0;
}

.config-note a {
  color: var(--accent-2);
  text-decoration: underline;
}

.config-note pre {
  margin: 0.6rem 0;
  padding: 0.75rem 1rem;
  background: #1a1e2e;
  color: #e8ecf1;
  border-radius: 0.6rem;
  overflow-x: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.config-note code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
  background: rgba(18, 38, 63, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.config-note pre code {
  background: none;
  padding: 0;
}

/* ── Flow steps ── */

.flow-grid {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.flow-step {
  position: relative;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.05rem;
  min-height: 190px;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.6rem;
  top: 1.8rem;
  width: 1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.flow-id {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--accent-2);
}

.flow-step h3 {
  margin-bottom: 0.55rem;
}

.flow-step p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Architecture ── */

.architecture-card {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 248, 247, 0.88) 100%);
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(22, 56, 84, 0.1);
}

.architecture-card p {
  max-width: 70ch;
  color: var(--ink-soft);
  line-height: 1.7;
}

.arch-diagram {
  margin: 1.2rem 0;
}

.arch-diagram pre {
  margin: 0;
  padding: 1rem;
  background: #1a1e2e;
  color: #a8d8d0;
  border-radius: 0.6rem;
  overflow-x: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.arch-flow {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.arch-flow span {
  position: relative;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(18, 38, 63, 0.16);
  padding: 0.5rem 0.65rem;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
}

.arch-flow span:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-2);
  font-weight: 700;
}

/* ── Stack grid ── */

.stack-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stack-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(22, 56, 84, 0.06);
}

.stack-card h3 {
  margin-bottom: 0.7rem;
  color: var(--accent-2);
}

.stack-card ul {
  margin: 0;
  padding: 0 0 0 1.2rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ── CTA ── */

.cta-section {
  padding-bottom: 5rem;
}

.cta-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 249, 255, 0.84) 100%);
  border: 1px solid rgba(18, 38, 63, 0.12);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  max-width: none;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

.cta-card .hero-cta {
  justify-content: center;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid rgba(18, 38, 63, 0.09);
  background: rgba(255, 255, 255, 0.58);
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.footer a {
  color: var(--accent-2);
  text-decoration: none;
}

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

/* ── Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */

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

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

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

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .arch-flow {
    grid-template-columns: 1fr 1fr;
  }

  .arch-flow span::after {
    display: none;
  }

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

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 60px;
  }

  .nav {
    gap: 0.7rem;
    font-size: 0.92rem;
  }

  .section {
    padding: 3.8rem 0;
  }

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

  .flow-grid,
  .arch-flow {
    grid-template-columns: 1fr;
  }

  .install-step {
    grid-template-columns: 40px 1fr;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer-inner {
    min-height: 88px;
    flex-direction: column;
    justify-content: center;
  }

  .arch-diagram pre {
    font-size: 0.65rem;
  }
}
