:root {
  color-scheme: light;
  --ink: #1d2026;
  --muted: #626a79;
  --line: #ececef;
  --indigo: #5146ed;
  --indigo-gradient: linear-gradient(140deg, #6d63ff, #4338ec);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #6f38f0; outline-offset: 5px; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 30;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.skip-link:focus { top: 15px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  border-bottom: 1px solid #1d202610;
  background: #fffffff2;
}

@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .site-header {
    background: #ffffffbf;
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }
}

.header-inner {
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.brand img { width: 34px; height: 34px; object-fit: contain; }

.header-actions { display: flex; align-items: center; justify-self: end; gap: 24px; }
.contact-link { font-size: 16px; font-weight: 560; color: #3d4350; white-space: nowrap; }
.contact-link:hover { color: #0a84ff; }
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 19px;
  border-radius: 12px;
  background-color: var(--indigo);
  background-image: var(--indigo-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 12px #5146ed33;
}

.hero {
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  min-height: calc(100svh - 72px);
}

.hero-copy { position: relative; z-index: 2; padding: 30px 0 10px; transform: translateY(-25px); }
.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(62px, 4.15vw, 78px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.066em;
}
.hero-copy p {
  max-width: 560px;
  margin: 30px 0 35px;
  color: var(--muted);
  font-size: clamp(19px, 1.2vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.022em;
}
.app-store-link { display: inline-block; }
.app-store-badge { width: 180px; height: auto; }

.hero-visual {
  position: relative;
  width: 100%;
  height: min(900px, max(700px, calc(100svh - 175px)));
  isolation: isolate;
  transform: translateY(-65px);
}

.visual-backdrop {
  position: absolute;
  z-index: 1;
  top: 27%;
  left: 7%;
  width: 103%;
  aspect-ratio: 1;
  border-radius: 12%;
  transform: rotate(-4deg);
  background-color: var(--indigo);
  background-image:
    linear-gradient(#3021c524 1px, transparent 1px),
    linear-gradient(90deg, #3021c524 1px, transparent 1px),
    var(--indigo-gradient);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

.phone {
  position: absolute;
  z-index: 2;
  top: 18%;
  left: 26%;
  width: min(360px, 72%);
  padding: 5px;
  border: 4px solid #a6a7a8;
  border-radius: 58px;
  background: #0c0c0d;
  box-shadow: 22px 31px 44px #171b2433, 3px 5px 10px #171b2426;
  transform: rotate(8deg);
  transform-origin: center center;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid #ffffff3b;
  pointer-events: none;
}
.phone img { width: 100%; height: auto; border-radius: 48px; }

.site-footer {
  width: min(calc(100% - 48px), 1240px);
  margin: 100px auto 0;
  padding: 24px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.footer-platform { text-align: right; white-space: nowrap; }
.footer-left { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { text-decoration: underline; }

.legal-page { min-height: 100svh; display: flex; flex-direction: column; }
.legal-page .site-header { flex-shrink: 0; }
.legal-page .site-footer { margin-top: 0; }
.legal-main { flex: 1; width: min(calc(100% - 48px), 720px); margin-inline: auto; padding: 64px 0 80px; }
.article-page h1 { margin: 0 0 24px; font-size: clamp(38px, 6vw, 48px); line-height: 1.1; letter-spacing: -0.055em; }
.article-page h2 { margin: 32px 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -0.025em; }
.article-page p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.article-page a { color: #0069d9; text-decoration: underline; overflow-wrap: anywhere; }

.contact-page { min-height: 100svh; display: flex; flex-direction: column; }
.contact-page .site-header { flex-shrink: 0; }
.contact-page .site-footer { margin-top: 0; }
.contact-main { flex: 1; display: grid; place-items: center; padding: 64px 24px; }
.contact-panel { width: min(100%, 400px); }
.contact-panel h1 { margin: 0; text-align: center; font-size: clamp(38px, 6vw, 48px); line-height: 1.1; letter-spacing: -0.055em; }
.contact-intro { margin: 16px 0 32px; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.5; }
.contact-form { display: grid; gap: 22px; }
.contact-form[hidden], .contact-success[hidden] { display: none; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 15px; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #d8dbe2;
  border-radius: 12px;
  background: #fafbfc;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 3px solid #0a84ff33; outline-offset: 1px; border-color: #0a84ff; }
.form-submit { min-height: 48px; border: 0; font-family: inherit; cursor: pointer; }
.form-submit:hover { background: #4338ec; }
.contact-success { margin: 32px 0 0; padding: 24px; border-radius: 12px; background: #eff8f2; color: #24613d; text-align: center; line-height: 1.5; }

@media (max-width: 1100px) {
  .site-footer { margin-top: 0; }
  .hero h1 { font-size: clamp(55px, 6vw, 80px); }
  .hero-visual { height: 780px; }
  .phone { left: 24%; width: min(320px, 72%); border-radius: 55px; }
  .phone img { border-radius: 45px; }
}

@media (max-width: 760px) {
  .site-header { height: 72px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 12px; }
  .brand { font-size: 21px; }
  .brand img { width: 30px; height: 30px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 68px; }
  .hero-copy { padding: 0; transform: none; }
  .hero h1 { font-size: clamp(56px, 12vw, 78px); }
  .hero-copy p { max-width: 580px; margin: 24px 0 30px; font-size: 20px; line-height: 1.5; }
  .hero-visual { height: 700px; margin-top: 28px; transform: none; }
  .visual-backdrop { top: 22%; left: 3%; width: 93%; }
  .phone { top: 8%; left: 24%; width: 55%; max-width: 330px; border-width: 4px; border-radius: 48px; padding: 4px; }
  .phone img { border-radius: 39px; }
}

@media (max-width: 480px) {
  .header-inner, .hero, .site-footer, .legal-main { width: calc(100% - 40px); }
  .brand { gap: 8px; font-size: 20px; }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: 54px; }
  .hero-visual { width: calc(100% + 40px); height: 590px; margin-left: -20px; }
  .phone { left: 25%; width: 53%; border-radius: 42px; }
  .phone img { border-radius: 33px; }
  .visual-backdrop { left: 7%; width: 90%; }
}

@media (max-width: 370px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
