:root {
  color-scheme: dark;
  --bg: #1e1e2e;
  --bg-deep: #171724;
  --surface: #2a2a3c;
  --surface-raised: #303046;
  --surface-hover: #35354d;
  --ink: #ffffff;
  --muted: #9494b8;
  --muted-strong: #b8b8d3;
  --accent: #f5a623;
  --accent-hover: #e0951f;
  --accent-light: #ffb347;
  --accent-soft: rgba(245, 166, 35, 0.1);
  --danger: #f43f5e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 28px 80px rgba(5, 5, 12, 0.42);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 620px at 90% -12%, rgba(75, 75, 112, 0.34), transparent 64%),
    radial-gradient(740px 520px at -8% 4%, rgba(245, 166, 35, 0.05), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.simple-page {
  background:
    radial-gradient(760px 520px at 96% -10%, rgba(75, 75, 112, 0.28), transparent 65%),
    var(--bg);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(245, 166, 35, 0.75);
  outline-offset: 4px;
  border-radius: 0.4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(30, 30, 46, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.72rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-mark {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  box-shadow: 0 8px 24px rgba(5, 5, 12, 0.3);
}

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

.nav-links a {
  border-radius: 0.7rem;
  padding: 0.58rem 0.78rem;
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px var(--border);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  width: min(1160px, calc(100% - 2rem));
  min-height: min(700px, calc(100svh - 4.2rem));
  margin: 0 auto;
  overflow: clip;
  padding: clamp(2.4rem, 5vw, 4.6rem) 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow,
.page-meta {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.1rem;
  border: 1px solid rgba(245, 166, 35, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow {
  padding: 0.52rem 0.78rem;
}

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

h1,
h2,
h3 {
  font-family: var(--font);
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.7rem, 8vw, 6.7rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.lead {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
  font-weight: 500;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 1px solid var(--accent);
  border-radius: 1rem;
  padding: 0.85rem 1.35rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(245, 166, 35, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(245, 166, 35, 0.22);
}

.button.secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--surface-hover);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.52rem 0.72rem 0.52rem 1.65rem;
  background: rgba(42, 42, 60, 0.72);
  color: var(--muted-strong);
  font-size: 0.87rem;
  font-weight: 650;
}

.trust-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.72rem;
  width: 0.38rem;
  height: 0.38rem;
  margin-top: -0.19rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 34rem;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(35rem, 135%);
  max-width: none;
  opacity: 0.9;
  transform: translate(-50%, -50%) rotate(-3deg);
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 19.5rem);
  border: 1px solid var(--border-strong);
  border-radius: 2.6rem;
  padding: 0.52rem;
  background: linear-gradient(150deg, #3a3a52, #20202f 58%, #171724);
  box-shadow: var(--shadow);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 2.1rem;
  background: var(--bg-deep);
}

.section {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.privacy-band {
  position: relative;
}

.privacy-band::before {
  content: "";
  position: absolute;
  inset: 0 calc((100vw - 100%) / -2);
  z-index: -1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(23, 23, 36, 0.42);
}

.section-header {
  max-width: 47rem;
  margin-bottom: 2rem;
}

.section h2,
.page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.section-header p,
.page-lead {
  margin: 1rem 0 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.68;
}

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

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

.feature-card,
.policy-card,
.support-panel,
.notice {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(48, 48, 70, 0.9), rgba(42, 42, 60, 0.72));
  padding: 1.45rem;
  box-shadow: 0 16px 42px rgba(5, 5, 12, 0.12);
}

.feature-card {
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(245, 166, 35, 0.28);
  background: linear-gradient(160deg, var(--surface-hover), var(--surface));
  transform: translateY(-2px);
}

.feature-card h3,
.policy-card h2,
.support-panel h2,
.notice h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.feature-card p,
.policy-card p,
.policy-card li,
.support-panel p,
.support-panel li,
.notice p {
  color: var(--muted);
  line-height: 1.64;
}

.feature-card p,
.notice p {
  margin: 0.75rem 0 0;
}

.section-cta {
  margin: 1.7rem 0 0;
  font-weight: 700;
}

.section-cta a,
.policy-card a,
.support-panel a,
.section-header a,
.page-lead a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.4rem;
}

.screenshot-card {
  margin: 0;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  object-fit: contain;
  border: 1px solid var(--border-strong);
  border-radius: 1.7rem;
  background: var(--bg-deep);
  box-shadow: 0 22px 54px rgba(5, 5, 12, 0.32);
}

.screenshot-card figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.notice {
  background: rgba(245, 166, 35, 0.055);
  border-color: rgba(245, 166, 35, 0.2);
}

.notice.caution {
  background: rgba(244, 63, 94, 0.055);
  border-color: rgba(244, 63, 94, 0.22);
}

.notice.caution h2 {
  color: #fb7185;
}

.page {
  width: min(900px, calc(100% - 2rem));
  min-height: calc(100vh - 12rem);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.8rem) 0;
}

.page-meta {
  padding: 0.52rem 0.72rem;
}

.policy-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}

.policy-card ul,
.support-panel ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.policy-card li::marker,
.support-panel li::marker {
  color: var(--accent);
}

.policy-card p:last-child,
.support-panel p:last-child {
  margin-bottom: 0;
}

.support-form-card {
  margin-top: 1.1rem;
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 1rem;
  background: var(--accent-soft);
  padding: 1rem 1.1rem;
}

.support-form-status {
  margin-top: 0;
  color: var(--ink) !important;
  font-weight: 750;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.support-panel .button {
  color: var(--bg);
  text-decoration: none;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.9rem 0 0;
  padding-left: 0;
  list-style: none;
}

.topic-list li {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.72rem 0.85rem;
  background: var(--surface-raised);
  color: var(--muted-strong);
  font-weight: 650;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted-strong);
  text-decoration: none;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-visual {
    animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-copy h1 {
    animation-delay: 0.05s;
  }

  .lead {
    animation-delay: 0.1s;
  }

  .hero-actions,
  .hero-visual {
    animation-delay: 0.15s;
  }

  .trust-list {
    animation-delay: 0.2s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0 0.55rem;
  }

  .brand {
    align-self: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-visual {
    min-height: auto;
    padding: 2rem 0 1rem;
  }

  .hero-watermark {
    width: min(30rem, 125%);
  }

  .feature-grid,
  .screenshot-strip,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-card img {
    max-width: 22rem;
    margin: 0 auto;
  }

  .screenshot-card figcaption {
    max-width: 22rem;
    margin-right: auto;
    margin-left: auto;
  }

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

@media (max-width: 520px) {
  .nav-links a {
    flex: 1;
    padding: 0.5rem 0.35rem;
    text-align: center;
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-list,
  .footer-links {
    flex-direction: column;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }
}
