/* ============================================================
   Sift — marketing site styles
   Palette: warm stone + teal accent, editorial serif + clean sans
   ============================================================ */

:root {
  /* Colours */
  --stone-100: #fcfaf6;   /* lightest surface */
  --stone-200: #f1eee8;   /* page background */
  --stone-300: #e6e1d7;   /* borders / dividers */
  --ink: #2c2825;         /* primary text */
  --ink-60: #6c655d;      /* muted text */
  --teal: #2f9082;        /* accent */
  --teal-dark: #287a6e;   /* hover / darker accent */
  --teal-wash: #cfeae3;   /* soft teal background */

  /* tag colours (soft) */
  --tag-coral: #e08a73;
  --tag-amber: #d9a441;
  --tag-violet: #9785c4;

  /* dark section */
  --dark-bg: #1f2a28;
  --dark-surface: #283734;
  --dark-line: #3a4b47;
  --dark-text: #e9efed;
  --dark-muted: #a9bcb7;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone-200);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

ul { list-style: none; margin: 0; padding: 0; }

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

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--teal-wash); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
}
.section-title--light { color: var(--dark-text); }

.section-lede {
  margin-top: 18px;
  color: var(--ink-60);
  font-size: 1.08rem;
}
.section-lede--light { color: var(--dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--teal);
  color: var(--stone-100);
  box-shadow: 0 6px 18px -8px rgba(47, 144, 130, 0.7);
}
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }

.btn--ghost {
  background: var(--teal);
  color: var(--stone-100);
  padding: 9px 18px;
}
.btn--ghost:hover { background: var(--teal-dark); }

.btn--text {
  color: var(--teal-dark);
  padding: 12px 6px;
}
.btn--text:hover { color: var(--ink); }

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 238, 232, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--stone-300);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__icon { display: inline-flex; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__links a:not(.btn) {
  font-weight: 500;
  color: var(--ink-60);
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(56px, 6vw, 96px) 0 clamp(64px, 7vw, 110px);
  background:
    radial-gradient(900px 500px at 78% -8%, var(--teal-wash) 0%, rgba(207, 234, 227, 0) 60%),
    var(--stone-200);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4rem);
  margin-bottom: 22px;
}
.hero__subtitle {
  font-size: 1.18rem;
  color: var(--ink-60);
  max-width: 30em;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero__note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-60);
}

/* ---- Hero screenshot carousel (in a faux app window) ---- */
.hero__visual { perspective: 1400px; }
.shot {
  background: var(--stone-100);
  border: 1px solid var(--stone-300);
  border-radius: 16px;
  box-shadow:
    0 30px 60px -28px rgba(44, 40, 37, 0.32),
    0 4px 12px -6px rgba(44, 40, 37, 0.18);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s var(--ease);
}
.hero__visual:hover .shot { transform: rotateY(0deg) rotateX(0deg); }

/* Window title bar */
.shot__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--stone-200);
  border-bottom: 1px solid var(--stone-300);
}
.shot__dots { display: inline-flex; gap: 7px; }
.shot__dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--stone-300);
}
.shot__dots i:nth-child(1) { background: #e0685f; }
.shot__dots i:nth-child(2) { background: #e0a23c; }
.shot__dots i:nth-child(3) { background: #6fae6a; }
.shot__title {
  flex: 1; text-align: center;
  font-size: 0.8rem; font-weight: 600; color: var(--ink-60);
  /* nudge left so the title optically centres past the dots */
  margin-right: 40px;
}

/* Sliding track */
.shot__viewport { overflow: hidden; }
.shot__track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.shot__slide { flex: 0 0 100%; margin: 0; position: relative; }
.shot__slide img { display: block; width: 100%; height: auto; }
.shot__caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  padding: 9px 14px; border-radius: 10px;
  background: rgba(28, 38, 36, 0.78);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 0.86rem; font-weight: 500; text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.shot__slide.is-active .shot__caption { opacity: 1; transform: none; }

/* Dot navigation */
.shot__dotsnav {
  display: flex; justify-content: center; gap: 8px;
  padding: 12px 0 14px;
  background: var(--stone-100);
}
.shot__dotsnav button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
  background: var(--stone-300); cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.shot__dotsnav button:hover { background: var(--ink-60); }
.shot__dotsnav button[aria-selected="true"] {
  background: var(--teal); transform: scale(1.3);
}
.shot__dotsnav button:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--stone-100);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--stone-200);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(44, 40, 37, 0.35);
  border-color: var(--teal-wash);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-wash);
  color: var(--teal-dark);
  margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.feature p {
  color: var(--ink-60);
  font-size: 0.98rem;
}

/* ============================================================
   KEYBOARD (dark)
   ============================================================ */
.keyboard {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--dark-bg);
}
.keyboard__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.keyboard__copy .section-lede--light { max-width: 32em; }

.shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.shortcut {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.shortcut:hover { border-color: var(--teal); transform: translateY(-2px); }
.keys {
  display: inline-flex;
  gap: 5px;
  flex: none;
}
kbd {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-text);
  background: #324340;
  border: 1px solid #46605b;
  border-bottom-width: 2.5px;
  border-radius: 7px;
}
.shortcut__label {
  font-size: 0.95rem;
  color: var(--dark-muted);
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.cta {
  padding: clamp(72px, 9vw, 130px) 0;
  background:
    radial-gradient(700px 420px at 50% 0%, var(--teal-wash) 0%, rgba(207, 234, 227, 0) 65%),
    var(--stone-200);
  text-align: center;
}
.cta__inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__icon {
  margin-bottom: 24px;
  filter: drop-shadow(0 12px 22px rgba(47, 144, 130, 0.35));
}
.cta__title { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); }
.cta__lede {
  margin: 18px 0 32px;
  color: var(--ink-60);
  font-size: 1.12rem;
}
.cta__note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-60);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--stone-100);
  border-top: 1px solid var(--stone-300);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.footer__copy {
  color: var(--ink-60);
  font-size: 0.92rem;
}
.footer__contact {
  color: var(--teal-dark);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.footer__contact:hover { color: var(--ink); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: 2; max-width: 560px; }
  .shot { transform: none; }
  .keyboard__inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__links { gap: 16px; }
  .nav__links a:not(.btn) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .shortcuts { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .hero__actions { gap: 10px; }
}
