:root {
  --os-ink: #1d2d3d;
  --os-green: #00d26a;
  --os-green-hover: #00b85c;
  --os-teal: #00a854;
  --os-mint: #e8f9ef;
  --os-sky: #e8f3ff;
  --os-cream: #f7f9fb;
  --os-muted: #5f6f7d;
  --os-line: rgba(29, 45, 61, 0.12);
  --os-white: #ffffff;
  --os-shadow: 0 16px 40px rgba(29, 45, 61, 0.1);
  --os-rail-mint: #d9f5e8;
  --os-rail-peach: #ffe5d6;
  --os-rail-lilac: #ebe4ff;
  --os-rail-sky: #dcecff;
  --os-rail-butter: #fff2c9;
  --os-rail-rose: #ffe0eb;
}

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--os-ink);
  background: var(--os-white);
}

a {
  color: var(--os-teal);
  text-decoration: none;
}

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

.os-home {
  background: #fff;
}

.os-home main {
  overflow-x: hidden;
}

.os-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--os-ink) !important;
}

.os-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.os-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--os-line);
}

.os-header .navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.os-nav-toggler {
  border-color: var(--os-line);
}

.os-nav-links .nav-link {
  color: var(--os-ink);
  font-weight: 600;
  padding: 0.5rem 0.85rem;
}

.os-nav-cta {
  margin-left: 0.35rem;
  padding: 0.55rem 1.15rem !important;
}

.btn-os-primary,
.btn-os-outline,
.btn-os-light {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
}

.btn-os-primary {
  background: var(--os-green);
  border: 1px solid var(--os-green);
  color: #fff;
}

.btn-os-primary:hover,
.btn-os-primary:focus {
  background: var(--os-green-hover);
  border-color: var(--os-green-hover);
  color: #fff;
}

.btn-os-outline {
  background: transparent;
  border: 1px solid var(--os-ink);
  color: var(--os-ink);
}

.btn-os-outline:hover {
  background: rgba(29, 45, 61, 0.05);
  color: var(--os-ink);
}

.btn-os-light {
  background: var(--os-mint);
  border: 1px solid var(--os-mint);
  color: var(--os-ink);
}

.os-blink-h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--os-ink);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  margin-bottom: 0.85rem;
}

.os-blink-sub {
  color: var(--os-muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.os-blink-sub.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.os-hero-blink {
  padding: 4rem 0 2rem;
}

.os-hero-blink-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--os-ink);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
}

.os-hero-blink-lead {
  color: var(--os-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 34rem;
  margin-bottom: 1.35rem;
  line-height: 1.5;
}

.os-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.os-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--os-line);
  background: #fff;
  color: var(--os-ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.95rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.os-pill:hover {
  background: var(--os-ink);
  border-color: var(--os-ink);
  color: #fff;
}

.os-hero-cta {
  padding: 0.9rem 2rem !important;
  font-size: 1.05rem !important;
}

.os-hero-devices {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.os-hero-device-bg {
  position: absolute;
  inset: 12% 8% 0;
  background: linear-gradient(180deg, #d7efff 0%, #eef7ff 55%, #fff 100%);
  border-radius: 40% 40% 0 0 / 55% 55% 0 0;
  z-index: 0;
}

.os-hero-device-stack {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  height: 420px;
}

.os-hero-phone {
  position: absolute;
  width: 52%;
  aspect-ratio: 9 / 16;
  border-radius: 1.4rem;
  box-shadow: var(--os-shadow);
  object-fit: cover;
  object-position: center top;
  background: #fff;
  border: 6px solid #fff;
  animation: os-rise-tilt 700ms ease both;
}

.os-hero-phone-back {
  left: 0;
  top: 48px;
  --os-tilt: rotate(-6deg);
  animation-delay: 60ms;
}

.os-hero-phone-front {
  right: 0;
  top: 0;
  width: 64%;
  z-index: 2;
  --os-tilt: none;
  animation-delay: 140ms;
}

.os-benefit-section,
.os-explore-section,
.os-deep-section,
.os-social-section,
.os-lifestyle-section,
.os-faq-blink,
.os-bottom-cta,
.os-impact-section,
.os-stats-section {
  padding: 4.5rem 0;
}

.os-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.os-benefit-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: start;
}

.os-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.os-benefit-icon-mint { background: var(--os-mint); }
.os-benefit-icon-sky { background: var(--os-sky); }
.os-benefit-icon-peach { background: #ffe8d8; }

.os-benefit-item h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.os-benefit-item p {
  margin: 0;
  color: var(--os-muted);
  line-height: 1.55;
}

.os-benefit-visual {
  background: var(--os-sky);
  border-radius: 1.5rem;
  padding: 1.5rem;
  overflow: hidden;
}

.os-benefit-visual img {
  width: 100%;
  border-radius: 1rem;
  display: block;
  box-shadow: var(--os-shadow);
}

.os-stats-section {
  background: #f7f9fb;
  border-top: 1px solid var(--os-line);
  border-bottom: 1px solid var(--os-line);
  padding: 3rem 0;
}

.os-stats-row,
.os-impact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.os-stat strong,
.os-impact strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.os-stat span,
.os-impact span {
  color: var(--os-muted);
  font-size: 0.95rem;
}

.os-explore-section {
  background: #fff;
}

.os-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 1.75rem;
  max-width: 820px;
}

.os-tool-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 250px);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.os-tool-rail::-webkit-scrollbar {
  height: 8px;
}

.os-tool-rail::-webkit-scrollbar-thumb {
  background: rgba(29, 45, 61, 0.2);
  border-radius: 999px;
}

.os-rail-card {
  scroll-snap-align: start;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 180px;
  box-shadow: 0 8px 24px rgba(29, 45, 61, 0.08);
}

.os-rail-mint { background: var(--os-rail-mint); }
.os-rail-peach { background: var(--os-rail-peach); }
.os-rail-lilac { background: var(--os-rail-lilac); }
.os-rail-sky { background: var(--os-rail-sky); }
.os-rail-butter { background: var(--os-rail-butter); }
.os-rail-rose { background: var(--os-rail-rose); }

.os-rail-card-link {
  display: flex;
  height: 100%;
  color: inherit;
}

.os-rail-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: flex-end;
  width: 100%;
}

.os-rail-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--os-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  padding-left: 2px;
  margin-bottom: 0.35rem;
}

.os-rail-body strong {
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.os-rail-body span:last-child {
  color: var(--os-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.os-deep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.os-deep-card {
  border-radius: 1.35rem;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.os-deep-mint { background: #e7f8ef; }
.os-deep-sky { background: #e7f1ff; }

.os-deep-copy h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.os-deep-copy p {
  margin: 0;
  color: var(--os-muted);
  line-height: 1.5;
}

.os-deep-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 280px;
  max-height: 420px;
  overflow: hidden;
  border-radius: 1rem;
}

.os-deep-card img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  display: block;
}

.os-social-section .os-blink-sub {
  margin-left: auto;
  margin-right: auto;
}

.os-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.os-quote-card {
  background: #fff;
  border: 1px solid var(--os-line);
  border-radius: 1rem;
  padding: 1.35rem 1.4rem;
  margin: 0;
  box-shadow: 0 8px 24px rgba(29, 45, 61, 0.05);
}

.os-quote-card p {
  margin: 0 0 1rem;
  color: var(--os-ink);
  line-height: 1.5;
}

.os-quote-card footer {
  color: var(--os-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.os-impact-section {
  background: #f7f9fb;
  border-top: 1px solid var(--os-line);
  border-bottom: 1px solid var(--os-line);
}

.os-lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.os-lifestyle-card {
  margin: 0;
}

.os-lifestyle-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  background: #eef3f7;
}

.os-lifestyle-card figcaption {
  margin-top: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.os-faq-blink {
  background: #fff;
}

.os-faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.os-faq-item {
  border-bottom: 1px solid var(--os-line);
}

.os-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  padding: 1.15rem 0;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--os-ink);
}

.os-faq-chevron {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--os-ink);
  border-bottom: 2px solid var(--os-ink);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  flex: 0 0 auto;
  margin-top: -0.2rem;
}

.os-faq-q:not(.collapsed) .os-faq-chevron {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.os-faq-a {
  padding: 0 0 1.15rem;
  color: var(--os-muted);
  line-height: 1.55;
}

.os-bottom-cta {
  padding-bottom: 5.5rem;
}

.os-bottom-cta .os-blink-sub {
  margin-left: auto;
  margin-right: auto;
}

.os-store-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--os-line);
  background: #f7f9fb;
  color: var(--os-muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
}

.os-dev-note {
  margin-top: 1.5rem;
  color: var(--os-muted);
  font-size: 0.88rem;
}

.os-dev-note code {
  background: #f3f5f7;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
}

.os-footer {
  border-top: 1px solid var(--os-line);
  background: #f3f5f7;
}

.os-footer-heading {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--os-ink);
}

.os-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.os-footer-list li {
  margin-bottom: 0.45rem;
}

.os-footer-list a {
  color: var(--os-muted);
  font-weight: 500;
}

.os-footer-list a:hover {
  color: var(--os-ink);
}

.os-footer-bottom {
  border-top: 1px solid var(--os-line);
  padding: 1.25rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.os-footer-mute {
  color: var(--os-muted);
  font-size: 0.9rem;
}

/* Privacy / legal page */
.os-legal-content {
  padding: 3rem 0 4rem;
  max-width: 760px;
}

.os-legal-content h1,
.os-legal-content h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.os-legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.os-legal-content p,
.os-legal-content li {
  color: var(--os-muted);
  line-height: 1.6;
}

@keyframes os-rise-tilt {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: var(--os-tilt, none);
  }
}

@media (max-width: 991px) {
  .os-deep-grid,
  .os-quote-grid,
  .os-lifestyle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .os-hero-devices {
    min-height: 340px;
  }

  .os-hero-device-stack {
    height: 340px;
  }
}

@media (max-width: 768px) {
  .os-hero-blink {
    padding-top: 2.5rem;
  }

  .os-stats-row,
  .os-impact-row,
  .os-deep-grid,
  .os-quote-grid,
  .os-lifestyle-grid {
    grid-template-columns: 1fr;
  }

  .os-hero-phone-back {
    display: none;
  }

  .os-hero-phone-front {
    left: 50%;
    right: auto;
    --os-tilt: translateX(-50%);
    width: min(260px, 70vw);
  }

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