/* ── Satoshi font ── */
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

/* ── Tokens (matched to desktop app) ── */
:root {
  --bg: #f6f5f3;
  --bg-muted: #ebe8e2;
  --fg: #181818;
  --fg-soft: #3a3732;
  --muted: #6f6f6f;
  --accent: #2b2a28;
  --edge: #e9e7e2;
  --panel: rgba(255, 255, 255, 0.8);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --ring: rgba(43, 42, 40, 0.2);
  --shadow-soft: 0 16px 32px -24px rgba(43, 42, 40, 0.25);
  --shadow-elevated: 0 28px 60px -32px rgba(43, 42, 40, 0.35);
  --hero-rotation-interval: 5000ms;
}

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

/* ── Base ── */
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout ── */
main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 80px);
  padding-bottom: clamp(48px, 8vw, 80px);
}

/* ── Top Nav ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 40px);
  background: rgba(246, 245, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.top-nav--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand__logo {
  width: 24px;
  height: 24px;
}
.brand:hover {
  opacity: 0.7;
}
.top-nav__links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover {
  color: var(--fg);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  box-shadow: var(--shadow-soft);
}
.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.nav-cta:active {
  transform: translateY(0);
}

/* ── Hero ── */
.hero__logo {
  width: clamp(64px, 12vw, 96px);
  height: clamp(64px, 12vw, 96px);
}
.hero {
  text-align: center;
  padding-top: clamp(24px, 6vw, 64px);
}
.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}
.hero__tagline {
  margin: 0;
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  font-weight: 400;
}
.hero__tagline em {
  font-style: italic;
  color: var(--fg-soft);
}

/* ── Phrase rotator ── */
.hero__rotator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--accent);
  min-width: var(--hero-rotator-max-width, 180px);
  width: var(--hero-rotator-max-width, auto);
  max-width: 100%;
}
.hero__rotator-track {
  position: relative;
  display: block;
  width: 100%;
  min-height: var(--hero-rotator-max-height, 1.3em);
  height: var(--hero-rotator-max-height, auto);
  overflow: hidden;
}
.hero__rotator-phrase {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: inherit;
  line-height: inherit;
  color: inherit;
  transform: translateY(0);
  will-change: opacity, transform;
}
.hero__rotator-measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  white-space: normal;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.hero__rotator-phrase--enter {
  animation: rotator-enter 500ms ease forwards;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 2;
}
.hero__rotator-phrase--leave {
  animation: rotator-leave 500ms ease forwards;
  z-index: 1;
}

@keyframes rotator-enter {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rotator-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

/* ── CTA Button ── */
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--bg);
  background: var(--accent);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  box-shadow: var(--shadow-soft);
}
.hero__cta:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.hero__cta:active {
  transform: translateY(0);
}

/* ── Social Proof (testimonial + use cases) ── */
.social-proof {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--edge);
  background: var(--panel-strong);
  text-align: center;
}
.social-proof__testimonial {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.social-proof__text {
  margin: 0;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  color: var(--fg-soft);
  max-width: 52ch;
  text-align: center;
  line-height: 1.5;
}
.social-proof__audience {
  padding: clamp(16px, 3vw, 24px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.social-proof__bridge {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--fg);
}
.use-cases__rotator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
  color: var(--fg-soft);
  line-height: 1.3;
  min-width: var(--hero-rotator-max-width, 180px);
  width: var(--hero-rotator-max-width, auto);
  max-width: 100%;
  min-height: 1.6em;
}

/* ── Feature Cards ── */
.features {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
}
.feature-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--edge);
  background: var(--panel);
}
.feature-card h3 {
  margin: 0 0 clamp(12px, 2vw, 16px);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.feature-card p {
  margin: 0 0 0.6em;
  color: var(--fg-soft);
  line-height: 1.65;
  max-width: 64ch;
}
.feature-card p:last-child {
  margin-bottom: 0;
}
.feature-card ol {
  margin: 0.6em 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  color: var(--fg-soft);
}

/* ── Highlight Cards ── */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 24px);
}
.highlight-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--edge);
  background: var(--panel);
}
.highlight-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}
.highlight-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
}

/* ── Footer ── */
footer {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--fg);
}

/* ── Links ── */
a {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }
  .testimonial__inner {
    padding: 24px 20px;
  }
  .highlights {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__rotator-phrase--enter,
  .hero__rotator-phrase--leave {
    animation: none !important;
  }
}
