@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:        #08080F;
  --surface:   #13131F;
  --border:    #1E1E2E;
  --cyan:      #00C0E8;
  --purple:    #7B2FBE;
  --gradient:  linear-gradient(135deg, #00C0E8, #7B2FBE);
  --text:      #FFFFFF;
  --muted:     #9EA0A8;
  --radius:    12px;
  --font:      'Inter', system-ui, sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav img.logo { height: 42px; object-fit: contain; }

nav .site-title {
  font-size: 1.37rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  margin-left: 16px;
}

nav .nav-links { margin-left: auto; display: flex; gap: 24px; }
nav .nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav .nav-links a:hover { color: var(--cyan); }

/* ── Main ── */
main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ── Page header ── */
.page-header {
  text-align: center;
  margin-bottom: 48px;
}
.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.page-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--muted);
}
.form-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--cyan); }
.form-group input::placeholder { color: #4a4a5a; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── Section label ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: center;
}

/* ── Menu grid ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 240px);
  gap: 24px;
  justify-content: center;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  aspect-ratio: 1 / 1;
  justify-content: center;
  text-align: center;
}
.menu-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,192,232,0.12);
}
.menu-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.menu-card .card-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.menu-card .card-sub {
  font-size: 0.8rem;
  color: var(--muted);
}
.menu-card--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ── Embed container ── */
.embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 32px;
}

/* ── CTA row ── */
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}
.cta-row .btn { min-width: 200px; }

/* ── Banner ── */
.banner {
  background: linear-gradient(135deg, rgba(0,192,232,0.12), rgba(123,47,190,0.12));
  border: 1px solid rgba(0,192,232,0.3);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}
.banner strong { color: var(--cyan); }

/* ── Status / error ── */
.status-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 220px;
  color: var(--muted);
  font-size: 0.9rem;
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: 24px;
  padding: 48px 24px;
}
.error-page h1 {
  font-size: 2rem;
  font-weight: 700;
}
.error-icon {
  font-size: 3.5rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  main { padding: 32px 16px; }
  .page-header h1 { font-size: 1.6rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { min-width: unset; }
}
