/* ==========================================================================
   VoyTrace — Marketing Website Styles
   Modern dark-first design with light theme, glassmorphism, aurora gradients
   ========================================================================== */

/* ---- Reset & Tokens ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --maxw: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Dark theme (default) */
  --bg: #07070d;
  --bg-2: #0d0d18;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.09);
  --text: #f2f3f8;
  --text-dim: #9a9cb0;
  --text-faint: #62647a;

  --accent: #7c5cff;
  --accent-2: #4ad8ff;
  --accent-3: #ff5c8a;
  --gold: #ffc861;

  --aurora-1: rgba(124,92,255,.42);
  --aurora-2: rgba(74,216,255,.30);
  --aurora-3: rgba(255,92,138,.26);

  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --glow: 0 0 60px -10px rgba(124,92,255,.5);

  --grad-text: linear-gradient(120deg,#a78bfa 0%,#4ad8ff 50%,#ff8fb1 100%);
  --grad-accent: linear-gradient(120deg,#7c5cff,#4ad8ff);

  --nav-h: 68px;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #ffffff;
  --surface: rgba(20,20,40,.035);
  --surface-2: rgba(20,20,40,.06);
  --border: rgba(20,20,40,.10);
  --text: #16172a;
  --text-dim: #565a72;
  --text-faint: #8a8da3;
  --aurora-1: rgba(124,92,255,.22);
  --aurora-2: rgba(74,216,255,.18);
  --aurora-3: rgba(255,92,138,.16);
  --shadow: 0 20px 50px -24px rgba(40,40,80,.25);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.is-cjk body { font-family: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
html[lang="ja"] body { font-family: 'Inter', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
}
.eyebrow::before { content:''; width: 24px; height: 1px; background: currentColor; opacity:.5; }
.section-title { font-size: clamp(1.8rem,4vw,2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.section-desc { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; margin-top: 18px; }
.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Aurora background ---- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .9;
  animation: drift 22s ease-in-out infinite;
}
.aurora .a1 { width: 50vw; height: 50vw; top: -10%; left: -8%; background: var(--aurora-1); }
.aurora .a2 { width: 42vw; height: 42vw; top: 20%; right: -10%; background: var(--aurora-2); animation-delay: -7s; }
.aurora .a3 { width: 38vw; height: 38vw; bottom: -12%; left: 25%; background: var(--aurora-3); animation-delay: -14s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(4%,6%) scale(1.08); }
  66% { transform: translate(-3%,4%) scale(.95); }
}
[data-theme="light"] .aurora span { opacity: .7; }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: .92rem; color: var(--text-dim); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Icon buttons */
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  transition: all .2s var(--ease); position: relative;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

/* Language dropdown */
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s var(--ease);
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: block; width: 100%; text-align: left; padding: 9px 14px; border-radius: 9px;
  font-size: .9rem; color: var(--text-dim); transition: all .15s;
}
.lang-option:hover { background: var(--surface); color: var(--text); }
.lang-option.active { color: var(--accent-2); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 13px; font-weight: 600; font-size: .95rem;
  transition: all .25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(124,92,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(124,92,255,.7); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: 15px; }

/* Mobile nav toggle */
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + 60px); padding-bottom: 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px; font-size: .82rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 { font-size: clamp(2.4rem,6vw,4.2rem); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 24px; }
.hero p.lead { font-size: 1.12rem; color: var(--text-dim); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-platforms { font-size: .85rem; color: var(--text-faint); }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-orb {
  position: relative; width: 340px; height: 340px; border-radius: 50%;
  display: grid; place-items: center; transition: transform .2s;
}
.hero-orb::before {
  content:''; position: absolute; inset: -30px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--aurora-1), var(--aurora-2), var(--aurora-3), var(--aurora-1));
  filter: blur(30px); opacity: .8; animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-orb img { position: relative; width: 200px; height: 200px; border-radius: 44px; box-shadow: var(--glow), var(--shadow); z-index: 2; }
.hero-ring { position: absolute; border-radius: 50%; border: 1px solid var(--border); }
.hero-ring.r1 { inset: -10px; }
.hero-ring.r2 { inset: 20px; border-color: rgba(124,92,255,.15); }
.orbit-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; top: -5px; left: 50%; margin-left: -5px; }
.orbit-dot.d1 { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.orbit-track { position: absolute; inset: 20px; animation: spin 9s linear infinite; }
.orbit-track.slow { inset: -10px; animation-duration: 18s; }

/* Stats strip */
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--border); }
.stat-item .num { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item .lbl { font-size: .82rem; color: var(--text-faint); margin-top: 2px; }

/* ---- Screenshot frame ---- */
.shot-frame {
  margin-top: 30px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  aspect-ratio: 16 / 9; position: relative;
}
.shot-frame .shot-inner {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,92,255,.08), rgba(74,216,255,.06));
  color: var(--text-faint); font-size: .9rem; text-align: center; padding: 20px;
}
.shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Cloud section ---- */
.cloud-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 50px; }
.providers { display: flex; align-items: center; gap: 16px; margin-top: 46px; flex-wrap: wrap; }
.provider { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; transition: transform .2s; }
.provider:hover { transform: translateY(-2px); }
.provider img { width: 26px; height: 26px; border-radius: 7px; }
.provider .tag { font-size: .7rem; padding: 2px 8px; border-radius: 100px; background: rgba(74,216,255,.12); color: var(--accent-2); font-weight: 600; }
.provider .tag.soon { background: rgba(255,200,97,.12); color: var(--gold); }

/* ---- Feature card ---- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.card::before {
  content:''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), var(--surface-2), transparent 60%);
}
.card:hover { border-color: rgba(124,92,255,.3); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(124,92,255,.6);
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--text-dim); font-size: .95rem; }

.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 50px; }

/* ---- Visualizer showcase ---- */
.viz-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-top: 50px; }
.viz-demo { position: relative; height: 360px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); display: grid; place-items: center; }
.viz-cover { width: 150px; height: 150px; border-radius: 50%; background: var(--grad-accent); box-shadow: var(--glow); position: relative; z-index: 2; display:grid;place-items:center; }
.viz-cover svg { width: 56px; height: 56px; color: rgba(255,255,255,.85); }
.viz-halo { position: absolute; width: 230px; height: 230px; border-radius: 50%; border: 2px solid rgba(124,92,255,.25); animation: breathe 3.5s ease-in-out infinite; }
@keyframes breathe { 0%,100%{ transform: scale(1); opacity:.6 } 50%{ transform: scale(1.12); opacity:.2 } }
.viz-particle { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); top: 50%; left: 50%; }
.viz-orbit { position: absolute; top: 50%; left: 50%; transform-origin: 0 0; animation: spin 6s linear infinite; }
.viz-orbit:nth-child(2) { animation-duration: 9s; animation-direction: reverse; }
.viz-orbit:nth-child(3) { animation-duration: 7s; }

/* ---- Skins ---- */
.skins-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 50px; }
.skin-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s; cursor: default; will-change: transform;
}
.skin-card:hover { box-shadow: var(--shadow); }
.skin-preview { height: 180px; position: relative; display: grid; place-items: center; overflow: hidden; }
.skin-preview .disc { width: 90px; height: 90px; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.4); position: relative; }
.skin-preview .disc::after { content:''; position:absolute; inset:34%; border-radius:50%; background: rgba(255,255,255,.15); }
.skin-info { padding: 18px 20px; background: var(--surface); }
.skin-info h4 { font-size: 1rem; font-weight: 700; }
.skin-info p { font-size: .82rem; color: var(--text-faint); }

/* skin palettes */
.sp-1 { background: linear-gradient(135deg,#1e1b4b,#4338ca,#7c3aed); }
.sp-2 { background: linear-gradient(135deg,#1c1917,#44403c,#0f172a); }
.sp-3 { background: linear-gradient(135deg,#042f2e,#0e7490,#06b6d4); }
.sp-4 { background: linear-gradient(135deg,#f0f9ff,#e0f2fe,#bae6fd); }
.sp-5 { background: linear-gradient(135deg,#170828,#581c87,#db2777); }
.sp-6 { background: linear-gradient(135deg,#14532d,#166534,#65a30d); }

/* ---- Premium table ---- */
.prem-wrap { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 840px; margin-left:auto; margin-right:auto; }
.prem-col { border-radius: var(--radius); border: 1px solid var(--border); padding: 36px 30px; background: var(--surface); position: relative; }
.prem-col.pro { border-color: rgba(124,92,255,.35); background: linear-gradient(180deg, rgba(124,92,255,.08), var(--surface)); }
.prem-col.pro::before { content:''; position:absolute; top:-1px; left:-1px; right:-1px; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--grad-accent); }
.prem-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.prem-head .tier { font-size: 1.1rem; font-weight: 700; }
.prem-head .price { font-size: .9rem; color: var(--text-faint); }
.prem-list { list-style: none; display: grid; gap: 14px; }
.prem-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-dim); }
.prem-list li .ico { width: 20px; height: 20px; flex-shrink: 0; display:grid; place-items:center; }
.prem-list .yes { color: var(--accent-2); }
.prem-list .no { color: var(--text-faint); }

/* ---- CTA ---- */
.cta-band { text-align: center; padding: 90px 0; }
.cta-band .inner {
  border-radius: 28px; padding: 70px 40px;
  background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(74,216,255,.06));
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); margin-bottom: 30px; font-size: 1.05rem; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 40px; position: relative; z-index: 1; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 10px; }
.footer-brand .nm { font-weight: 700; font-size: 1.15rem; }
.footer p { color: var(--text-faint); font-size: .88rem; max-width: 360px; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-meta a { color: var(--text-dim); font-size: .88rem; transition: color .2s; }
.footer-meta a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--text-faint); }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 320px; order: -1; }
  .hero-orb { width: 270px; height: 270px; }
  .viz-wrap { grid-template-columns: 1fr; }
  .cloud-grid, .feat-grid, .skins-grid { grid-template-columns: repeat(2,1fr); }
  .prem-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px;
  }
  .nav-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--border);
  }
  .nav-toggle span { display:block; width:18px; height:2px; background: var(--text); position: relative; transition: .25s; }
  .nav-toggle span::before, .nav-toggle span::after { content:''; position:absolute; left:0; width:18px; height:2px; background: var(--text); transition: .25s; }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .nav-toggle.active span { background: transparent; }
  .nav-toggle.active span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle.active span::after { top: 0; transform: rotate(-45deg); }
}
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .cloud-grid, .feat-grid, .skins-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { flex-direction: column; }
  .footer-meta { text-align: left; }
  .brand .txt { display: none; }
}
