:root {
  --bg: #0b0e1d;
  --bg-soft: #11152b;
  --ink: #eef0fa;
  --muted: #9aa0bd;
  --card: #161b33;
  --line: #272e52;
  --accent: #8b7cf6;
  --accent-2: #4fd8d2;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Star field */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 48% 12%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 45%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 75% 18%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 82%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 88%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 90%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 38%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 8% 55%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 78%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1200px 600px at 80% -10%, rgba(139,124,246,.14), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(79,216,210,.10), transparent 60%),
    var(--bg);
}

.site-shell { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.by-ajigu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.by-ajigu img { width: 20px; height: 20px; border-radius: 50%; }
.by-ajigu:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

.language-switcher { position: relative; font-size: 0.9rem; }
.language-switcher summary { cursor: pointer; list-style: none; color: var(--muted); white-space: nowrap; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; display: flex; flex-direction: column; min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.language-menu a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.language-menu a:hover { background: var(--bg); color: var(--ink); }
.language-menu a[aria-current="page"] { color: var(--accent-2); font-weight: 600; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px;
  align-items: center; padding-top: 80px; padding-bottom: 80px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 600; color: var(--accent-2); margin: 0 0 12px;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 20px; }
.gradient-word {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy { font-size: 1.15rem; color: var(--muted); max-width: 48ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.button:hover { border-color: var(--accent); }
.button.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0e1d; border: none;
}
.button.primary:hover { opacity: .92; }

.microcopy { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }

.hero-art { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phone {
  width: 280px; border-radius: 32px;
  box-shadow: 0 24px 80px rgba(139,124,246,.25), 0 8px 24px rgba(0,0,0,.5);
}
.float-note { font-size: .85rem; color: var(--accent-2); font-weight: 600; }

/* Sections */
.section { padding: 64px 0; }

.section.site-shell { padding: 64px 24px; }
.section-heading { max-width: 56ch; margin-bottom: 36px; }
.section-kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 600; color: var(--accent); margin: 0 0 8px;
}
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; margin: 0 0 12px; line-height: 1.2; }
.section-heading p { color: var(--muted); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Gallery */
.shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.shot-row img {
  width: 100%; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 22px;
}
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list summary::-webkit-details-marker { color: var(--accent); }
.faq-list p { margin: 12px 0 0; color: var(--muted); }

/* CTA */
.cta { text-align: center; padding-top: 48px; padding-bottom: 96px; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 24px; letter-spacing: -.01em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 48px; }
  .hero-art { order: -1; }
  .nav-links { display: none; }
  .by-ajigu { margin-right: 0; font-size: 0; gap: 0; }
}

/* Motion */
:root { --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}

.hero > * { animation: rise 0.6s var(--ease-out-strong) both; }
.hero > .hero-art { animation-delay: 0.12s; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out-strong), transform 0.6s var(--ease-out-strong);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes float {
  to { transform: translateY(-10px); }
}
.phone { animation: float 6s ease-in-out infinite alternate; }

@media (hover: hover) and (pointer: fine) {
  .feature-card {
    transition: transform 0.25s var(--ease-out-strong), box-shadow 0.25s var(--ease-out-strong), border-color 0.25s;
  }
  .feature-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: 0 12px 32px rgba(139, 124, 246, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *, .phone { animation: none; }
  .reveal { transition: opacity 0.2s ease; transform: none; }
  .feature-card:hover { transform: none; }
}

.guide-link { color: var(--accent-2); font-weight: 600; }
.guide-link::before { content: "✦ "; }

/* Guides use the product site's semantic palette. */
:root { color-scheme: dark; }
.skip-link { position: fixed; left: 20px; top: 12px; transform: translateY(-160%); z-index: 100; padding: 10px 16px; background: var(--card); color: var(--ink); border: 2px solid var(--accent); border-radius: 8px; }
.skip-link:focus { transform: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 5px; border-radius: 4px; }
.nav-guides { color: var(--accent-2); font-weight: 600; text-decoration: none; margin-left: auto; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .guide-link { color: var(--accent-2); }
.guide-main { padding-top: 32px; padding-bottom: 64px; }
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); margin: 0 0 44px; }
.breadcrumbs a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guide-intro { max-width: 760px; padding: 24px 0 48px; }
.guide-intro h1 { max-width: 16ch; }
.guide-lead { font-size: 1.2rem; color: var(--muted); line-height: 1.8; max-width: 62ch; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-card { border-top: 1px solid var(--line); padding: 28px 20px 32px 0; min-width: 0; }
.guide-number { color: var(--accent-2); font-size: .8rem; letter-spacing: .12em; margin: 0 0 16px; }
.guide-card h3 { font-size: 1.45rem; line-height: 1.4; margin: 0 0 14px; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.guide-card > p:not(.guide-number) { color: var(--muted); margin: 0 0 20px; }
.text-link { color: var(--accent-2); text-decoration: none; font-weight: 600; display: inline-block; padding: 8px 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.guide-cta { display: flex; gap: 32px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 64px; background: var(--card); }
.guide-cta h2 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 10px; }
.guide-cta p { color: var(--muted); margin: 0; }
.guide-cta .button { flex-shrink: 0; max-width: 100%; white-space: normal; }
.article-header { max-width: 800px; margin-bottom: 44px; }
.article-header h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.2; }
.article-meta { display: flex; gap: 12px 24px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.article-meta a { text-decoration: none; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.article-toc { position: sticky; top: 92px; border-top: 1px solid var(--line); padding-top: 20px; }
.article-toc h2 { font-size: .9rem; margin: 0 0 12px; }
.article-toc ol { padding-left: 20px; margin: 0; }
.article-toc li { margin-bottom: 12px; }
.article-toc a { font-size: .9rem; color: var(--muted); text-decoration: none; }
.article-toc a:hover { color: var(--ink); text-decoration: underline; }
.article-body { max-width: 720px; font-size: 1.05rem; line-height: 1.9; overflow-wrap: anywhere; }
.article-body section { scroll-margin-top: 90px; margin-bottom: 42px; }
.article-body h2 { font-size: 1.5rem; line-height: 1.4; margin: 0 0 18px; }
.article-body p { margin: 0 0 20px; }
.article-body li { margin-bottom: 12px; padding-left: 4px; }
.article-body a { color: var(--accent-2); text-underline-offset: 4px; }
.independent-note { font-size: .85rem; color: var(--muted); }
.footer-inner .independent-note { flex-basis: 100%; }
.related-guides { margin-top: 64px; }
.related-guides .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-guides h2 { font-size: 1.5rem; margin-bottom: 24px; }
.related-guides h3 { font-size: 1.15rem; }
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --bg: #f8f9fd; --bg-soft: #eef0f8; --ink: #182036; --muted: #505b73; --card: #fff; --line: #d8deeb; --accent: #5e4cc4; --accent-2: #006e73; }
  .stars { background: radial-gradient(1200px 600px at 80% -10%, rgba(139,124,246,.08), transparent 60%), var(--bg); }
  .button.primary { background: linear-gradient(120deg, #aaa0ff, #70e0d9); }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .by-ajigu { display: none; }
  .guide-main { padding-top: 24px; padding-bottom: 40px; }
  .guide-intro { padding: 8px 0 24px; }
  .breadcrumbs { margin-bottom: 28px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .article-toc a { display: inline-block; padding: 4px 0; }
  .guide-grid, .related-guides .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-card { padding-right: 0; }
  .guide-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .article-header { margin-bottom: 28px; }
  .article-meta { flex-direction: column; gap: 8px; }
  .guide-lead { font-size: 1.1rem; }
}
@media (max-width: 400px) {
  .nav .brand img { display: none; }
  .nav .brand { font-size: 1rem; }
  .nav { gap: 10px; }
  .site-shell { padding-left: 20px; padding-right: 20px; }
  .section.site-shell { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 340px) {
  .nav { height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav .language-switcher { margin-left: auto; }
  .article-body section { scroll-margin-top: 160px; }
}

/* App Store card follows each article and is shared with the guides index. */
.app-card { scroll-margin-top: 92px; align-items: center; background: linear-gradient(130deg, color-mix(in srgb, var(--accent) 10%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.app-card-details { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 22px; align-items: start; min-width: 0; }
.app-card-icon { border-radius: 20px; border: 1px solid var(--line); }
.app-card h2 { margin-bottom: 6px; font-size: 1.6rem; }
.app-card .app-card-tagline { color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.app-card-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 0 1 310px; min-width: 0; }
.app-card-price { display: inline-block; font-size: 2rem; font-weight: 750; line-height: 1.1; color: var(--accent-2); letter-spacing: -.02em; }
.app-card .app-card-note { font-size: .8rem; line-height: 1.6; color: var(--muted); }
.app-card .button { flex-shrink: 1; text-align: center; justify-content: center; }
@media (max-width: 760px) {
  .app-card-details { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .app-card-icon { width: 64px; height: 64px; border-radius: 16px; }
  .app-card-action { flex: none; width: 100%; }
  .app-card .button { width: 100%; }
}

@media (max-width: 340px) { .app-card { scroll-margin-top: 160px; } }
