/* Sollux Labs — shared styles */

:root {
  --bg: #fffaf3;
  --bg-soft: #fff1e0;
  --surface: #ffffff;
  --border: #f1dcc4;
  --text: #2a1a0e;
  --muted: #7a5c45;
  --accent: #ff6a13;
  --accent-2: #ffb020;
  --accent-3: #ff3d6e;
  --accent-ink: #ffffff;
  --shadow: 0 10px 30px rgba(140, 70, 10, 0.10);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140d08;
    --bg-soft: #1d140d;
    --surface: #221810;
    --border: #3a2a1d;
    --text: #fbeee0;
    --muted: #c3a68c;
    --accent: #ff7a2a;
    --accent-2: #ffc043;
    --accent-3: #ff5c86;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #140d08;
  --bg-soft: #1d140d;
  --surface: #221810;
  --border: #3a2a1d;
  --text: #fbeee0;
  --muted: #c3a68c;
  --accent: #ff7a2a;
  --accent-2: #ffc043;
  --accent-3: #ff5c86;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: "Sora", "Inter", system-ui, sans-serif; line-height: 1.15; letter-spacing: -0.02em; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 55%, transparent) 0%, transparent 65%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-3) 30%, transparent) 0%, transparent 65%);
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); margin: 22px 0 18px; max-width: 900px; }
.gradient-text {
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 45%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 56px; }
.stat strong { display: block; font-family: "Sora", sans-serif; font-size: 34px; color: var(--text); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 44px); margin: 10px 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- What we make ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 22px; margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
}
.card-icon svg { width: 26px; height: 26px; }
.ic-3d { background: linear-gradient(135deg, #ff6a13, #ff3d6e); }
.ic-2d { background: linear-gradient(135deg, #ffb020, #ff6a13); }
.ic-sw { background: linear-gradient(135deg, #ff3d6e, #a63dff); }

/* ---------- Games ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
.game:hover { transform: translateY(-4px); border-color: var(--accent); }
.game[hidden] { display: none; }
.game-art {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.95); font-family: "Sora", sans-serif; font-weight: 700; font-size: 26px;
  text-align: center; padding: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.game-art .tag {
  position: absolute; top: 12px; left: 12px;
  font-family: "Inter", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.28); text-shadow: none;
}
.g1 { background: linear-gradient(135deg, #7ed957, #2bb3a3); }
.g2 { background: linear-gradient(135deg, #3b2a8f, #ff3d6e); }
.g3 { background: linear-gradient(135deg, #ffb020, #ff6a13); }
.g4 { background: linear-gradient(135deg, #ff9a5a, #c2477d); }
.g5 { background: linear-gradient(135deg, #1e6fb8, #28c2c2); }
.g6 { background: linear-gradient(135deg, #3a4a5c, #ff7a2a); }
.g7 { background: linear-gradient(135deg, #e04c2f, #ffb020); }
.g8 { background: linear-gradient(135deg, #8a5cf6, #ff6ab0); }
.g9 { background: linear-gradient(135deg, #2f9e68, #b4d94c); }
.game-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 19px; margin: 0 0 6px; }
.game-body p { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
.game-body .play { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.game-body .play svg { width: 16px; height: 16px; }

/* ---------- Source code ---------- */
.source {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  padding: 48px; box-shadow: var(--shadow);
}
.source h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 14px; }
.source p { color: var(--muted); margin: 0 0 24px; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.code-window {
  background: #1a120c; color: #f5e6d6; border-radius: 16px; overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14px;
  border: 1px solid #3a2a1d;
}
.code-bar { display: flex; gap: 7px; padding: 12px 14px; background: #241910; }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-bar i:nth-child(1) { background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3) { background: #28c840; }
.code-window pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; line-height: 1.7; }
.c-k { color: #ff9a5a; } .c-s { color: #ffd479; } .c-c { color: #8c7461; } .c-f { color: #ff7aa2; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 14px; }
.contact p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.email-big {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Sora", sans-serif; font-size: clamp(20px, 3.4vw, 30px); font-weight: 700;
  padding: 18px 30px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--accent); color: var(--text);
}
.email-big:hover { text-decoration: none; background: var(--accent); color: #fff; }
.email-big svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 88px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .note {
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 16px 20px; color: var(--muted);
}

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.not-found h1 { font-size: clamp(80px, 18vw, 160px); margin: 0; }
.not-found p { color: var(--muted); margin: 8px 0 28px; font-size: 19px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .games { grid-template-columns: repeat(2, 1fr); }
  .source { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 17px; }
  .hero { padding: 64px 0 60px; }
  section { padding: 64px 0; }
  .grid-3, .games { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
  .source { padding: 24px; border-radius: 20px; }
  .email-big { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game { transition: none; }
}

.biz-info { display: flex; flex-direction: column; gap: 4px; }
.biz-info span + span { font-size: 13px; opacity: .85; }

.lang-toggle { width: auto; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; }
:root[lang="ko"] body { word-break: keep-all; }

/* ---------- Featured & Lab ---------- */
.games.featured .game-art { aspect-ratio: 4 / 3; font-size: 32px; }
.lab-list { display: grid; gap: 10px; }
.lab-item {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--border); color: var(--text);
}
.lab-item:hover { text-decoration: none; border-color: var(--accent); border-style: solid; }
.lab-item svg { width: 18px; height: 18px; color: var(--accent); }
.lab-tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.lab-desc { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) {
  .lab-item { grid-template-columns: auto 1fr auto; }
  .lab-desc { grid-column: 1 / -1; grid-row: 2; }
}

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.social svg { color: #ff0033; width: 20px; height: 20px; }
.social svg.tt { color: var(--text); }

/* ---------- Follow ---------- */
.follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.follow-card {
  display: flex; align-items: center; gap: 18px; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text); transition: transform .2s ease, border-color .2s ease;
}
.follow-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); }
.follow-card svg { width: 44px; height: 44px; flex: none; }
.follow-card.yt svg { color: #ff0033; }
.follow-card div { display: flex; flex-direction: column; flex: 1; }
.follow-card strong { font-family: "Sora", sans-serif; font-size: 22px; }
.follow-card span { color: var(--muted); font-size: 15px; }
.follow-card em { font-style: normal; font-weight: 600; color: var(--accent); }
@media (max-width: 720px) {
  .follow-grid { grid-template-columns: 1fr; }
  .follow-card em { display: none; }
}
