/* Sift — landing page styles */

:root {
  --bg: #0b1020;
  --bg-2: #0f1530;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --ink: #0b1020;
  --ink-2: #2c3142;
  --muted: #5f6478;
  --line: #e2e5ee;
  --brand: #1a73e8;
  --brand-2: #6a8cff;
  --brand-ink: #0b3b9a;
  --good: #137333;
  --bad: #b3261e;
  --warn: #b06000;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(11, 16, 32, 0.06), 0 4px 10px rgba(11, 16, 32, 0.05);
  --shadow-2: 0 10px 30px rgba(11, 16, 32, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(11, 16, 32, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

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

/* NAV ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  color: var(--brand);
}

.brand-sub {
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { text-decoration: none; background: #1a223e; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: flex-start; }
}

/* HERO --------------------------------------------------------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 460px at 85% -10%, rgba(106,140,255,0.18), transparent 60%),
    radial-gradient(700px 360px at -10% 30%, rgba(26,115,232,0.18), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #fff 80%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 16, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 16, 32, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid > * { min-width: 0; }
  .hero { padding: 56px 0 48px; }
}

.kicker {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(26,115,232,0.1);
  color: var(--brand-ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kicker--green {
  background: rgba(19, 115, 51, 0.1);
  color: var(--good);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
  font-weight: 800;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover { background: #1a223e; color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { color: var(--ink); border-color: #cdd2e0; background: #fff; }

.btn-large { padding: 14px 26px; font-size: 16px; }

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.hero-bullets li { display: flex; align-items: center; gap: 10px; }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  display: inline-block;
}

/* MOCKUP ------------------------------------------------------- */
.mock {
  position: relative;
  perspective: 1400px;
}

.mock-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.mock:hover .mock-window { transform: rotateY(-2deg) rotateX(2deg); }

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f1f3f7;
  border-bottom: 1px solid var(--line);
}

.mock-dot {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
}

.mock-dot--r { background: #ff5f57; }
.mock-dot--y { background: #febc2e; }
.mock-dot--g { background: #28c840; }

.mock-url {
  margin-left: 14px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbff;
}

.mock-tool {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #e9ecf3;
}

.mock-sm {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.mock-sm-select,
.mock-sm-btn {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 500;
}

.mock-sm-btn--active {
  background: #e8f0fe;
  border-color: var(--brand);
  color: var(--brand-ink);
}

.mock-rows {
  display: flex;
  flex-direction: column;
}

.mock-row {
  display: grid;
  grid-template-columns: 110px 1fr 60px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f0f2f8;
  color: var(--ink-2);
}

.mock-row .mock-name { font-weight: 600; color: var(--ink); }
.mock-row .mock-subj { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .mock-date { color: var(--muted); font-size: 12px; text-align: right; }

.mock-row--header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f3f7;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
}

.mock-row--header .mock-caret {
  width: 14px;
  text-align: center;
  color: var(--muted);
}

.mock-row--header .mock-name { font-weight: 700; }

.mock-row--header .mock-mail {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.mock-badge {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.mock-toast {
  position: absolute;
  bottom: -18px;
  right: -10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-2);
  animation: float 4s ease-in-out infinite;
}

.mock-toast-tick {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center;
  justify-content: center;
  background: var(--good);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .lede {
    max-width: 33ch;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .kicker {
    white-space: normal;
  }

  .mock {
    max-width: 100%;
    overflow: hidden;
  }

  .mock-window,
  .mock:hover .mock-window {
    width: 100%;
    transform: none;
  }

  .mock-toolbar {
    overflow: hidden;
  }

  .mock-tool {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
  }

  .mock-sm {
    min-width: 0;
    overflow: hidden;
  }

  .mock-sm-select,
  .mock-sm-btn {
    padding: 5px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .mock-sm-btn:not(.mock-sm-btn--active) {
    display: none;
  }

  .mock-row {
    grid-template-columns: 88px minmax(0, 1fr) 52px;
    gap: 8px;
    font-size: 12px;
  }

  .mock-row--header .mock-mail {
    display: none;
  }

  .mock-toast {
    right: 10px;
    left: 10px;
    bottom: 10px;
    max-width: none;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* SECTIONS ----------------------------------------------------- */
.section {
  padding: 88px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-title--left { text-align: left; }

.section-lede {
  text-align: center;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0 auto 48px;
}

.section-lede--left { text-align: left; margin: 0 0 28px; }

/* PROBLEM ------------------------------------------------------ */
.section-problem { background: var(--surface-2); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pain-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

.pain-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.pain-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pain-card p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* HOW IT WORKS ------------------------------------------------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.how-step {
  position: relative;
  padding: 32px 24px 24px;
  background: linear-gradient(180deg, #fff, #f7f9ff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.how-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-1);
}

.how-step h3 { margin: 4px 0 8px; font-size: 18px; font-weight: 700; }
.how-step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* FEATURES ----------------------------------------------------- */
.section-features { background: var(--surface-2); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: #cdd2e0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,115,232,0.1);
  color: var(--brand);
  margin-bottom: 14px;
}

.feature-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* COMPARISON --------------------------------------------------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-col {
  border-radius: var(--radius);
  padding: 28px 28px;
  border: 1px solid var(--line);
}

.compare-col h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
}

.compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.compare-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.x { color: var(--bad); font-weight: 700; }
.ok { color: var(--good); font-weight: 700; }

.compare-col--bad {
  background: rgba(179, 38, 30, 0.04);
  border-color: rgba(179, 38, 30, 0.15);
}

.compare-col--good {
  background: rgba(19, 115, 51, 0.05);
  border-color: rgba(19, 115, 51, 0.18);
}

/* INSTALL ------------------------------------------------------ */
.section-install { background: var(--surface-2); }

.install-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 880px) {
  .install-grid { grid-template-columns: 1fr; gap: 32px; }
}

.install-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.install-steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 18px 64px;
  position: relative;
  font-size: 15px;
  box-shadow: var(--shadow-1);
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.install-steps strong { display: block; margin-bottom: 2px; font-weight: 700; }
.install-steps .muted { color: var(--muted); font-size: 14px; }

/* PRIVACY ------------------------------------------------------ */
.privacy-card {
  background: linear-gradient(135deg, #f3fff6 0%, #f7faff 100%);
  border: 1px solid rgba(19, 115, 51, 0.15);
  border-radius: var(--radius);
  padding: 40px;
}

.privacy-card h2 { margin-top: 8px; }
.privacy-card p { color: var(--ink-2); }

/* FAQ ---------------------------------------------------------- */
.section-faq { background: var(--surface-2); }

.faq-container {
  max-width: 760px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s ease;
}

details[open] {
  box-shadow: var(--shadow-1);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
  position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 22px;
  color: var(--muted);
  font-weight: 300;
  transition: transform 0.15s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 12px 0 0;
  color: var(--ink-2);
}

/* CTA ---------------------------------------------------------- */
.section-cta { padding: 96px 0; }

.cta-card {
  background:
    radial-gradient(600px 300px at 80% -20%, rgba(106,140,255,0.4), transparent 60%),
    radial-gradient(500px 240px at 0% 120%, rgba(26,115,232,0.4), transparent 60%),
    linear-gradient(135deg, #0b1020 0%, #1a2350 100%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 64px 40px;
  box-shadow: var(--shadow-2);
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.cta-card p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 28px;
}

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

.cta-card .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-card .btn-primary:hover { background: #f0f2f8; color: var(--ink); }

.cta-card .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.cta-card .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.05); }

/* FOOTER ------------------------------------------------------- */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.footer-brand { font-weight: 700; color: var(--ink); }

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--brand); }

.footer-fineprint {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: 18px;
}

/* DARK MODE ---------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  body {
    background: #0b1020;
    color: #e6e8f0;
  }
  .nav {
    background: rgba(11, 16, 32, 0.85);
    border-bottom-color: #1c2240;
  }
  .nav-links a { color: #b8bdd1; }
  .nav-cta { background: var(--brand); }
  .brand { color: #fff; }
  .hero {
    background:
      radial-gradient(900px 460px at 85% -10%, rgba(106,140,255,0.16), transparent 60%),
      radial-gradient(700px 360px at -10% 30%, rgba(26,115,232,0.18), transparent 60%),
      linear-gradient(180deg, #0b1020 0%, #0d1330 100%);
  }
  .hero::before {
    background-image:
      linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  }
  .lede, .pain-card p, .feature-card p, .how-step p, .compare-col li, .install-steps li, .privacy-card p, details p, .cta-card p {
    color: #b8bdd1;
  }
  .pain-card, .feature-card, .how-step, .install-steps li, details, .compare-col {
    background: #131a36;
    border-color: #1c2240;
  }
  .section-problem, .section-features, .section-install, .section-faq {
    background: #0d1330;
  }
  .compare-col--bad { background: rgba(179, 38, 30, 0.12); border-color: rgba(179, 38, 30, 0.3); }
  .compare-col--good { background: rgba(19, 115, 51, 0.12); border-color: rgba(19, 115, 51, 0.3); }
  .privacy-card {
    background: linear-gradient(135deg, #15243a 0%, #131a36 100%);
    border-color: rgba(19, 115, 51, 0.3);
  }
  .footer { background: #0b1020; border-top-color: #1c2240; color: #8b91a8; }
  .footer-brand { color: #fff; }
  .footer-links a { color: #b8bdd1; }
  .footer-fineprint { border-top-color: #1c2240; color: #6f7593; }
  .btn-ghost { background: #131a36; color: #e6e8f0; border-color: #1c2240; }
  .btn-ghost:hover { color: #fff; border-color: #2a3360; }
  .btn-primary { background: var(--brand); color: #fff; }
  .btn-primary:hover { background: #4189ff; color: #fff; }
  code { background: rgba(255,255,255,0.08); }
  .mock-window, .mock-toolbar, .mock-row, .mock-row--header, .mock-rows {
    background: #fff;
  }
  .mock-toast { background: #fff; color: var(--ink); }
}
