/* Hallmark · genre: atmospheric · macrostructure: workbench · theme: midnight · enrichment: none (typography only) · nav: N5 · footer: Ft5 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper: #0d0d0f;
  --paper-2: #121215;
  --paper-3: #18181c;
  --ink: #f0f0f2;
  --ink-2: #a0a0aa;
  --ink-3: #686876;
  --accent: #FF5A0E;
  --accent-2: #FF6B2F;
  --accent-soft: rgba(255, 90, 14, 0.1);
  --rule: rgba(240, 240, 242, 0.06);
  --rule-2: rgba(240, 240, 242, 0.12);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --max-w: 1200px;
  --page-gutter: clamp(16px, 4vw, 32px);
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: clip;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

strong {
  font-weight: 600;
}

/* ─── Navigation (N5 Floating Pill) ─── */

.nav {
  position: fixed;
  top: var(--space-md);
  inset-inline: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 var(--page-gutter);
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  pointer-events: auto;
  max-width: 840px;
  width: 100%;
}

.nav__wordmark {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
  margin-inline: auto;
}

.nav__links a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__download {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav__download:hover {
  background: var(--accent-2);
}

/* ─── Hero (H2 Split Diptych) ─── */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px var(--page-gutter) var(--space-4xl);
  overflow: hidden;
}

.hero__bloom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 40%, rgba(255, 90, 14, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255, 90, 14, 0.03), transparent 50%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero__sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--ink-2);
  max-width: 50ch;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.hero__visual {
  margin: 0;
}

.hero__shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.35);
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn--primary:hover {
  background: var(--accent-2);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-2);
}

.btn--ghost:hover {
  border-color: rgba(240, 240, 242, 0.25);
  background: rgba(240, 240, 242, 0.04);
}

/* ─── Sections ─── */

.section {
  padding: var(--space-4xl) var(--page-gutter);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__head {
  margin-bottom: var(--space-2xl);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section__body {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 55ch;
  line-height: 1.7;
  margin-top: var(--space-sm);
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

/* ─── Screenshot Section (F5 Annotated) ─── */

.screenshot-section {
  background: var(--paper-2);
}

.screenshot__text {
  margin-bottom: var(--space-2xl);
  max-width: 55ch;
}

.screenshot__frame {
  margin: 0;
  position: relative;
}

.screenshot__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
}

.screenshot__callouts {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.callout {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}

.callout__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-clr);
  flex-shrink: 0;
}

/* ─── Features Bento (F1, 4 tiles) ─── */

.features-section {
  position: relative;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature {
  background: var(--paper-2);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature--wide {
  grid-column: span 1;
}

.feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(240, 240, 242, 0.04);
  margin-bottom: var(--space-xs);
}

.feature__icon img {
  width: 26px;
  height: 26px;
  opacity: 0.8;
}

.feature__icon--accent {
  background: var(--accent-soft);
}

.feature__letter {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.feature__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature__body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ─── Platform Section ─── */

.platform-section {
  text-align: center;
}

.platform__header {
  margin-bottom: var(--space-xl);
}

.platform__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  justify-content: center;
}

.platform__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--ink-2);
  min-width: 80px;
}

/* ─── Footer (Ft5 Statement) ─── */

.footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-3xl) var(--page-gutter);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer__statement {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--ink-2);
  max-width: 38ch;
  line-height: 1.5;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--ink-3);
}

.footer__credit strong {
  color: var(--ink);
}

.footer__sep {
  color: var(--rule-2);
}

.footer__link {
  color: var(--ink-3);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--accent);
}

/* ─── Utility ─── */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--page-gutter) var(--space-3xl);
}

.page p {
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.page ul {
  list-style: none;
  margin-bottom: var(--space-md);
}

.page ul li {
  padding-left: var(--space-lg);
  position: relative;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.page ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}

.page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page a:hover {
  color: var(--accent-2);
}

.page .back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: var(--space-xl);
}

.page .back-link:hover {
  color: var(--ink);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .nav__pill {
    gap: var(--space-sm);
    padding: 6px 12px;
  }

  .nav__links {
    gap: var(--space-sm);
  }

  .nav__links a {
    font-size: 13px;
  }

  .nav__download {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__text {
    order: 0;
    text-align: center;
    align-items: center;
  }

  .hero__sub {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: 1;
  }

  .section {
    padding: var(--space-3xl) var(--page-gutter);
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .feature--wide {
    grid-column: span 1;
  }

  .screenshot__callouts {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 414px) {
  .hero {
    padding: 100px var(--page-gutter) var(--space-3xl);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .platform__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 375px) {
  .hero__title {
    font-size: 2rem;
  }

  .nav__links a:nth-child(n+3) {
    display: none;
  }
}

@media (max-width: 320px) {
  .hero__title {
    font-size: 1.75rem;
  }
}
