:root {
  --bg: #292929;
  --bg-deep: #1f1f1f;
  --panel: #333333;
  --panel-2: #3a3a3a;
  --line: #444444;
  --text: #ececec;
  --muted: #a8a8a8;
  --red: #FF3B30;
  --red-dark: #d92e24;
  --green: #73F28C;
  --blue: #3D8BFF;
  --yellow: #F5C542;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; background: var(--panel); padding: 1px 6px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
b { font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(31, 31, 31, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .08em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .nav-cta { color: #fff; background: var(--red); padding: 6px 14px; border-radius: 6px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--red-dark); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #3a2524 0%, var(--bg) 60%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 180px; height: 180px; margin-bottom: 8px; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 6px; color: var(--muted); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } html { scroll-behavior: auto; } }
.hero h1 { font-size: clamp(56px, 10vw, 96px); font-weight: 800; letter-spacing: .06em; }
.lead { max-width: 680px; margin: 12px auto 28px; font-size: clamp(17px, 2.2vw, 21px); color: #d6d6d6; }
.hero-meta { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.hero-shot { margin: 52px 0 0; }
.hero-shot img, .mode-shot img, .shots-2 img {
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

/* Buttons */
.dl-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; color: #fff;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn span { display: flex; flex-direction: column; text-align: left; font-size: 18px; line-height: 1.15; }
.btn small { font-size: 11px; font-weight: 400; opacity: .85; }
.btn-rec { background: var(--red); box-shadow: 0 6px 20px rgba(255, 59, 48, .3); }
.btn-rec:hover { background: var(--red-dark); }
.btn-block { width: 100%; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-deep); border-top: 1px solid #333; border-bottom: 1px solid #333; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.kicker-red { color: var(--red); }
.kicker-green { color: var(--green); }
.section h2 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 700; margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 8px; }
.note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }

/* Modes */
.mode { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.mode-text { max-width: 820px; }
.mode h3 { font-size: clamp(22px, 3vw, 28px); margin: 12px 0 16px; }
.tag { display: inline-block; padding: 3px 12px; border-radius: 5px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #fff; }
.tag-blue { background: var(--blue); }
.tag-red { background: var(--red); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 10px 0; color: #dcdcdc; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mode-shot { margin: 32px 0 0; }

.analyzer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.an, .out, .card, .fl, .audio-box, .dl-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.an { padding: 16px 18px; }
.an h4, .out h4, .fl h4, .card h4, .audio-box h4 { font-size: 16px; margin-bottom: 6px; }
.an h4 { color: var(--green); font-family: var(--mono); font-weight: 600; }
.an p, .out p, .fl p, .card p, .audio-box p { margin: 0; color: var(--muted); font-size: 15px; }

.outs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.out { padding: 18px 20px; }
.out h4 { color: var(--blue); letter-spacing: .06em; }
.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.shots-2 figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

/* Safety cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { padding: 22px; }
.card-num { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.card-num.warn { color: var(--yellow); }

/* Editing */
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl { padding: 18px 20px; }

/* Audio */
.audio-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; margin-top: 32px; }
.audio-box { padding: 22px; }
.audio-box h4 { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.audio-box .big { color: var(--text); font-size: 22px; font-weight: 600; margin: 4px 0 6px; }
.green { color: var(--green); }

/* Download */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; max-width: 860px; }
.dl-card { padding: 28px; display: flex; flex-direction: column; }
.dl-card h3 { font-size: 24px; }
.ver { margin: 4px 0 14px; font-family: var(--mono); font-size: 14px; color: var(--green); }
.req { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.req li { padding: 8px 0; border-bottom: 1px solid var(--line); color: #d6d6d6; font-size: 15px; }
.req li:last-child { border-bottom: 0; }

/* Footer */
.footer { padding: 56px 0 64px; background: var(--bg-deep); border-top: 1px solid #333; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 28px; }
.licenses h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.licenses ul { margin: 0 0 16px; padding-left: 18px; color: #cfcfcf; font-size: 14px; }
.licenses li { margin: 4px 0; }
.small { font-size: 12px; color: #8a8a8a; margin: 0; }

/* Highlights */
.hl { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-top: 64px; }
.hl.rev .hl-text { order: 2; }
.hl-num { font-family: var(--mono); font-size: 14px; color: var(--red); letter-spacing: .1em; }
.hl h3 { font-size: clamp(22px, 3vw, 30px); margin: 8px 0 14px; }
.hl p { color: #d6d6d6; margin: 0 0 8px; }
.hl-shot { margin: 0; }
.hl-shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }

/* Skins */
.skins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.skins figure { margin: 0; }
.skins img { width: 100%; aspect-ratio: 900 / 723; object-fit: cover; object-position: top left; border-radius: 8px; border: 1px solid var(--line); }
.skins figcaption { margin-top: 8px; }

/* Beta */
.tagline { margin: 6px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .02em; }
.btn-big { padding: 16px 34px; font-size: 19px; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-num { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: var(--red); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps h4 { font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.beta-cta { text-align: center; margin: 36px 0 8px; }
.beta-cta .pay-note { margin-top: 10px; }

/* Pricing */
.buy-link { display: inline-block; margin-top: 18px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--red); padding-bottom: 2px; }
.buy-link:hover { color: #fff; text-decoration: none; border-color: #fff; }
.btn-ghost { background: transparent; border: 1px solid #5a5a5a; color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; max-width: 860px; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 18px 50px rgba(255, 59, 48, .15); }
.price-card h3 { font-size: 20px; }
.price { font-size: 40px; font-weight: 700; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.price-card .ticks { flex: 1; margin-bottom: 22px; }
.pay-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.faq { max-width: 860px; margin-top: 40px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.foot-links { font-size: 14px; margin: 0 0 24px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .analyzer-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .audio-row { grid-template-columns: 1fr 1fr; }
  .audio-box.wide { grid-column: 1 / -1; }
  .hl { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .hl.rev .hl-text { order: 0; }
  .skins { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .hero { padding-top: 48px; }
  .hero-icon { width: 128px; height: 128px; }
  .br-wide { display: none; }
  .dl-buttons { flex-direction: column; width: 100%; max-width: 320px; }
  .section { padding: 64px 0; }
  .analyzer-grid, .cards, .outs, .shots-2, .feature-list, .audio-row, .dl-grid, .price-grid, .steps { grid-template-columns: 1fr; }
}

/* Show-day tools: consoles */
.consoles { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.consoles h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.console-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.console-list li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); font-size: 14px; }
.console-list b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
@media (max-width: 900px) { .console-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .console-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Seasonal: Halloween
   On while <html> has .season-halloween (js/config.js "season", ends by itself on Nov 1 JST).
   Colours follow the app's Halloween skin. */
.season-deco, .season-tag { display: none; }
html.season-halloween {
  --bg: #1d1622;
  --bg-deep: #150f19;
  --panel: #2a1f30;
  --panel-2: #33263a;
  --line: #47334f;
  --text: #f6ece0;
  --muted: #b9a7bd;
  --red: #ff7518;
  --red-dark: #e8650c;
  --green: #a6ff4d;
  --blue: #b07cff;
  --yellow: #ffb000;
}
html.season-halloween .section.alt { border-color: #33263a; }
html.season-halloween .nav { background: rgba(21, 15, 25, .88); }
html.season-halloween .footer { border-top-color: #33263a; }
/* Orange buttons take dark text: white on pumpkin orange is too low in contrast */
html.season-halloween .btn-rec, html.season-halloween .nav-links .nav-cta, html.season-halloween .step-num { color: #1d1622; }
html.season-halloween .btn-rec { box-shadow: 0 6px 24px rgba(255, 117, 24, .35); }
html.season-halloween .tag-red, html.season-halloween .latest { color: #1d1622; }
html.season-halloween .hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(176, 124, 255, .28) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 38%, rgba(255, 117, 24, .16) 0%, transparent 45%),
    var(--bg);
}
html.season-halloween .hero-icon { filter: drop-shadow(0 0 36px rgba(255, 117, 24, .45)) drop-shadow(0 18px 40px rgba(0,0,0,.5)); }
html.season-halloween .season-tag { display: block; margin: -2px 0 4px; color: #ff9a4d; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
html.season-halloween .hero-shot img { box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(176, 124, 255, .25), 0 0 80px rgba(176, 124, 255, .18); }
/* Decorations: a cobweb in each top corner and a few bats. Pointer-transparent, behind the content. */
html.season-halloween .season-deco {
  display: block; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23b9a7bd' stroke-opacity='.35' stroke-width='1.2'%3E%3Cpath d='M0 0L200 200M0 0L200 70M0 0L70 200M0 0L200 130M0 0L130 200'/%3E%3Cpath d='M40 14Q36 36 14 40M80 28Q72 72 28 80M122 43Q110 110 43 122M164 57Q148 148 57 164'/%3E%3C/svg%3E") top left / 220px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23b9a7bd' stroke-opacity='.35' stroke-width='1.2'%3E%3Cpath d='M200 0L0 200M200 0L0 70M200 0L130 200M200 0L0 130M200 0L70 200'/%3E%3Cpath d='M160 14Q164 36 186 40M120 28Q128 72 172 80M78 43Q90 110 157 122M36 57Q52 148 143 164'/%3E%3C/svg%3E") top right / 220px no-repeat;
}
html.season-halloween .season-deco::before, html.season-halloween .season-deco::after {
  content: ""; position: absolute; width: 64px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 30'%3E%3Cpath fill='%23b07cff' fill-opacity='.75' d='M32 9c2-4 4-6 4-6l1 5c1-1 2-1 3 0 4-5 12-7 24-4-6 2-9 6-10 12-3-3-7-3-10 1-2-3-5-3-7 0-1 3-3 6-5 9-2-3-4-6-5-9-2-3-5-3-7 0-3-4-7-4-10-1C9 10 6 6 0 4c12-3 20-1 24 4 1-1 2-1 3 0l1-5s2 2 4 6z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: bat-drift 9s ease-in-out infinite alternate;
}
html.season-halloween .season-deco::before { top: 120px; left: 12%; }
html.season-halloween .season-deco::after { top: 230px; right: 14%; width: 44px; height: 21px; animation-duration: 11s; animation-delay: -4s; }
@keyframes bat-drift { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(24px, -14px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { html.season-halloween .season-deco::before, html.season-halloween .season-deco::after { animation: none; } }
html.season-halloween .hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 640px) { html.season-halloween .season-deco { background-size: 130px, 130px; } }

/* Skins: the two newest skins as large cards (2 x 2 cells each), so 2 + 8 skins fill four rows */
.skins .skin-feature { grid-column: span 2; grid-row: span 2; }
.skins .new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; }
html.season-halloween .skins .new { color: #1d1622; }
@media (max-width: 640px) { .skins .skin-feature { grid-row: auto; } }

/* Hero: one line about the newest version */
.whats-new { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.whats-new .tag { font-size: 11px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px; }
html.season-halloween .whats-new .tag { color: #1d1622; }

/* Language menu (nav) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.lang-btn:hover { border-color: var(--muted); }
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: block; padding: 7px 12px; border-radius: 6px; color: var(--text); font-size: 14px; }
.lang-menu a:hover { background: var(--panel-2); text-decoration: none; }
.lang-menu a[aria-current] { color: var(--green); font-weight: 600; }
@media (max-width: 640px) { .lang-btn .lang-cur { display: none; } .lang-btn { padding: 6px 8px; } }

/* One UI font per script, so CJK and Thai never mix glyphs from several fonts */
html[lang="ja"] body { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; }
html[lang="zh-Hans"] body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
html[lang="zh-Hant"] body { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif; }
html[lang="ko"] body { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html[lang="th"] body { font-family: -apple-system, BlinkMacSystemFont, Thonburi, "Leelawadee UI", Tahoma, sans-serif; }
html[lang="ja"] .lead, html[lang^="zh"] .lead, html[lang="ko"] .lead { line-break: strict; word-break: normal; }
