@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #17151d;
  --ink-soft: #5f5a68;
  --paper: #f5f2ea;
  --paper-deep: #ebe6dc;
  --white: #fffdf8;
  --violet: #7357f5;
  --violet-light: #a995ff;
  --violet-wash: #ece7ff;
  --green: #c9f4b5;
  --coral: #ff8e74;
  --line: rgba(23, 21, 29, 0.13);
  --line-light: rgba(255, 255, 255, 0.15);
  --shadow: 0 32px 80px rgba(31, 24, 50, 0.14);
  --shadow-soft: 0 16px 45px rgba(31, 24, 50, 0.09);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 21, 29, .055) .65px, transparent .65px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--violet-light);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 44px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.skip-link:focus { transform: translateY(0); }

.shutdown-strip {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: .86rem;
}

.shutdown-strip__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.shutdown-strip strong { color: white; font-weight: 700; }
.shutdown-strip a { color: var(--violet-light); font-weight: 700; text-underline-offset: 3px; }
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 142, 116, .13);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 234, .88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font: 800 1.04rem/1 'Manrope', sans-serif;
  text-decoration: none;
  letter-spacing: -.035em;
}

.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand small {
  margin-left: 3px;
  color: var(--ink-soft);
  font: 600 .64rem/1 'DM Sans', sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--violet);
  color: white;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(115,87,245,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(115,87,245,.32); }
.button--small { min-height: 42px; padding-inline: 17px; font-size: .88rem; }
.button--dark { background: var(--ink); box-shadow: 0 10px 26px rgba(23,21,29,.16); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.button--ghost:hover { background: rgba(255,255,255,.58); box-shadow: none; }
.button[aria-disabled='true'], button:disabled { cursor: not-allowed; transform: none; box-shadow: none; opacity: .55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--violet);
  font: 800 .73rem/1 'Manrope', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }

.display {
  margin: 0;
  font: 800 clamp(3.4rem, 8vw, 7.7rem)/.91 'Manrope', sans-serif;
  letter-spacing: -.075em;
}

.display em { color: var(--violet); font-style: normal; }
.lede { max-width: 640px; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 4%;
  right: -9%;
  z-index: -1;
  width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(169,149,255,.36);
  filter: blur(2px);
}

.hero-copy { max-width: 980px; }
.hero-copy .lede { margin: 30px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.product-stage {
  position: relative;
  margin-top: 88px;
  padding: 26px 26px 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.product-stage::before {
  content: 'AUTOSORTPRO / PRODUCT ARCHIVE';
  position: absolute;
  top: -38px;
  right: 0;
  color: var(--ink-soft);
  font: 700 .65rem/1 'Manrope', sans-serif;
  letter-spacing: .13em;
}

.window-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 20px; }
.window-dots { display: flex; gap: 7px; }
.window-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.window-label { color: rgba(255,255,255,.42); font-size: .72rem; letter-spacing: .08em; }
.product-stage img { width: 100%; border-radius: 16px 16px 0 0; }

.micro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.micro-stat { padding: 38px 30px; border-right: 1px solid var(--line); }
.micro-stat:last-child { border-right: 0; }
.micro-stat strong { display: block; font: 800 1.15rem/1.2 'Manrope'; letter-spacing: -.03em; }
.micro-stat span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .86rem; }

.section { padding: 132px 0; }
.section--dark { color: white; background: var(--ink); }
.section--violet { color: white; background: var(--violet); }
.section--compact { padding-block: 88px; }
.section-heading { max-width: 820px; margin-bottom: 64px; }
.section-heading h2 {
  margin: 0;
  font: 800 clamp(2.6rem, 5.3vw, 5.1rem)/1 'Manrope';
  letter-spacing: -.065em;
}
.section-heading p { max-width: 620px; margin: 22px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.section--dark .eyebrow { color: var(--violet-light); }
.section--dark .section-heading p { color: rgba(255,255,255,.59); }

.story-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 28px; }
.story-intro {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  border-radius: var(--radius-lg);
  background: var(--green);
}
.story-intro .big-number { font: 800 clamp(4rem, 8vw, 7rem)/1 'Manrope'; letter-spacing: -.08em; }
.story-intro p { max-width: 280px; margin: 0; font-size: 1.05rem; }
.story-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.story-card { padding: 32px; border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: rgba(255,255,255,.045); }
.story-card:nth-child(3) { grid-column: span 2; }
.story-card__index { display: block; margin-bottom: 56px; color: var(--violet-light); font: 700 .75rem/1 'Manrope'; letter-spacing: .12em; }
.story-card h3 { margin: 0 0 12px; font: 700 1.35rem/1.2 'Manrope'; letter-spacing: -.035em; }
.story-card p { margin: 0; color: rgba(255,255,255,.58); }

.feature-row { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 70px; margin-bottom: 120px; }
.feature-row:nth-child(even) { grid-template-columns: 1.18fr .82fr; }
.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-row:last-child { margin-bottom: 0; }
.feature-index { color: var(--violet); font: 800 .75rem/1 'Manrope'; letter-spacing: .13em; }
.feature-copy h3 { margin: 20px 0 18px; font: 800 clamp(2rem, 4vw, 3.8rem)/1.02 'Manrope'; letter-spacing: -.06em; }
.feature-copy p { color: var(--ink-soft); font-size: 1.06rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 700; }
.screenshot-frame { padding: 14px; border-radius: var(--radius-lg); background: #ded8ce; box-shadow: var(--shadow-soft); }
.screenshot-frame img { width: 100%; border-radius: 14px; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); }
.timeline-card { position: relative; padding: 36px; border-left: 1px solid rgba(255,255,255,.28); }
.timeline-card:first-child { border-left: 0; }
.timeline-card time { display: block; color: rgba(255,255,255,.62); font: 700 .74rem/1 'Manrope'; letter-spacing: .1em; text-transform: uppercase; }
.timeline-card h3 { margin: 68px 0 14px; font: 800 clamp(1.6rem, 3vw, 2.35rem)/1.05 'Manrope'; letter-spacing: -.05em; }
.timeline-card p { margin: 0; color: rgba(255,255,255,.7); }
.timeline-card .timeline-mark { position: absolute; top: -6px; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: white; }
.timeline-card:first-child .timeline-mark { left: 0; }

.closing-cta { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 50px; }
.closing-cta h2 { margin: 0; font: 800 clamp(3rem, 6vw, 6rem)/.96 'Manrope'; letter-spacing: -.07em; }
.closing-cta p { margin: 0 0 24px; color: var(--ink-soft); }

.site-footer { padding: 68px 0 34px; color: white; background: #0d0c10; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr; gap: 50px; padding-bottom: 66px; }
.footer-brandline { display: inline-flex; align-items: center; gap: 12px; font: 800 1.2rem/1 'Manrope'; }
.footer-brandline img { width: 42px; border-radius: 12px; }
.footer-blurb { max-width: 390px; margin-top: 18px; color: rgba(255,255,255,.5); }
.footer-col h3 { margin: 0 0 18px; color: rgba(255,255,255,.4); font: 700 .7rem/1 'Manrope'; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; margin: 9px 0; color: rgba(255,255,255,.75); text-decoration: none; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.38); font-size: .78rem; }

/* Archive / download page */
.page-hero { padding: 104px 0 80px; }
.page-hero h1 { max-width: 900px; margin: 0; font: 800 clamp(3.4rem, 8vw, 7.4rem)/.92 'Manrope'; letter-spacing: -.075em; }
.page-hero .lede { margin: 28px 0 0; }
.notice-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 36px; border-radius: var(--radius-lg); background: var(--violet-wash); }
.notice-card h2 { margin: 0 0 10px; font: 800 clamp(1.5rem, 3vw, 2.4rem)/1.08 'Manrope'; letter-spacing: -.045em; }
.notice-card p { max-width: 720px; margin: 0; color: var(--ink-soft); }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.35); }
.platform-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.platform-icon { font: 800 1rem/1 'Manrope'; }
.platform-state { padding: 6px 10px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.platform-card h3 { margin: 68px 0 10px; font: 800 1.8rem/1 'Manrope'; letter-spacing: -.045em; }
.platform-card p { margin: 0; color: var(--ink-soft); }
.platform-card--featured { color: white; background: var(--ink); border-color: var(--ink); }
.platform-card--featured p { color: rgba(255,255,255,.55); }
.platform-card--featured .platform-state { background: rgba(255,255,255,.11); color: rgba(255,255,255,.68); }

/* Legal pages */
.legal-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 0; font: 800 clamp(3.2rem, 7vw, 6.5rem)/.95 'Manrope'; letter-spacing: -.07em; }
.updated { margin: 18px 0 0; color: var(--ink-soft); font-size: .86rem; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: space-between; gap: 76px; padding: 72px 0 120px; }
.legal-nav { position: sticky; top: 30px; align-self: start; }
.legal-nav span { display: block; margin-bottom: 18px; color: var(--ink-soft); font: 800 .68rem/1 'Manrope'; letter-spacing: .12em; text-transform: uppercase; }
.legal-nav a { display: block; margin: 10px 0; color: var(--ink-soft); font-size: .86rem; text-decoration: none; }
.legal-nav a:hover { color: var(--violet); }
.legal-content > p:first-child { margin-top: 0; font-size: 1.16rem; color: var(--ink); }
.legal-content h2 { scroll-margin-top: 30px; margin: 64px 0 18px; padding-top: 4px; font: 800 clamp(1.55rem, 3vw, 2.25rem)/1.1 'Manrope'; letter-spacing: -.045em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 34px 0 10px; font: 800 1.1rem/1.25 'Manrope'; letter-spacing: -.025em; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content a { color: var(--violet); text-underline-offset: 3px; }
.legal-content ul { margin: 16px 0 24px; padding-left: 1.25rem; }
.legal-content li { margin: 8px 0; padding-left: 5px; }
.legal-callout { margin-bottom: 48px; padding: 30px; border-radius: var(--radius-lg); color: white; background: var(--ink); }
.legal-callout .eyebrow { margin-bottom: 14px; color: var(--violet-light); }
.legal-callout h2 { margin: 0 0 12px; padding: 0; color: white; }
.legal-callout p { margin: 8px 0 0; color: rgba(255,255,255,.66); }
.legal-callout a { color: var(--violet-light); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .nav-links a:not(.button) { display: none; }
  .story-grid, .feature-row, .feature-row:nth-child(even), .closing-cta, .legal-layout { grid-template-columns: 1fr; }
  .feature-row, .feature-row:nth-child(even) { gap: 34px; }
  .feature-row:nth-child(even) .feature-copy { order: 0; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 5px 18px; }
  .legal-nav span { width: 100%; }
  .timeline-card { padding: 28px 22px; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .shutdown-strip__inner { padding: 9px 0; flex-wrap: wrap; gap: 7px 12px; }
  .nav { min-height: 66px; }
  .brand small { display: none; }
  .nav-links { gap: 0; }
  .nav-links .button { min-height: 38px; padding-inline: 13px; font-size: .78rem; }
  .hero { padding-top: 72px; }
  .display { font-size: clamp(3rem, 16vw, 4.8rem); }
  .product-stage { margin-top: 58px; padding: 10px 10px 0; border-radius: 22px 22px 0 0; }
  .product-stage::before, .window-label { display: none; }
  .window-bar { padding: 3px 2px 12px; }
  .product-stage img { border-radius: 10px 10px 0 0; }
  .micro-stats, .story-cards, .timeline, .platform-grid, .footer-grid { grid-template-columns: 1fr; }
  .micro-stat { padding: 25px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .micro-stat:last-child { border-bottom: 0; }
  .section { padding: 90px 0; }
  .section-heading { margin-bottom: 42px; }
  .story-intro { min-height: 330px; padding: 28px; }
  .story-card:nth-child(3) { grid-column: auto; }
  .story-card__index { margin-bottom: 34px; }
  .feature-row { margin-bottom: 82px; }
  .screenshot-frame { padding: 8px; border-radius: 18px; }
  .timeline-card { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .timeline-card:first-child { border-top: 0; }
  .timeline-card .timeline-mark { top: -6px; left: 0; }
  .timeline-card:first-child .timeline-mark { display: none; }
  .timeline-card h3 { margin-top: 35px; }
  .notice-card { grid-template-columns: 1fr; padding: 28px; }
  .page-hero { padding: 74px 0 56px; }
  .legal-hero { padding: 64px 0 44px; }
  .legal-layout { padding: 44px 0 90px; gap: 44px; }
  .legal-content h2 { margin-top: 48px; }
  .footer-grid { gap: 34px; }
  .footer-bottom { flex-direction: column; }
}
