/* NanoView site: dark, TV-like; one stylesheet for every language. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0B0D12;
  --bg2: #12151D;
  --card: #171B25;
  --line: #262B38;
  --text: #EEF0F5;
  --muted: #A3AABA;
  --accent: #4F8BFF;
  --accent2: #7BE0C3;
  --warm: #FFB84D;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:lang(zh) body, body:lang(zh) { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
:lang(ja) body, body:lang(ja) { font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Inter Display", "Inter", system-ui, sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-family: inherit; line-height: 1.35; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and language menu */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.2rem "Inter Display", "Inter", sans-serif; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .95rem; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 170px; z-index: 10; box-shadow: 0 18px 40px #0008; }
.langs a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { background: #ffffff10; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #4F8BFF1f; color: #A9C6FF; font-size: .9rem; font-weight: 500; margin-bottom: 18px; }
.lead { font-size: 1.2rem; color: #CDD2DD; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 26px 0 14px; }
.button { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; box-shadow: 0 10px 30px #4F8BFF40; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 36px #4F8BFF60; }
.link { color: var(--text); text-decoration: none; border-bottom: 1px solid #ffffff40; padding-bottom: 2px; }
.note { color: var(--muted); font-size: .95rem; }

/* Demo: a web page turns into a TV screen */
.demo { margin: 0; }
.stage { position: relative; aspect-ratio: 16 / 11; }
.page-mock {
  position: absolute; left: 0; top: 2%; width: 54%; height: 78%; padding: 10px;
  background: #E9ECF2; border-radius: 10px; box-shadow: 0 20px 50px #0009; overflow: hidden;
  animation: page-fade 9s ease-in-out infinite;
}
.pm-bar { height: 12px; background: #C7CDD8; border-radius: 4px; margin-bottom: 8px; }
.pm-row { display: flex; gap: 5px; margin-bottom: 10px; }
.pm-row i { flex: 1; height: 6px; background: #9AA3B2; border-radius: 3px; }
.pm-cols { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 8px; }
.pm-cols b, .pm-cols s { display: block; border-radius: 3px; margin-bottom: 6px; text-decoration: none; }
.pm-cols b { height: 12px; background: #5B6475; }
.pm-cols s { height: 5px; background: #B7BECB; }
.pm-cols .pm-img { height: 52px; background: linear-gradient(135deg, #7AA7E8, #E8A87A); }
.pm-cols .pm-ad { height: 40px; background: repeating-linear-gradient(45deg, #F5C542, #F5C542 6px, #F0B51C 6px, #F0B51C 12px); }
.pm-cols .pm-ad.tall { height: 110px; }
.pm-cookie { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 46px; background: #2B3140; border-radius: 6px; box-shadow: 0 -4px 14px #0004; }
.tv { position: absolute; right: 0; bottom: 2%; width: 74%; }
.tv-screen {
  aspect-ratio: 16 / 9; background: #0E1118; border: 10px solid #1F2430; border-radius: 16px; padding: 4%;
  box-shadow: 0 30px 70px #000b, 0 0 0 1px #2E3445; overflow: hidden;
  animation: tv-glow 9s ease-in-out infinite;
}
.tv-menu { display: flex; gap: 3%; margin-bottom: 4%; }
.tv-menu i { flex: 0 0 13%; height: 7px; border-radius: 4px; background: #39404F; }
.tv-menu i.on { background: #EEF0F5; }
.tv-hero { position: relative; height: 34%; border-radius: 8px; background: linear-gradient(120deg, #22324F 0%, #3B5C99 55%, #E8A87A 100%); margin-bottom: 4%; overflow: hidden; }
.tv-hero span { position: absolute; left: 5%; bottom: 22%; width: 38%; height: 9px; border-radius: 4px; background: #fff; }
.tv-hero em { position: absolute; left: 5%; bottom: 10%; width: 14%; height: 7px; border-radius: 4px; background: #ffffffaa; }
.tv-row { display: flex; gap: 3%; margin-bottom: 3.5%; }
.tv-row i { flex: 0 0 22%; aspect-ratio: 16 / 9; border-radius: 6px; background: linear-gradient(135deg, #2D3B57, #4A6FB0); }
.tv-row i:nth-child(2) { background: linear-gradient(135deg, #5A3A52, #C77B6B); }
.tv-row i:nth-child(3) { background: linear-gradient(135deg, #2E5049, #6FB59D); }
.tv-row i:nth-child(4) { background: linear-gradient(135deg, #4D4630, #C9A35A); }
.tv-row.small i { flex-basis: 15%; aspect-ratio: 2 / 3; }
.tv-row i.focus { outline: 3px solid #fff; outline-offset: 2px; transform: scale(1.06); }
.tv-stand { width: 26%; height: 10px; margin: 10px auto 0; border-radius: 0 0 8px 8px; background: #1F2430; }
.demo figcaption { margin-top: 14px; color: var(--muted); font-size: .9rem; text-align: center; }
@keyframes page-fade { 0%, 30% { opacity: 1; transform: translate(0, 0) rotate(-2deg); } 50%, 85% { opacity: .35; transform: translate(-6%, 4%) rotate(-4deg) scale(.92); } 100% { opacity: 1; transform: translate(0, 0) rotate(-2deg); } }
@keyframes tv-glow { 0%, 30% { box-shadow: 0 30px 70px #000b, 0 0 0 1px #2E3445; } 50%, 85% { box-shadow: 0 30px 80px #4F8BFF55, 0 0 0 1px #4F8BFF; } 100% { box-shadow: 0 30px 70px #000b, 0 0 0 1px #2E3445; } }
@media (prefers-reduced-motion: reduce) { .page-mock, .tv-screen { animation: none; } .page-mock { opacity: .55; } }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.wide { font-size: 1.15rem; color: #CDD2DD; max-width: 44em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.icon { display: block; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px; background: #4F8BFF22 center / 24px no-repeat; }
.i-focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FA9FF' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 9h6M7 13h10'/%3E%3C/svg%3E"); }
.i-image { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FA9FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 17l-5-5-9 8'/%3E%3C/svg%3E"); }
.i-remote { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FA9FF' stroke-width='2' stroke-linecap='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='4'/%3E%3Ccircle cx='12' cy='8' r='2'/%3E%3Cpath d='M10 14h4M10 17h4'/%3E%3C/svg%3E"); }
.i-play { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FA9FF' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8.5v7l6-3.5z'/%3E%3C/svg%3E"); }
.i-site { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FA9FF' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E"); }
.i-magnet { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FA9FF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 3v8a6 6 0 0 0 12 0V3'/%3E%3Cpath d='M6 7h4M14 7h4'/%3E%3C/svg%3E"); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: step; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.split p { color: #CDD2DD; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); font-size: .95rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; max-width: 820px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.accent { border-color: #4F8BFF; box-shadow: 0 0 0 1px #4F8BFF inset, 0 18px 50px #4F8BFF22; }
.amount { font: 600 1.8rem "Inter Display", "Inter", sans-serif; margin: 0 0 .4em; }
:lang(zh) .amount, :lang(ja) .amount { font-family: inherit; }
.plan p:last-child { color: var(--muted); margin: 0; }
.faq { margin-top: 20px; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.4em; color: var(--accent); font-weight: 600; }
.faq details[open] summary::before { content: "−"; }
.faq p { color: var(--muted); margin: 10px 0 0 1.4em; }
.final { text-align: center; }
.final p { color: #CDD2DD; }
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: .92rem; }
.foot a { color: var(--muted); }
.foot-langs a { margin-right: 12px; text-decoration: none; }
.foot-langs a[aria-current] { color: var(--text); }

@media (max-width: 900px) {
  .hero, .split { grid-template-columns: 1fr; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid, .steps, .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; gap: 28px; }
  .page-mock { padding: 6px; }
  h1 { hyphens: auto; }
}
