:root {
  --bg: #0e1118;
  --bg-soft: #151a25;
  --text: #f6f2ea;
  --muted: #aaa2b4;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.08);
  --accent: #e8c16a;
  --accent-2: #8fd6ff;
  --accent-3: #df8cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(143, 214, 255, 0.18), transparent 32%),
    radial-gradient(circle at 80% 5%, rgba(223, 140, 255, 0.16), transparent 34%),
    radial-gradient(circle at 60% 80%, rgba(232, 193, 106, 0.12), transparent 38%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

#particle-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.88;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom, rgba(14,17,24,0.78), rgba(14,17,24,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #11131a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(232,193,106,0.35);
}

.brand-sub { color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}
.nav a:hover { color: var(--text); transform: translateY(-1px); }
.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

.section-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: 72px 0 52px;
}

.eyebrow {
  color: var(--accent);
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
h3 { font-size: 22px; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.85; }
.lead { max-width: 690px; font-size: clamp(16px, 1.8vw, 19px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #11131a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 46px rgba(143,214,255,0.20);
}
.button.ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
}

.glass-card, .feature-card, .wide-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius-xl);
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -72px;
  top: -72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,193,106,0.45), transparent 68%);
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}
.status-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7cffb2;
  box-shadow: 0 0 18px rgba(124,255,178,0.8);
}
.hero-card h2 { margin-top: 72px; margin-bottom: 0; font-size: 54px; }
.kana { color: var(--accent-2); margin-bottom: 28px; }
dl { margin: 0; display: grid; gap: 16px; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 700; }

.split-section, .creative-section, .mood-board, .closing-section {
  padding: 74px 0;
}
.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.card-grid { display: grid; gap: 18px; }
.feature-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(232,193,106,0.08), transparent 55%);
  opacity: 0;
  transition: opacity 180ms ease;
}
.feature-card:hover::before { opacity: 1; }
.card-number { color: var(--accent-2); font-weight: 900; letter-spacing: 0.08em; }

.creative-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.creative-copy p { max-width: 600px; }
.code-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
pre {
  margin: 0;
  padding: 32px;
  color: #dff4ff;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.8;
  white-space: pre-wrap;
}
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.mood-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.wide-card {
  min-height: 300px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-xl);
}
.mystery-card {
  background:
    linear-gradient(145deg, rgba(20, 24, 38, 0.84), rgba(70, 42, 88, 0.34)),
    radial-gradient(circle at 85% 10%, rgba(223,140,255,0.26), transparent 30%);
}
.note-card {
  background:
    linear-gradient(145deg, rgba(20, 24, 38, 0.84), rgba(60, 70, 48, 0.34)),
    radial-gradient(circle at 20% 90%, rgba(232,193,106,0.25), transparent 34%);
}

.closing-section {
  text-align: center;
  padding-bottom: 112px;
}
.closing-section p { max-width: 760px; margin-left: auto; margin-right: auto; }
.closing-section .button { margin-top: 22px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { margin: 0; font-size: 13px; }

@media (max-width: 850px) {
  .site-header { align-items: flex-start; }
  .nav { display: none; }
  .hero, .split-section, .creative-section, .mood-board { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-card h2 { margin-top: 44px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #particle-field { display: none; }
}
