:root {
  color-scheme: dark;
  --brand-primary: #3377d7;
  --brand-secondary: #3adbe5;
  --accent: #62efff;
  --bg: #000719;
  --surface: #050d1b;
  --surface-raised: #0d1a2c;
  --card-bg: #091426;
  --text: #f1f8fc;
  --muted: #a9bdd0;
  --line: #233b55;
  --button-bg: var(--brand-primary);
  --button-text: #ffffff;
  --button-hover: var(--accent);
  --button-hover-text: var(--bg);
  --link: var(--brand-secondary);
  --link-hover: var(--accent);
  --accent-ink: var(--bg);
  --max-width: 1160px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--link-hover); }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 1rem; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; line-height: 1.13; letter-spacing: -.035em; }
h1 { max-width: 760px; font-size: clamp(2.7rem, 7vw, 5.3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .45rem; }
::selection { color: var(--accent-ink); background: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(var(--max-width), calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: .75rem; left: .75rem; padding: .7rem 1rem; transform: translateY(-160%); background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgb(169 189 208 / 10%); background: rgb(0 7 25 / 94%); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .7rem; color: var(--text); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 1.12rem; font-weight: 700; text-decoration: none; }
.brand img { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.8rem, 2vw, 1.7rem); }
.nav a, .language-switch a { color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.nav a:hover, .language-switch a:hover, .language-switch .current { color: var(--accent); }
.language-switch { display: inline-flex; align-items: center; gap: .55rem; margin-left: .4rem; }
.language-switch span { color: var(--line); }
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.hero::before { position: absolute; top: -18rem; right: -12rem; width: 48rem; height: 48rem; border-radius: 50%; background: radial-gradient(circle, rgb(51 119 215 / 12%), transparent 68%); content: ""; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.hero-copy { max-width: 620px; }
.hero-copy h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.eyebrow { margin-bottom: 1.25rem; color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy > p:not(.eyebrow):not(.store-note) { max-width: 570px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.22rem); }
.store-badges { display: flex; max-width: 430px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 1.5rem; }
.store-badge { display: flex; width: 180px; height: 60px; flex: 0 0 180px; align-items: center; justify-content: center; text-decoration: none; }
.store-badge img { display: block; width: 100%; height: 90%; object-fit: contain; }
.store-badge[aria-disabled="true"] { cursor: not-allowed; }
.store-badge[href]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.store-note { max-width: 440px; margin-top: .65rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.25rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--button-bg); background: var(--button-bg); color: var(--button-text); }
.button-primary:hover { border-color: var(--button-hover); background: var(--button-hover); color: var(--button-hover-text); }
.button-secondary:hover { border-color: var(--brand-secondary); background: rgb(58 219 229 / 8%); color: var(--accent); }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-alt { border-block: 1px solid rgb(169 189 208 / 8%); background: var(--surface); }
.section-heading { max-width: 740px; margin-bottom: 2.5rem; }
.section-heading > p:last-child { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-card { min-height: 330px; padding: clamp(1.5rem, 4vw, 2.6rem); border: 1px solid var(--line); border-radius: 1.4rem; background: linear-gradient(145deg, rgb(51 119 215 / 7%), transparent 70%), var(--card-bg); }
.feature-card p, .feature-card li { color: var(--muted); }
.feature-icon { display: grid; width: 48px; height: 48px; margin-bottom: 1.7rem; place-items: center; border-radius: 14px; background: rgb(51 119 215 / 18%); color: var(--accent); font-size: 1.4rem; }
.callout { margin-top: 1rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--brand-secondary); border-radius: 0 .75rem .75rem 0; background: rgb(51 119 215 / 10%); color: var(--text); }
.callout strong { color: var(--accent); }
.analysis-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 3rem; }
.analysis-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.stat-card { min-height: 138px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--card-bg); }
.stat-card strong { display: block; margin-bottom: .45rem; color: var(--brand-secondary); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 1.2rem; }
.stat-card span { color: var(--muted); font-size: .9rem; }
.connect-gallery { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; gap: clamp(.85rem, 2vw, 1.5rem); }
.connect-figure { min-width: 0; margin: 0; text-align: center; }
.connect-device { padding: .35rem; border: 1px solid var(--line); border-radius: 1.7rem; background: var(--bg); box-shadow: 0 24px 55px rgb(0 0 0 / 32%); }
.connect-device img { width: 100%; height: auto; border-radius: 1.35rem; object-fit: contain; }
.connect-iphone { width: min(100%, 210px); margin-inline: auto; }
.connect-ipad { width: min(100%, 380px); margin-inline: auto; }
.connect-figure figcaption { margin-top: .75rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.faq-list { max-width: 850px; }
.faq-list details { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 1.08rem; font-weight: 600; }
.faq-list details p { margin: .85rem 0 0; color: var(--muted); }
.support-guide { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--card-bg); }
.support-guide h3 { margin-bottom: .5rem; }
.support-guide p { margin: 0; color: var(--muted); }
.faq-heading { scroll-margin-top: 6rem; }
.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-title { margin-bottom: .75rem; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-weight: 700; }
.footer-links { display: grid; gap: .35rem; }
.footer-links a, .footer-note { color: var(--muted); font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.prose { max-width: 850px; padding-bottom: 5rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.prose h3 { margin-top: 1.7rem; }
.prose p, .prose li { color: var(--muted); }
.prose .notice { margin: 1.5rem 0; padding: 1rem 1.2rem; border: 1px solid var(--brand-primary); border-radius: .75rem; background: rgb(51 119 215 / 12%); color: var(--text); }
.prose .todo { color: var(--accent); font-weight: 600; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; min-height: 3rem; margin: 0; padding: 0 0 1.4rem 3.5rem; color: var(--muted); counter-increment: step; }
.steps li::before { position: absolute; top: -.1rem; left: 0; display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: 50%; background: rgb(51 119 215 / 18%); color: var(--accent); content: counter(step); font-weight: 700; }
.redirect { width: min(36rem, calc(100% - 2rem)); margin: 15vh auto; padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }

@media (max-width: 800px) {
  .header-inner { min-height: 68px; flex-wrap: wrap; padding-block: .7rem; }
  .nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: .35rem .9rem; overflow: visible; padding-bottom: 0; }
  .nav a { flex: 0 0 auto; font-size: .82rem; }
  .language-switch { margin-left: .2rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-copy { max-width: 740px; }
  .hero-gallery { width: min(100%, 780px); margin-inline: auto; }
  .analysis-grid { grid-template-columns: 1fr; gap: 2rem; }
  .support-guide { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .container { width: min(var(--max-width), calc(100% - 1.5rem)); }
  .brand { font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding-block: 2rem 2.5rem; }
  .hero-copy h1 { font-size: clamp(2.45rem, 11vw, 3.2rem); }
  .store-badges { gap: 10px; }
  .store-badge { width: 155px; height: 52px; flex-basis: 155px; }
  .feature-grid, .analysis-panel, .footer-grid { grid-template-columns: 1fr; }
  .connect-gallery { grid-template-columns: 1fr; gap: 1.5rem; }
  .connect-iphone { width: min(100%, 210px); }
  .connect-ipad { display: none; }
  .feature-card { min-height: 0; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
