@font-face {
  font-family: "OPPO Sans";
  src: url("../fonts/OPPO_Sans_Dreama_App.woff2") format("woff2");
  font-display: swap;
}

:root {
  --brand: #06c755;
  --brand-hover: #047733;
  --brand-light: #44e775;
  --brand-tint: #daf3e0;
  --accent-yellow: #ffe23c;
  --accent-orange: #ff830f;
  --accent-blue: #45c7ff;
  --page-bg: #ffffff;
  --surface: #f8f8f8;
  --surface-alt: #f0f0f0;
  --ink: #242424;
  --muted: rgba(36, 36, 36, 0.68);
  --subtle: rgba(36, 36, 36, 0.42);
  --border: rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 2px 12px rgb(0 0 0 / 0.08);
  --shadow-soft: 0 28px 70px rgb(0 0 0 / 0.08);
  --page-gutter: clamp(1.25rem, 5vw, 5rem);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "OPPO Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  transition: transform 0.2s ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1.5rem var(--page-gutter) 0;
  pointer-events: none;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--content));
  min-height: 56px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-nav);
  padding: 0.5rem;
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding-right: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a,
.nav-links button {
  border-radius: 999px;
  background: transparent;
  padding: 0.45rem 0.85rem;
  color: rgba(36, 36, 36, 0.86);
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links button:hover {
  background: rgba(6, 199, 85, 0.1);
  color: var(--brand-hover);
}

.nav-links .nav-cta {
  margin-left: 0.25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding-inline: 1rem;
}

.nav-links .nav-cta:hover {
  background: var(--brand-hover);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
  position: relative;
  display: flex;
  min-height: 86svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.25rem);
  overflow: hidden;
  padding: calc(7.2rem + env(safe-area-inset-top)) var(--page-gutter) 2rem;
  background: #f5f7f4;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 840px);
  flex-direction: column;
  align-items: center;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brand-hover);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section h1 {
  width: min(100%, 680px);
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-copy {
  width: min(100%, 720px);
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-hover);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: #000;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.hero-trust span {
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  padding: 0.35rem 0.7rem;
  color: rgba(36, 36, 36, 0.62);
  font-size: 0.85rem;
}

.hero-media {
  position: relative;
  z-index: 1;
  order: -1;
  width: min(180px, 42vw);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 24px 50px rgba(6, 199, 85, 0.18);
}

.hero-media video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.section {
  width: 100%;
  max-width: calc(var(--content) + var(--page-gutter) * 2);
  margin-inline: auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--page-gutter);
}

@supports (content-visibility: auto) {
  .section,
  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 720px;
  }

  .download-section {
    contain-intrinsic-size: 820px;
  }

  .site-footer {
    contain-intrinsic-size: 280px;
  }
}

.section-story {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.section-heading {
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-heading h2,
.download-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.story-copy {
  color: rgba(36, 36, 36, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.95;
}

.story-copy p {
  margin: 0;
}

.story-copy p + p {
  margin-top: 1.35rem;
}

.flow-steps {
  display: grid;
  gap: 0.9rem;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  padding: clamp(1rem, 3vw, 1.45rem);
}

.flow-step span {
  grid-row: span 2;
  display: inline-flex;
  width: 2.55rem;
  height: 2.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-hover);
  font-size: 0.85rem;
  font-weight: 900;
}

.flow-step strong {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.25;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
}

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

.feature-card {
  min-height: 290px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

.feature-icon .ui-icon {
  width: 1.45rem;
  height: 1.45rem;
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--accent-orange);
}

.feature-card:nth-child(3) .feature-icon {
  background: #111;
}

.feature-card h3 {
  margin: 2.3rem 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.download-section {
  max-width: none;
  background: #101312;
  color: #fff;
}

.download-copy,
.download-grid,
.download-note {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.download-copy p:last-child {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.85;
}

.download-section .eyebrow {
  color: var(--brand-light);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.download-panel {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.download-panel .ui-icon {
  margin-bottom: 1.5rem;
  color: var(--brand-light);
  width: 2rem;
  height: 2rem;
}

.download-panel h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.download-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.download-panel .button-primary {
  min-height: 52px;
  box-shadow: 0 16px 38px rgba(6, 199, 85, 0.28);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  padding: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.download-note img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 16px;
}

.download-note p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: rgba(36, 36, 36, 0.62);
}

.footer-inner {
  display: grid;
  width: min(100%, calc(var(--content) + var(--page-gutter) * 2));
  margin-inline: auto;
  gap: 1rem;
  padding: 2.4rem var(--page-gutter);
  justify-items: center;
  text-align: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--ink);
}

.footer-info img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.footer-copyright {
  margin: 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

.footer-social,
.footer-actions,
.filings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.footer-social a,
.footer-social button {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(36, 36, 36, 0.88);
  color: #fff;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-actions a,
.footer-actions button {
  background: transparent;
  padding: 0;
}

.footer-actions button {
  color: inherit;
}

.footer-actions a:hover,
.footer-actions button:hover,
.footer-social a:hover,
.footer-social button:hover,
.filings a:hover {
  color: var(--brand-hover);
}

.footer-social a:hover,
.footer-social button:hover {
  background: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
}

.social-icon {
  display: block;
  width: 1.18rem;
  height: 1.18rem;
  filter: brightness(0) invert(1);
}

.filings a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.filings img {
  width: 15px;
  height: 16px;
}

.modal[hidden],
.toast[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  border-radius: 30px;
  background: #fff;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.22);
}

.modal-dialog h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.modal-dialog img {
  width: min(100%, 250px);
  height: auto;
  margin-inline: auto;
}

.modal-close {
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
}

.modal-close:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 90;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset: calc(100% + 0.6rem) 0 auto;
    display: grid;
    max-height: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0 0.8rem;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease, border-color 0.25s ease;
  }

  .nav-links.is-open {
    max-height: 360px;
    border-color: var(--border);
    padding-block: 0.8rem;
    opacity: 1;
  }

  .nav-links a,
  .nav-links button {
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
    padding: 0.8rem 1rem;
  }

  .nav-links .nav-cta {
    justify-content: center;
    margin: 0.35rem 0 0;
  }

  .story-layout,
  .download-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-card {
    min-height: auto;
  }

}

@media (min-width: 1440px) {
  .hero-section h1 {
    font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  }

  .hero-media {
    width: min(240px, 42vw);
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 1.1rem;
  }

  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    padding-top: calc(0.85rem + env(safe-area-inset-top));
  }

  .brand span {
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(8rem + env(safe-area-inset-top));
    padding-bottom: 3rem;
  }

  .hero-media {
    width: min(220px, 58vw);
  }

  .hero-section h1 {
    width: min(100%, 330px);
    max-width: none;
    font-size: clamp(2.15rem, 8.8vw, 2.75rem);
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.8;
  }

  .hero-actions {
    width: min(100%, 360px);
  }

  .hero-actions .button {
    width: 100%;
    flex: none;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

  .flow-step span {
    grid-row: auto;
  }

  .download-panel,
  .download-note {
    border-radius: 24px;
  }

  .download-actions .button {
    width: 100%;
  }

  .footer-social,
  .footer-actions,
  .filings {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .button:hover,
  .feature-card:hover {
    transform: none;
  }
}
