:root {
  --bg: #efe7d7;
  --surface: #fffaf1;
  --surface-muted: #f8f1e6;
  --ink: #111722;
  --ink-soft: #2d3442;
  --muted: #697386;
  --line: #decfb7;
  --green: #2f6658;
  --green-dark: #173c35;
  --gold: #d2a53a;
  --clay: #b9644f;
  --mauve: #6f6379;
  --shadow-sm: 0 12px 32px rgba(34, 29, 20, 0.1);
  --shadow-md: 0 24px 72px rgba(17, 23, 34, 0.22);
  --radius: 8px;
  --container: 1160px;
  --page-gap: 48px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f6ecda 0%, #efe7d7 48%, #e5dcc8 100%);
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 40;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 23, 34, 0.82);
  color: #fff;
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - var(--page-gap));
  max-width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  min-width: 0;
}

.nav-links a {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.button:hover,
.button:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  outline: 3px solid rgba(210, 165, 58, 0.42);
  outline-offset: 2px;
}

.hero-section {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #111722;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  transform: scale(1.02);
  animation: hero-in 800ms ease-out both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 23, 34, 0.96) 0%, rgba(17, 23, 34, 0.76) 38%, rgba(17, 23, 34, 0.24) 100%),
    linear-gradient(0deg, rgba(17, 23, 34, 0.72) 0%, rgba(17, 23, 34, 0) 36%);
}

.hero-content {
  width: calc(100% - var(--page-gap));
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px 0 68px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 7rem;
  line-height: 0.88;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: 4.2rem;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.16;
  letter-spacing: 0;
}

p {
  line-height: 1.6;
}

.hero-tagline {
  max-width: 760px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.22rem;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.trust-bar,
.section,
.site-footer {
  width: calc(100% - var(--page-gap));
  max-width: var(--container);
  margin: 0 auto;
  min-width: 0;
}

.trust-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.96);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.trust-bar div {
  min-height: 102px;
  border-right: 1px solid var(--line);
  padding: 20px;
}

.trust-bar div:last-child {
  border-right: 0;
}

.trust-bar span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-bar strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.28;
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  gap: 0;
  margin-bottom: 36px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: 20px;
}

.app-showcase,
.flow-list article,
.visual-card,
.principles-grid article,
.release-summary,
.timeline-entry {
  border: 1px solid rgba(222, 207, 183, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.82);
  box-shadow: var(--shadow-sm);
}

.app-showcase {
  display: grid;
  place-items: center;
  padding: 36px;
  background:
    linear-gradient(145deg, rgba(47, 102, 88, 0.13), transparent 62%),
    rgba(255, 250, 241, 0.86);
}

.phone-shell {
  width: min(100%, 330px);
  border: 10px solid var(--ink);
  border-radius: 34px;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.phone-shell img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.flow-list article {
  min-height: 210px;
  padding: 24px;
}

.flow-list span,
.principles-grid span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--green);
  font-weight: 950;
}

.flow-list p,
.principles-grid p,
.timeline-entry p,
.timeline-entry li {
  color: var(--muted);
}

.cards-section {
  padding-top: 42px;
}

.card-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 280px;
  gap: 16px;
}

.visual-card {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.visual-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(17, 23, 34, 0.82) 0%, rgba(17, 23, 34, 0.12) 62%);
}

.visual-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card div {
  padding: 22px;
}

.visual-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.visual-card h3 {
  margin-bottom: 0;
}

.principles-section {
  padding-top: 28px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.principles-grid article {
  min-height: 260px;
  padding: 24px;
}

.changelog-section {
  padding-top: 62px;
}

.changelog-heading {
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;
  gap: 24px;
}

.release-summary {
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(47, 102, 88, 0.13), transparent 66%),
    rgba(255, 250, 241, 0.92);
}

.release-summary span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.release-summary strong {
  font-size: 1.38rem;
  line-height: 1.2;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.84);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-button:hover {
  transform: translateY(-1px);
}

.filter-button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  animation: entry-up 240ms ease-out both;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.version-badge,
.type-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.version-badge {
  background: rgba(17, 23, 34, 0.08);
}

.type-badge {
  background: rgba(47, 102, 88, 0.12);
  color: var(--green-dark);
}

.timeline-date {
  color: var(--muted);
  font-weight: 850;
}

.change-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.change-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.change-block h4 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.change-block ul {
  margin: 0;
  padding-left: 18px;
}

.change-block li + li {
  margin-top: 6px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 48px;
  color: var(--muted);
  gap: 16px;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

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

.site-footer a {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 900;
}

@keyframes hero-in {
  from {
    opacity: 0.74;
    filter: blur(8px) saturate(0.9);
    transform: scale(1.07);
  }
  to {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1.02);
  }
}

@keyframes entry-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  h1 {
    font-size: 5.6rem;
  }

  h2 {
    font-size: 3.15rem;
  }

  .hero-tagline {
    font-size: 1.75rem;
  }

  .product-grid,
  .changelog-heading {
    grid-template-columns: 1fr;
  }

  .app-showcase {
    min-height: auto;
  }

  .phone-shell {
    width: min(100%, 300px);
  }

  .card-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --page-gap: 32px;
  }

  .site-header {
    background: rgba(17, 23, 34, 0.9);
  }

  .nav-shell {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
    min-height: 64px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: 720px;
  }

  .hero-image {
    object-position: center top;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(17, 23, 34, 0.94) 0%, rgba(17, 23, 34, 0.74) 38%, rgba(17, 23, 34, 0.16) 100%);
  }

  .hero-content {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
    padding: 300px 0 44px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  h3 {
    font-size: 1.28rem;
  }

  .hero-tagline {
    max-width: 100%;
    font-size: 1.35rem;
  }

  .hero-lead,
  .section-heading p {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .trust-bar,
  .flow-list,
  .principles-grid,
  .change-columns {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 16px;
  }

  .section,
  .site-footer {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
  }

  .trust-bar div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .trust-bar div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .product-grid {
    gap: 16px;
  }

  .app-showcase {
    padding: 20px;
  }

  .flow-list {
    gap: 14px;
  }

  .flow-list article,
  .principles-grid article {
    min-height: auto;
  }

  .card-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
  }

  .visual-card.featured {
    grid-column: auto;
    grid-row: auto;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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