:root {
  --bg: #f3f4f6;
  --bg-deep: #e8eaee;
  --surface: #ffffff;
  --brand: #0082fd;
  --brand-deep: #0066c8;
  --ink: #121417;
  --ink-muted: #4b5563;
  --ink-soft: #6b7280;
  --line: rgba(18, 20, 23, 0.1);
  --font: "Nunito", system-ui, sans-serif;
  --max: 44rem;
  --wide: 64rem;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: var(--brand-deep); }
a:hover { color: var(--brand); }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 85% -10%, rgba(0, 130, 253, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(0, 102, 200, 0.12), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  position: relative;
  max-width: 100%;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  min-width: 0;
}
.mark-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: var(--ink-muted);
}
.nav a:hover { color: var(--ink); }
@media (max-width: 719px) {
  .nav .nav-desktop { display: none; }
}

.hero {
  padding: clamp(0.9rem, 2.8vw, 1.75rem) clamp(1.25rem, 4vw, 3rem) 2.25rem;
  width: 100%;
  max-width: min(var(--wide), 100%);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 1.75rem;
  align-items: start;
  animation: rise 0.75s ease-out both;
}
.hero > div:first-child {
  min-width: 0;
  max-width: 34rem;
  width: 100%;
}
@media (min-width: 860px) {
  .hero {
    width: fit-content;
    grid-template-columns: minmax(0, 34rem) 22rem;
    gap: 2.5rem;
    align-items: center;
  }
}

.brand {
  margin: 0;
  font-size: clamp(2.1rem, 6.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brand);
}
.hero h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  max-width: 34rem;
}
.lede {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 600;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.35rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 130, 253, 0.28);
}
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); }
.btn-appstore {
  background: #111111;
  color: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
}
.btn-appstore:hover { background: #000; color: #fff; }
button.btn {
  border: none;
  cursor: pointer;
  font: inherit;
}
.contact-out {
  font-weight: 800;
  color: var(--ink);
  word-break: break-all;
}
.platform-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual img {
  width: min(100%, 22rem);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(18, 20, 23, 0.16);
}

.page {
  width: 100%;
  max-width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  flex: 1;
}
.page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
}
.page h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.15rem;
}
.page p, .page li {
  color: var(--ink-muted);
  font-weight: 600;
}
.page .meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 1.1rem;
}
.page ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0;
}
.page li { margin: 0.35rem 0; }
.page code {
  font-size: 0.92em;
  background: rgba(0, 130, 253, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.foot {
  margin-top: auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.foot-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 700;
}
.foot-links a:hover { color: var(--brand); }

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