:root {
  --bg: #edf2f7;
  --bg-strong: #e3e9f1;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --ink: #223047;
  --muted: #5f6d80;
  --line: rgba(89, 110, 138, 0.2);
  --line-strong: #8ea2bc;
  --brand: #1f2c44;
  --brand-strong: #172033;
  --accent: #6f86a3;
  --shadow: 0 24px 55px rgba(17, 28, 46, 0.12);
  --radius: 24px;
  --max-width: 1140px;
  --panel-padding: 1.55rem;
  --hero-padding: 3rem;
  --app-feature-padding: 1.8rem;
  --app-card-padding: 1.55rem;
  --app-meta-padding: 1.1rem;
  --app-icon-size: 1.8rem;
  --app-chip-icon-size: 0.95rem;
  --app-logo-size: 4.5rem;
  --app-feature-logo-size: 5.3rem;
  --font-display: "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(135deg, rgba(31, 44, 68, 0.1), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-strong));
}

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

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.site-main,
.hero,
.card-grid,
.app-showcase,
.app-grid {
  min-width: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel--dark {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: #f4f7fb;
}

.section {
  padding: 2rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.body-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.card-title,
.timeline-company,
.timeline-date {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #304465);
}

.brand-text {
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.28rem 0;
  border-radius: 999px;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.25fr;
  gap: 2rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 2.4rem;
}

.hero-sidebar {
  overflow: hidden;
}

.hero-image {
  padding: 1.1rem 1.1rem 0;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.5rem);
}

.panel-content,
.card,
.timeline {
  padding: var(--panel-padding);
}

.panel-label {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stack-list {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.stack-list strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: rgba(244, 247, 251, 0.66);
  text-transform: uppercase;
}

.panel--dark .stack-list :is(span, a) {
  color: rgba(244, 247, 251, 0.9);
}

.hero-content {
  padding: var(--hero-padding);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.96));
}

.hero-title,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.hero-text {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 1.55rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 0.96rem;
  border: 1px solid rgba(89, 110, 138, 0.16);
  border-radius: 999px;
  background: #f3f7fb;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.tag-list {
  gap: 0.75rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.92rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #304465);
}

.button--secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.section-heading {
  margin-bottom: 1.4rem;
  padding-bottom: 0.95rem;
  border-bottom: 2px solid var(--line-strong);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-copy {
  max-width: 42rem;
  margin: 0.95rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.card-grid {
  display: grid;
  gap: 1.15rem;
}

.card-grid--profile,
.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card--highlight {
  color: #f4f7fb;
  background: linear-gradient(135deg, var(--brand), #304465);
}

.card--highlight .body-copy {
  color: rgba(244, 247, 251, 0.78);
}

.card--highlight .link-stack a {
  color: #f4f7fb;
}

.app-showcase {
  display: grid;
  gap: 1.15rem;
}

.app-feature,
.app-card--store {
  position: relative;
  overflow: hidden;
}

.app-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
  padding: var(--app-feature-padding);
  color: #f4f7fb;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, var(--brand), #22324d 55%, #364c72);
}

.app-feature__copy,
.app-feature__meta {
  position: relative;
  z-index: 1;
}

.app-feature__meta {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  padding: var(--app-meta-padding);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius) - 0.35rem);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.app-kicker {
  margin: 0 0 0.8rem;
  color: rgba(244, 247, 251, 0.72);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-card--store .app-kicker {
  color: var(--accent);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.app-brand--feature {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.app-brand__text {
  min-width: 0;
}

.app-meta-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.app-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: var(--app-icon-size);
  height: var(--app-icon-size);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-chip .app-icon {
  width: var(--app-chip-icon-size);
  height: var(--app-chip-icon-size);
  border-radius: 0;
  background: transparent;
  color: currentColor;
}

.app-icon::before,
.app-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.app-icon--phone::before {
  inset: 18% 28% 12%;
  border: 2px solid currentColor;
  border-radius: 0.32rem;
}

.app-icon--phone::after {
  left: 50%;
  bottom: 18%;
  width: 0.16rem;
  height: 0.16rem;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.app-icon--timeline::before {
  left: 20%;
  right: 20%;
  top: 50%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.app-icon--timeline::after {
  left: 50%;
  top: 50%;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  box-shadow:
    -0.45rem 0 0 currentColor,
    0.45rem 0 0 currentColor;
}

.app-icon--spark::before,
.app-icon--spark::after {
  left: 50%;
  top: 50%;
  width: 0.95rem;
  height: 2px;
  background: currentColor;
  transform-origin: center;
}

.app-icon--spark::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.app-icon--spark::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.app-icon--shield::before {
  inset: 18% 22% 15%;
  background: currentColor;
  clip-path: polygon(50% 0, 92% 18%, 85% 70%, 50% 100%, 15% 70%, 8% 18%);
}

.app-icon--compass::before {
  inset: 16%;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.app-icon--compass::after {
  left: 50%;
  top: 50%;
  width: 0.18rem;
  height: 0.58rem;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 55%, 50% 100%, 0 55%);
  transform: translate(-50%, -50%) rotate(38deg);
}

.app-icon--scan::before {
  inset: 20% 14%;
  background:
    linear-gradient(
      90deg,
      currentColor 0 10%,
      transparent 10% 24%,
      currentColor 24% 34%,
      transparent 34% 50%,
      currentColor 50% 60%,
      transparent 60% 76%,
      currentColor 76% 86%,
      transparent 86% 100%
    );
  border-radius: 0.08rem;
}

.app-icon--nutrition::before {
  left: 24%;
  right: 24%;
  bottom: 20%;
  height: 2px;
  background: currentColor;
}

.app-icon--nutrition::after {
  left: 27%;
  bottom: 20%;
  width: 0.13rem;
  height: 0.58rem;
  background: currentColor;
  box-shadow:
    0.22rem -0.12rem 0 currentColor,
    0.44rem 0.08rem 0 currentColor;
}

.app-logo {
  flex: 0 0 auto;
  width: var(--app-logo-size);
  height: var(--app-logo-size);
  padding: 0.28rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 241, 247, 0.95));
  box-shadow:
    0 12px 26px rgba(17, 28, 46, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-logo--feature {
  width: var(--app-feature-logo-size);
  height: var(--app-feature-logo-size);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 34px rgba(11, 20, 37, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.app-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1rem;
}

.app-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.app-title--small {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.app-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.app-feature .app-description {
  max-width: 36rem;
  margin-top: 1rem;
  color: rgba(244, 247, 251, 0.84);
}

.app-description--card {
  margin-top: 0.25rem;
}

.app-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.app-meta-item {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(9, 18, 34, 0.16);
}

.app-meta-label {
  display: block;
  margin-bottom: 0.3rem;
  color: rgba(244, 247, 251, 0.64);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-meta-value {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.app-card--store {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: var(--app-card-padding);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 253, 0.98));
}

.app-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(89, 110, 138, 0.18);
  border-radius: 999px;
  background: #eef3f8;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: center;
}

.app-chip--store::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #4f6a91);
  box-shadow: 0 0 0 4px rgba(31, 44, 68, 0.08);
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 28, 46, 0.08);
  font-family: var(--font-display);
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.app-link::after {
  content: "\2197";
  margin-left: 0.55rem;
  font-size: 0.95rem;
  line-height: 1;
}

.app-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 28, 46, 0.12);
}

.app-link--light {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.app-link--light:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.metric {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.timeline-company span {
  color: var(--muted);
  font-weight: 500;
}

.timeline-place {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.timeline-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

.link-stack,
.copy-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.link-stack a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
  text-align: center;
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .app-feature {
    grid-template-columns: 1fr;
  }

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

  .card--highlight {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .hero,
  .card-grid--profile,
  .card-grid--three {
    grid-template-columns: 1fr;
  }

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

  .card--highlight {
    grid-column: auto;
  }

  .hero {
    gap: 1.25rem;
    padding-top: 2.6rem;
    padding-bottom: 2rem;
  }

  .hero-sidebar {
    max-width: 420px;
  }

  .hero-content {
    padding: 2rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 9vw, 4.5rem);
  }

  .hero-text {
    max-width: none;
  }

  .section {
    padding: 1.75rem 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    top: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 1.4rem;
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 180ms ease;
  }

  .site-nav a {
    padding: 0.2rem 0;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-meta,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .timeline-head {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  :root {
    --panel-padding: 1.25rem;
    --hero-padding: 1.25rem;
    --app-feature-padding: 1.25rem;
    --app-card-padding: 1.25rem;
    --app-meta-padding: 1rem;
    --app-logo-size: 4rem;
    --app-feature-logo-size: 4.6rem;
  }

  .hero {
    gap: 1rem;
    padding-top: 1.8rem;
    padding-bottom: 1.6rem;
  }

  .app-card__header {
    flex-direction: column;
  }

  .app-brand--feature {
    align-items: center;
  }

  .app-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    padding: 0.85rem 0.85rem 0;
  }

  .hero-image img {
    aspect-ratio: 1 / 1.05;
  }

  .badge-list {
    gap: 0.7rem;
  }

  .hero-meta .badge,
  .tag-list .badge {
    width: 100%;
    text-align: center;
  }

  .app-link {
    width: 100%;
  }

  .app-brand,
  .app-brand--feature {
    align-items: flex-start;
  }

  .section-heading {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    }

  .section-heading h2 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }
}

@media (max-width: 480px) {
  :root {
    --panel-padding: 1.05rem;
    --hero-padding: 1.05rem;
  }

  .page-shell {
    width: min(calc(100% - 0.5rem), var(--max-width));
  }

  .site-header {
    top: 0.25rem;
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }

  .brand-mark {
    width: 2.3rem;
    height: 2.3rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .hero-text {
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .button {
    min-height: 2.8rem;
    padding: 0.82rem 1rem;
  }

  .site-footer {
    padding-bottom: 1.5rem;
    font-size: 0.92rem;
  }
}
