:root {
  color-scheme: dark;

  --bg: #07090f;
  --bg-soft: #111520;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #edf0f8;
  --text-dim: #a9b0c3;
  --primary: #ff9748;
  --primary-strong: #ff7e27;
  --line: rgba(255, 255, 255, 0.12);
  --success: #22c58b;

  --bg-gradient: radial-gradient(circle at 20% 20%, #101426 0%, #07090f 40%);
  --orb-1: #3a5af7;
  --orb-2: #ff7e27;
  --orb-3: #1bd2a4;

  --eyebrow-bg: rgba(255, 255, 255, 0.06);
  --pill-bg: rgba(255, 255, 255, 0.03);
  --pill-text: #d0d5e5;

  --phone-bg: #0d1119;
  --phone-bezel-gradient: linear-gradient(165deg, #2a3040 0%, #151a24 50%, #0f131d 100%);
  --phone-notch: #07090f;
  --phone-notch-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --phone-home-indicator: rgba(255, 255, 255, 0.3);

  --panel-gradient: linear-gradient(135deg, #171d2f, #101421);

  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);

  --store-link-bg: linear-gradient(150deg, #0b101a, #131d2d);
  --store-link-border: rgba(255, 255, 255, 0.3);
  --store-kicker: #d5dbea;

  --scrollbar-thumb: rgba(255, 255, 255, 0.18);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f8fc;
  --bg-soft: #ffffff;
  --surface: rgba(16, 20, 39, 0.05);
  --surface-strong: rgba(16, 20, 39, 0.1);
  --text: #101427;
  --text-dim: rgba(16, 20, 39, 0.72);
  --line: rgba(16, 20, 39, 0.14);
  --success: #0f9f6e;

  --bg-gradient: radial-gradient(circle at 20% 20%, #fff2e6 0%, #f7f8fc 45%, #ffffff 100%);
  --orb-1: rgba(58, 90, 247, 0.3);
  --orb-2: rgba(255, 126, 39, 0.3);
  --orb-3: rgba(27, 210, 164, 0.28);

  --eyebrow-bg: rgba(16, 20, 39, 0.06);
  --pill-bg: rgba(16, 20, 39, 0.05);
  --pill-text: rgba(16, 20, 39, 0.82);

  --phone-bg: #ffffff;
  --phone-bezel-gradient: linear-gradient(165deg, #f0f3f9 0%, #e3e9f4 50%, #f8f9fc 100%);
  --phone-notch: rgba(16, 20, 39, 0.12);
  --phone-notch-shadow: inset 0 0 0 1px rgba(16, 20, 39, 0.16);
  --phone-home-indicator: rgba(16, 20, 39, 0.22);

  --panel-gradient: linear-gradient(135deg, #ffffff, #f2f4fb);

  --shadow-lg: 0 18px 45px rgba(16, 20, 39, 0.14);

  --store-link-bg: linear-gradient(150deg, #ffffff, #f3f5fb);
  --store-link-border: rgba(16, 20, 39, 0.16);
  --store-kicker: rgba(16, 20, 39, 0.62);

  --scrollbar-thumb: rgba(16, 20, 39, 0.22);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.orb-1 {
  width: 280px;
  height: 280px;
  top: -40px;
  left: -80px;
  background: var(--orb-1);
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -100px;
  top: 30%;
  background: var(--orb-2);
}

.orb-3 {
  width: 260px;
  height: 260px;
  left: 40%;
  bottom: -120px;
  background: var(--orb-3);
}

.container {
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--primary);
}

.theme-toggle,
.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.64rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.24s ease;
  text-decoration: none;
}

.theme-toggle:hover,
.lang-toggle:hover {
  transform: translateY(-1px);
  background: var(--surface-strong);
}

.theme-toggle:focus-visible,
.lang-toggle:focus-visible {
  outline: 3px solid rgba(255, 151, 72, 0.45);
  outline-offset: 3px;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

:root[data-theme="light"] .theme-toggle:focus-visible,
:root[data-theme="light"] .lang-toggle:focus-visible {
  outline-color: rgba(255, 151, 72, 0.65);
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root:not([data-theme="light"]) .theme-toggle .icon-moon {
  display: none;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.24s ease;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 126, 39, 0.35);
}

.btn-outline {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}

.hero {
  padding: 2rem 0 4.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--eyebrow-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 1.25rem 0 1.7rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.quick-pills {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.quick-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--pill-text);
  padding: 0.42rem 0.78rem;
  background: var(--pill-bg);
}

.hero-media {
  position: relative;
  min-height: 670px;
}

.phone-frame {
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--phone-bg);
}

.phone-bezel {
  position: relative;
  border-radius: 38px;
  padding: 12px 9px 16px;
  border: 1px solid var(--line);
  background: var(--phone-bezel-gradient);
}

.phone-bezel::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: min(96px, 34%);
  height: 7px;
  border-radius: 999px;
  background: var(--phone-notch);
  box-shadow: var(--phone-notch-shadow);
  z-index: 2;
}

.phone-bezel::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: min(80px, 30%);
  height: 4px;
  border-radius: 999px;
  background: var(--phone-home-indicator);
  z-index: 2;
}

/* Keep hero phone bezel dark even in light theme. */
.hero .phone-frame {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background: #0d1119;
}

.hero .phone-bezel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(165deg, #2a3040 0%, #151a24 50%, #0f131d 100%);
}

.hero .phone-bezel::before {
  background: #07090f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero .phone-bezel::after {
  background: rgba(255, 255, 255, 0.3);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.phone-main {
  width: min(360px, 80vw);
  height: 680px;
  margin-left: auto;
}

.phone-floating {
  width: 230px;
  height: 450px;
  position: absolute;
  left: 0;
  bottom: -22px;
  transform: rotate(-6deg);
}

.section {
  padding: 2.2rem 0 1.2rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.8vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0.8rem 0 0;
  color: var(--text-dim);
}

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

.feature-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(4px);
}

.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 139, 0.16);
  margin-bottom: 0.8rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0.55rem 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.screen-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.screen-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.screen-card figcaption {
  padding: 0.72rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.release-note {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 16.6rem 1.3rem 1.3rem;
  background: var(--panel-gradient);
}

.policy {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  background: var(--panel-gradient);
}

.policy-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1rem;
  position: sticky;
  top: 1.25rem;
}

.toc-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.toc ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.toc a {
  color: var(--text-dim);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.policy-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.policy-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1.05rem;
}

.policy-block h2 {
  margin: 0;
  font-size: 1.18rem;
}

.policy-block p {
  margin: 0.65rem 0 0;
  color: var(--text-dim);
}

.policy-block ul {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-dim);
}

.policy-block li {
  margin: 0.4rem 0;
}

.policy-note {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.release-note h2 {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}

.release-note p {
  color: var(--text-dim);
  margin: 0.4rem 0 0.85rem;
}

.release-note ul {
  margin: 0;
  padding-left: 1.15rem;
}

.release-note li {
  margin: 0.55rem 0;
  color: var(--text-dim);
}

.release-note .closing {
  margin-top: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.release-note-store-link {
  position: absolute;
  right: 1.8rem;
  top: 4.7rem;
  transform: none;
  width: 252px;
  min-height: 84px;
  border-radius: 18px;
  padding: 0.76rem 1rem;
  border: 1px solid var(--store-link-border);
  display: flex;
  align-items: center;
  gap: 0.72rem;
  background: var(--store-link-bg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text);
}

.release-note-store-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}

.store-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.06rem;
}

.store-play-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
}

.store-play-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.store-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--store-kicker);
}

.store-name {
  font-size: 1.46rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding-top: 1rem;
  }

  .hero-media {
    min-height: 560px;
  }

  .phone-main {
    margin-inline: auto;
  }

  .phone-floating {
    left: 10%;
  }

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

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

@media (max-width: 780px) {
  .container {
    width: min(1160px, calc(100% - 1.5rem));
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .btn {
    padding: 0.72rem 1.05rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .hero-media {
    min-height: 500px;
  }

  .phone-main {
    width: min(300px, 74vw);
    height: 600px;
  }

  .phone-floating {
    width: 180px;
    height: 360px;
    left: 0;
  }

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

  .screens-grid {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.3rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
  }

  .screen-card {
    flex: 0 0 clamp(170px, 56vw, 230px);
    scroll-snap-align: start;
  }

  .screens-grid::-webkit-scrollbar {
    height: 7px;
  }

.screens-grid::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
  }

  .release-note {
    padding-right: 13.5rem;
  }

  .release-note-store-link {
    right: 1.2rem;
    top: 3.9rem;
    width: 210px;
    min-height: 76px;
    border-radius: 16px;
    padding: 0.7rem 0.85rem;
  }

  .store-play-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .store-name {
    font-size: 1.28rem;
  }
}

@media (max-width: 520px) {
  .header {
    padding-top: 1rem;
    padding-bottom: 0.6rem;
  }

  .btn-outline {
    display: none;
  }

  .quick-pills span {
    width: 100%;
    text-align: center;
  }

  .hero-media {
    min-height: 450px;
  }

  .phone-main {
    width: min(270px, 78vw);
    height: 530px;
  }

  .phone-floating {
    width: 150px;
    height: 300px;
    left: -6px;
    bottom: -10px;
  }

  .card-grid {
    gap: 0.8rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-card h3 {
    font-size: 1.03rem;
    line-height: 1.35;
  }

  .feature-card p {
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .screens-grid {
    gap: 0.75rem;
    padding-bottom: 0.15rem;
  }

  .screen-card {
    flex-basis: 72vw;
  }

  .release-note {
    padding-right: 1.3rem;
    padding-bottom: 5.4rem;
  }

  .release-note-store-link {
    left: 1.3rem;
    right: 1.3rem;
    top: auto;
    bottom: 1.1rem;
    width: auto;
    min-height: 68px;
    border-radius: 14px;
    padding: 0.66rem 0.8rem;
  }

  .store-play-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .store-kicker {
    font-size: 0.62rem;
  }

  .store-name {
    font-size: 1.12rem;
  }
}
