:root {
  color-scheme: dark;
  --background: #0f1117;
  --text: #f1f5f9;
  --muted: #a6b1c2;
  --border: #2d3348;
  --accent-light: #ffaa55;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  color: #0f1117;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; }

.site-header,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}
.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand { display: inline-flex; border-radius: 4px; }
.brand img { object-fit: contain; }
.site-header .brand img { width: 136px; height: 34px; }

.hero {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: calc(100vh - 202px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  align-items: center;
  gap: 64px;
  padding: 48px 0 58px;
}
.hero-copy { position: relative; z-index: 3; }
h1 { margin: 0 0 24px; font-size: clamp(3.3rem, 6.8vw, 6rem); line-height: 1.02; letter-spacing: -.045em; }
.hero-lead { max-width: 650px; margin: 0 0 32px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.65; }
.store-links { display: flex; flex-wrap: wrap; gap: 12px; }
.store-link {
  min-width: 176px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 9px 18px;
  border: 1px solid #485169;
  border-radius: 13px;
  background: #f8fafc;
  color: #0f1117;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  transition: transform .18s ease, background-color .18s ease;
}
.store-link:hover { transform: translateY(-2px); background: white; }
.store-link svg { width: 27px; height: 27px; fill: currentColor; flex: none; }
.google-play-link svg { width: 22px; height: 22px; }
.store-link span { display: flex; flex-direction: column; }
.store-link small { margin-bottom: 4px; font-size: .67rem; font-weight: 600; }
.hero-visual {
  position: relative;
  min-height: 640px;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(255, 85, 51, .11);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 85, 51, .1), transparent 64%);
  transform: translate(-50%, -50%);
}
.hero-visual img {
  position: absolute;
  height: auto;
  border: 1px solid #373d50;
  border-radius: 38px;
  box-shadow: 0 38px 86px rgba(0, 0, 0, .55);
}
.phone-detail {
  z-index: 1;
  top: 48px;
  left: 7%;
  width: 252px;
  opacity: .58;
  transform: rotate(-7deg) scale(.94);
}
.phone-map {
  z-index: 2;
  top: 80px;
  right: 5%;
  width: 292px;
  transform: rotate(4deg);
}

footer {
  min-height: 118px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #788399;
  font-size: .82rem;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: white; }
footer > p { text-align: right; }

.legal-main { width: min(calc(100% - 40px), 760px); margin: 0 auto; padding: 78px 0 120px; }
.legal-main h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.06; letter-spacing: -.035em; }
.legal-main h2 { margin-top: 52px; font-size: 1.65rem; line-height: 1.15; }
.legal-main h3 { margin-top: 36px; font-size: 1.22rem; line-height: 1.2; }
.legal-main p { color: #bac3d2; }
.legal-main hr { margin: 48px 0; border: 0; border-top: 1px solid var(--border); }
.legal-main a { color: #ff886f; }
.legal-kicker { margin-bottom: 12px; color: #ff886f !important; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 820px) {
  .site-header { min-height: 70px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding: 50px 0 42px; }
  .hero-copy { text-align: center; }
  h1 { max-width: 700px; margin-left: auto; margin-right: auto; font-size: clamp(3rem, 13vw, 5.2rem); }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .store-links { justify-content: center; }
  .hero-visual { min-height: 540px; width: min(100%, 480px); margin: 0 auto; }
  .hero-visual::before { width: 590px; height: 590px; }
  .phone-detail { top: 55px; left: 5%; width: 215px; }
  .phone-map { top: 72px; right: 6%; width: 250px; }
  footer { flex-direction: column; justify-content: center; padding: 30px 0; }
  footer > p { margin: 0; text-align: center; }
}

@media (max-width: 480px) {
  .site-header, footer, .hero { width: min(calc(100% - 28px), var(--max-width)); }
  .site-header .brand img { width: 124px; height: 31px; }
  .hero { padding-top: 42px; }
  h1 { font-size: 3.15rem; }
  .hero-lead { font-size: 1.02rem; }
  .store-links { flex-direction: column; align-items: stretch; }
  .store-link { width: 100%; }
  .hero-visual { min-height: 465px; }
  .hero-visual::before { width: 480px; height: 480px; }
  .hero-visual img { border-radius: 30px; }
  .phone-detail { top: 54px; left: -1%; width: 178px; }
  .phone-map { top: 64px; right: 0; width: 215px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-link { transition: none; }
}
