/* ==========================================================================
   Polaris — focused launch page
   Restrained palette: white + slate + one teal accent. No decoration.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --teal:        #0EA293;
  --teal-dark:   #0B7F73;

  --ink-900:     #0F172A;
  --ink-800:     #1E293B;
  --ink-700:     #334155;
  --ink-600:     #475569;
  --ink-500:     #64748B;
  --ink-400:     #94A3B8;
  --ink-300:     #CBD5E1;
  --ink-200:     #E2E8F0;
  --ink-100:     #F1F5F9;

  --paper:        #FFFFFF;
  --paper-soft:   #F8FAFC;

  --r:            8px;
  --r-md:         12px;
  --r-lg:         16px;

  --max-w:        1120px;
  --gutter:       28px;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Reset / base ---------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--ink-200); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink-900);
  letter-spacing: -0.025em;
  text-decoration: none;
}
.brand:hover { color: var(--ink-900); text-decoration: none; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r);
  font-family: inherit; font-weight: 500; font-size: 14.5px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--ink-900); color: #fff;
}
.btn-primary:hover {
  background: #000; color: #fff;
}
.btn-ghost {
  background: transparent; color: var(--ink-800);
  border-color: var(--ink-200);
}
.btn-ghost:hover {
  border-color: var(--ink-400); color: var(--ink-900);
}
.btn-lg { padding: 13px 24px; font-size: 15px; }

/* Hero ------------------------------------------------------------------ */
.hero {
  padding: 88px 0 72px;
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 {
  font-family: inherit;
  font-size: clamp(40px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 24px;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}
.hero-meta {
  margin-top: 24px;
  font-size: 13.5px; color: var(--ink-500);
}

/* Product preview ------------------------------------------------------- */
.preview-wrap {
  max-width: 1000px; margin: 72px auto 0;
  padding: 0 var(--gutter);
}
.preview-window {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -12px rgba(15, 23, 42, 0.10),
    0 24px 56px -28px rgba(15, 23, 42, 0.18);
}
.preview-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--ink-200);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #FB7185; }
.dot-y { background: #FBBF24; }
.dot-g { background: #34D399; }
.preview-url {
  margin-left: auto; margin-right: auto;
  font-size: 12px; color: var(--ink-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.preview-row {
  display: grid; grid-template-columns: 1fr 2.2fr 1.4fr 1fr; gap: 24px;
  padding: 14px 22px; border-bottom: 1px solid var(--ink-100);
  font-size: 13.5px; color: var(--ink-800); align-items: center;
}
.preview-row:last-child { border-bottom: 0; }
.preview-row-hdr {
  font-weight: 600; color: var(--ink-500); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: #FCFDFE;
}
.preview-row .col-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; color: var(--ink-600);
}
.pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.pill-ok   { background: #DCFCE7; color: #166534; }
.pill-run  { background: #DBEAFE; color: #1D4ED8; }
.pill-warn { background: #FEF3C7; color: #92400E; }

/* Modules section ------------------------------------------------------- */
.section {
  padding: 112px 0;
}
.section-alt {
  background: var(--paper-soft);
}
.section-head {
  max-width: 640px; margin: 0 auto 56px; text-align: center;
}
.section-head .eyebrow {
  display: block;
  color: var(--teal); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 12px;
}
.section-head h2 {
  font-family: inherit;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 14px;
}
.section-head p {
  font-size: 17px; line-height: 1.55;
  color: var(--ink-600);
  margin: 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 880px) {
  .modules-grid { grid-template-columns: 1fr; }
}
.module-tile {
  background: #fff;
  padding: 32px 28px;
  transition: background .12s;
}
.module-tile:hover {
  background: #FCFDFE;
}
.module-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}
.module-name::before {
  content: ''; width: 6px; height: 6px;
  background: var(--teal); border-radius: 50%;
  display: inline-block;
}
.module-tile h3 {
  font-family: inherit;
  font-size: 19px; font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.module-tile p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-600);
  margin: 0;
}

/* Closing CTA ----------------------------------------------------------- */
.close-cta {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--ink-100);
}
.close-cta h2 {
  font-family: inherit;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 16px;
  color: var(--ink-900); font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.close-cta p {
  color: var(--ink-600);
  font-size: 17px; line-height: 1.55;
  max-width: 560px; margin: 0 auto 32px;
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--ink-100);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.footer-inner .brand { font-size: 17px; }
.footer-right {
  display: flex; align-items: center; gap: 20px;
  color: var(--ink-500); font-size: 13.5px;
}
.footer-right a { color: var(--ink-600); }
.footer-right a:hover { color: var(--ink-900); }

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 48px; }
  .preview-wrap { margin: 48px auto 0; }
  .close-cta { padding: 80px 0; }
}
