:root {
  --bg: #0a0a0f;
  --text: #ffffff;
  --muted: #A7A6B8;
  --purple: #BC42FF;
  --cyan: #14B4E6;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.12);
  --danger: #ff6b8a;
  --ok: #30E0A1;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: Inter, "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  min-height: 100%;
}
a { color: #c4b5fd; text-decoration: none; }
a:hover { color: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Glass header (SEOAI pattern) — sits over hero plate on landing */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid rgba(188, 66, 255, 0.18);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; min-height: var(--header-h);
}
.brand {
  font-weight: 800; letter-spacing: 0.02em; font-size: 1.15rem;
  background: linear-gradient(135deg, #fff, #c4b5fd 40%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
  padding: 3px; background: rgba(10,10,15,0.45);
}
.lang-switch a {
  min-width: 36px; text-align: center; padding: 5px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted);
}
.lang-switch a.on,
.lang-switch a[aria-current="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(188,66,255,0.85), rgba(20,180,230,0.75));
}
.lang-switch a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700;
  border: none; cursor: pointer; font-size: 0.95rem; color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, #8B5CF6 45%, var(--cyan) 100%);
  box-shadow: 0 6px 24px rgba(188,66,255,0.35);
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
  background: rgba(10,10,15,0.78); border: 1px solid rgba(255,255,255,0.35);
  box-shadow: none;
}

/* Full-bleed AI plate — same structure as seoai theatre-wrap */
.theatre-wrap {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  min-height: min(92vh, 820px);
  background-color: #0a0a0f;
  background-image:
    linear-gradient(180deg, rgba(10,10,15,0.28) 0%, rgba(10,10,15,0.55) 52%, rgba(10,10,15,0.96) 100%),
    url("/static/meo-landing-plate.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.theatre-wrap::before,
.theatre-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  animation: theatreDrift 16s ease-in-out infinite alternate;
  opacity: 0.28;
}
.theatre-wrap::before {
  width: 50vw; height: 50vw; max-width: 640px; max-height: 640px;
  top: -14%; left: 50%; transform: translateX(-70%);
  background: radial-gradient(circle, rgba(188,66,255,0.22) 0%, transparent 70%);
}
.theatre-wrap::after {
  width: 42vw; height: 42vw; max-width: 520px; max-height: 520px;
  top: 10%; right: -10%;
  background: radial-gradient(circle, rgba(20,180,230,0.16) 0%, transparent 70%);
  animation-delay: -5s;
}
@keyframes theatreDrift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  100% { transform: translate(3%, 5%) scale(1.06); opacity: 0.65; }
}
.hero-theatre {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 88px 0 64px;
  text-align: center;
}
.hero-theatre h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px;
  font-weight: 800;
  text-shadow: 0 2px 28px rgba(0,0,0,0.45);
}
.hero-theatre h1 .grad {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-theatre p {
  color: rgba(231,230,245,0.88); font-size: 1.1rem; max-width: 640px;
  margin: 0 auto 28px; text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pill {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; color: rgba(231,230,245,0.85);
  border: 1px solid rgba(255,255,255,0.18); background: rgba(10,10,15,0.35);
  backdrop-filter: blur(8px);
}

.section { padding: 48px 0; }
.section h2 { margin: 0 0 10px; font-size: 1.6rem; }
.section .sub { color: var(--muted); margin: 0 0 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid3 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.footer {
  border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted);
  font-size: 0.85rem; text-align: center; margin-top: 40px;
}
.auth-box { max-width: 420px; margin: 56px auto; }
.auth-box h1 { margin: 0 0 8px; font-size: 1.6rem; }
.auth-box .sub { color: var(--muted); margin-bottom: 24px; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 14px 0 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(0,0,0,0.35); color: #fff;
  font-size: 1rem;
}
input:focus, textarea:focus { outline: 1px solid rgba(188,66,255,0.55); }
.error {
  background: rgba(255,107,138,0.12); border: 1px solid rgba(255,107,138,0.4);
  color: #ffb3c1; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 0.9rem;
}
.flash {
  background: rgba(48,224,161,0.1); border: 1px solid rgba(48,224,161,0.35);
  color: #9af0ce; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 0.9rem;
}
.score-ring {
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--purple) calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
  margin: 0 auto 12px;
}
.score-ring > span {
  width: 92px; height: 92px; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
}
.findings { list-style: none; padding: 0; margin: 0; }
.findings li {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  background: rgba(255,255,255,0.03);
}
.findings .sev {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.sev-high { color: var(--danger); }
.sev-medium { color: #fbbf24; }
.sev-low { color: var(--cyan); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.muted { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .theatre-wrap { min-height: 78vh; }
  .hero-theatre { padding: 64px 0 48px; }
}
