/* TrustGeo — site styles (generated pages). Old utility pages keep style.css. */
:root {
  --bg: #060d1f;
  --bg-2: #0b1530;
  --card: rgba(255, 255, 255, .035);
  --card-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --text: #eef2ff;
  --muted: #8b9cc4;
  --accent: #9db7ff;
  --accent-2: #b69cff;
  --green: #4ade80;
  --red: #f87171;
  --radius: 18px;
  --max: 1160px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.7 var(--font); color: var(--text); overflow-x: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(91, 110, 255, .16), transparent 60%),
              radial-gradient(900px 500px at -10% 30%, rgba(147, 51, 234, .10), transparent 60%), var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
/* Japanese / Korean: don't break headings in the middle of a word. */
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; overflow-wrap: anywhere; }
.ic { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em;
  border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: #0a1124; box-shadow: 0 8px 30px rgba(157, 183, 255, .25); }
.btn-primary:hover { box-shadow: 0 10px 40px rgba(157, 183, 255, .4); }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--card-2); }
.btn-lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn-sm { padding: .55em 1.05em; font-size: .87rem; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50; display: flex; align-items: center; gap: 1.5rem;
  width: min(var(--max), calc(100% - 24px)); margin: 12px auto 0; padding: .6rem .7rem .6rem 1.3rem;
  background: rgba(10, 18, 40, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -.03em; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a, .menu nav a { color: var(--muted); font-weight: 600; font-size: .93rem; }
.nav-links a:hover, .menu nav a:hover { color: var(--text); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: .5rem; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang, .menu { position: relative; }
.lang summary, .menu summary {
  display: flex; align-items: center; gap: .35rem; padding: .45rem .65rem; border-radius: 12px;
  color: var(--muted); font-weight: 700; font-size: .85rem;
}
.lang summary:hover, .menu summary:hover, .lang[open] summary, .menu[open] summary { background: var(--card-2); color: var(--text); }
.lang ul, .menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: .4rem; list-style: none; min-width: 170px;
  background: #0d1834; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.lang a, .menu nav a { display: block; padding: .5rem .75rem; border-radius: 9px; color: var(--text); font-size: .92rem; }
.lang a:hover, .menu nav a:hover { background: var(--card-2); text-decoration: none; }
.lang a[aria-current] { color: var(--accent); }
.menu { display: none; }

/* ---------- layout ---------- */
main { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 5.5rem 0 1rem; scroll-margin-top: 90px; }
.section > h2, .section > .eyebrow, .section-sub { text-align: center; }
.section-sub { color: var(--muted); max-width: 620px; margin: 0 auto 2.5rem; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 560px; }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: border-color .25s, transform .25s, background .25s; }
.card:hover { border-color: rgba(157, 183, 255, .3); background: var(--card-2); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.badge { font-size: .68rem; vertical-align: middle; padding: .2em .6em; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a1124; font-weight: 800; letter-spacing: .03em; }
/* Only hidden once site.js has run, so content always shows without JS (and for crawlers). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- moon (pure CSS, replaces the old PNG) ---------- */
.moon {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; aspect-ratio: 1;
  width: clamp(180px, 24vw, 330px); right: 4%; top: 30px;
  background:
    radial-gradient(circle at 30% 34%, rgba(60, 70, 100, .22) 0 6%, transparent 6.6%),
    radial-gradient(circle at 63% 26%, rgba(60, 70, 100, .18) 0 4%, transparent 4.6%),
    radial-gradient(circle at 56% 60%, rgba(60, 70, 100, .2) 0 10%, transparent 10.8%),
    radial-gradient(circle at 24% 66%, rgba(60, 70, 100, .16) 0 4.6%, transparent 5.2%),
    radial-gradient(circle at 76% 47%, rgba(60, 70, 100, .14) 0 3%, transparent 3.6%),
    radial-gradient(circle at 44% 82%, rgba(60, 70, 100, .12) 0 3.5%, transparent 4%),
    radial-gradient(circle at 34% 30%, #fbfcff 0%, #dfe5f2 38%, #aab4cc 72%, #7e89a6 100%);
  box-shadow: inset -34px -22px 60px rgba(6, 13, 31, .62), inset 8px 6px 24px rgba(255, 255, 255, .35),
              0 0 70px 14px rgba(170, 190, 255, .22), 0 0 220px 60px rgba(110, 130, 255, .12);
  animation: moon-float 10s ease-in-out infinite;
  transform: translateY(var(--moon-y, 0));
}
.moon::after {  /* faint halo ring */
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  border: 1px solid rgba(190, 205, 255, .1); box-shadow: 0 0 40px rgba(170, 190, 255, .08) inset;
}
.moon-sm { width: clamp(110px, 12vw, 170px); right: 6%; top: 18px; opacity: .85; }
@keyframes moon-float { 50% { translate: 0 -12px; } }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; padding: 5.5rem 0 3rem; }
.hero h1 .accent { display: block; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2rem 0 1rem; }
.hero-note { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .92rem; }
.hero-note .ic { color: var(--green); }
.hero-art { margin: 0; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.hero-art img { border-radius: 16px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-width: 640px; margin: 0 auto; }
.stats div { text-align: center; }
.stats strong { display: flex; justify-content: center; align-items: center; gap: .3rem; font-size: 1.7rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: .9rem; }
.star { color: #fbbf24; fill: #fbbf24; }

.feature-ic, .step-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 1rem; color: var(--accent);
  background: linear-gradient(135deg, rgba(157, 183, 255, .16), rgba(182, 156, 255, .1)); border: 1px solid rgba(157, 183, 255, .2);
}

.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-n { position: absolute; top: 1.2rem; right: 1.3rem; font-weight: 800; font-size: 2rem; color: rgba(255, 255, 255, .07); }
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -1rem; width: 1rem; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split > div > h2, .split > div > .eyebrow { text-align: left; }
.split p { color: var(--muted); }
.split figure { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .ic { color: var(--green); margin-top: .3em; }

.table-wrap { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: .95rem 1.1rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare th[scope=row] { text-align: left; font-weight: 600; }
.compare thead th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.compare .hl { color: var(--text); background: rgba(157, 183, 255, .08); }
.compare td:nth-child(2) { background: rgba(157, 183, 255, .05); }
.yes { color: var(--green); } .no { color: var(--red); opacity: .8; } .some { color: #fbbf24; font-size: .85rem; font-weight: 600; }
.yes svg, .no svg { margin: auto; }

/* ---------- pricing ---------- */
.billing { display: flex; width: max-content; max-width: 100%; margin: 1.5rem auto 2rem; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.billing button { border: 0; background: none; color: var(--muted); font: 700 .9rem var(--font); padding: .6em 1.2em; border-radius: 999px; cursor: pointer; }
.billing button.active { background: #fff; color: #0a1124; }
.save { font-size: .72rem; color: var(--green); }
.billing .active .save { color: #15803d; }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 1.2rem; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan .ticks { flex: 1; color: var(--text); font-size: .95rem; }
.plan-pro { border-color: rgba(157, 183, 255, .45); background: linear-gradient(180deg, rgba(157, 183, 255, .1), rgba(255, 255, 255, .02)); }
.plan .price { font-size: 2.8rem; line-height: 1.1; font-weight: 800; margin: .5rem 0 .2rem; color: var(--text); }
.plan .price span { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: .3rem; }
.plan .price .amount { font-size: inherit; color: var(--text); margin: 0; }
.plan .price-note { font-size: .88rem; margin-bottom: .6rem; }
.ribbon { position: absolute; top: -12px; right: 18px; font-size: .75rem; font-weight: 800; padding: .3em .8em; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a1124; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: 5.5rem 0 1rem; scroll-margin-top: 90px; }
.faq h2 { text-align: center; margin-bottom: 1.6rem; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: .6rem; }
.faq-item summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 700; }
.faq-item summary .ic { transition: transform .25s; color: var(--muted); margin-top: .25em; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item > div { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; margin: 5.5rem 0 3rem; padding: 4rem 1.5rem; border: 1px solid var(--line); border-radius: 26px;
  background: radial-gradient(600px 300px at 50% 120%, rgba(157, 183, 255, .25), transparent), var(--card); }
.cta-band p { color: var(--muted); }
.cta-band .moon { z-index: 0; opacity: .5; }
.cta-band > :not(.moon) { position: relative; }
.cta-note { font-size: .88rem; margin-top: 1rem; }

/* ---------- blog / articles ---------- */
.page { padding-top: 1rem; }
.page-hero { position: relative; padding: 4.5rem 0 2rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chips button { border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 .88rem var(--font); padding: .5em 1em; border-radius: 999px; cursor: pointer; }
.chips button.active { background: #fff; color: #0a1124; border-color: #fff; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s; }
.post-card:hover { transform: translateY(-3px); border-color: rgba(157, 183, 255, .35); }
.post-card a { color: inherit; display: block; height: 100%; text-decoration: none; }
.post-card img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; }
.post-body { padding: 1.1rem 1.2rem 1.4rem; }
.post-body h3 { font-size: 1.08rem; margin-bottom: .45em; }
.post-body p:last-child { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); margin-bottom: .7rem; }
.tag { font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .25em .7em; border-radius: 999px; background: var(--card-2); color: var(--text); }
.tag-hacks { background: rgba(99, 102, 241, .22); } .tag-features { background: rgba(20, 184, 166, .2); }
.tag-guides { background: rgba(219, 39, 119, .2); } .tag-tools { background: rgba(234, 88, 12, .22); }
.tag-en { background: rgba(255, 255, 255, .1); }
.post-card[hidden] { display: none; }

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--muted); padding: 2rem 0 0; }
.crumbs a { color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; padding-top: 1.5rem; }
.prose { max-width: 760px; font-size: 1.06rem; }
.prose h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #c9d3ee; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.post-hero { margin: 1.5rem 0 2rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); margin: 0 auto; }
.post-hero img { border-radius: var(--radius); border: 1px solid var(--line); }
.install-box { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; margin: 2rem 0; border-radius: 16px;
  border: 1px solid rgba(157, 183, 255, .35); background: linear-gradient(135deg, rgba(157, 183, 255, .12), rgba(182, 156, 255, .06)); }
.install-box > .ic { color: var(--accent); }
.install-box div { flex: 1; display: grid; }
.install-box span { color: var(--muted); font-size: .9rem; }
.prose .faq { padding-top: 2rem; }
.prose .faq h2 { text-align: left; }
.toc-inner { position: sticky; top: 100px; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.toc-inner > p { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0 0 1.2rem; padding-left: 1.1em; font-size: .9rem; }
.toc li { margin-bottom: .5em; }
.toc a:not(.btn) { color: #c9d3ee; }
.related { padding-top: 4rem; }

/* ---------- footer ---------- */
.footer { width: min(var(--max), calc(100% - 32px)); margin: 2rem auto 0; padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid p { color: var(--muted); font-size: .92rem; max-width: 280px; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-grid div > a:not(.btn):not(.logo) { display: block; color: #c9d3ee; font-size: .92rem; margin-bottom: .55rem; }
.footer-langs { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 2.5rem 0 1rem; font-size: .85rem; }
.footer-langs a { color: var(--muted); }
.footer-legal { color: var(--muted); font-size: .8rem; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-3, .posts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .nav-right { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; text-align: left; }
  .split { grid-template-columns: 1fr; }
  .moon { right: -40px; top: 10px; opacity: .55; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .grid-3, .posts, .steps, .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav { padding-left: 1rem; gap: .6rem; }
  .nav-right .btn { display: none; }
  .section, .faq { padding-top: 4rem; }
  .install-box { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .billing button { padding: .55em .8em; font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
