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

:root {
  --bg:        #08080f;
  --bg2:       #10101a;
  --bg3:       #16162a;
  --border:    rgba(255,255,255,0.08);
  --text:      #e8e8f0;
  --muted:     #888899;
  --gold:      #c9a84c;
  --gold-soft: rgba(201,168,76,0.15);
  --indigo:    #6366f1;
  --indigo-soft: rgba(99,102,241,0.15);
  --radius:    12px;
  --max-w:     860px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header / Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}

.nav-logo .star { font-size: 20px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
}

.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang-toggle {
  color: var(--muted) !important;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: rgba(255,255,255,0.25); color: var(--text) !important; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 span {
  background: linear-gradient(135deg, #c9a84c 0%, #ffe08a 50%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== Section ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

/* ===== Product Cards ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.product-card.notipop { border-top: 3px solid var(--gold); }
.product-card.polaris  { border-top: 3px solid var(--indigo); }

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.product-card.notipop .product-icon { background: var(--gold-soft); }
.product-card.polaris  .product-icon { background: var(--indigo-soft); }

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.badge-free   { background: var(--gold-soft);   color: var(--gold);   border: 1px solid rgba(201,168,76,0.3); }
.badge-paid   { background: var(--indigo-soft); color: var(--indigo); border: 1px solid rgba(99,102,241,0.3); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.product-link:hover { opacity: 0.8; text-decoration: none; }
.product-link.gold   { background: var(--gold-soft);   color: var(--gold); }
.product-link.indigo { background: var(--indigo-soft); color: var(--indigo); }

/* ===== Features list ===== */
.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.features li::before {
  content: '✦';
  font-size: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}

.product-card.notipop .features li::before { color: var(--gold); }
.product-card.polaris  .features li::before { color: var(--indigo); }

/* ===== Profile ===== */
.profile-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.profile-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.profile-handle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.profile-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tag {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 12px;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

/* ===== Product Featured ===== */
.product-featured {
  margin-bottom: 0;
}

.product-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 640px) {
  .product-featured-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Section desc ===== */
.section-desc {
  color: var(--muted);
  font-size: 14px;
  margin-top: -28px;
  margin-bottom: 28px;
}

/* ===== Tools List ===== */
.tools-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.2s;
}

.tool-card:hover { border-color: rgba(255,255,255,0.15); }

.tool-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.tool-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.tool-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.tool-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.tool-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.tool-link:hover { text-decoration: underline; }

/* ===== Playground ===== */
.game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.game-wrapper iframe {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  max-width: 100%;
}

.game-hint {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ===== Legal Pages ===== */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.legal .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 36px 0 12px;
}

.legal p, .legal li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal ul { padding-left: 20px; }
.legal ul li { margin-bottom: 4px; }

.legal a { color: var(--gold); }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .profile-card { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
