:root {
  --bg: #080b0f;
  --surface: #0f1620;
  --panel: #121c27;
  --card: #151f29;
  --border: rgba(255,255,255,0.08);
  --accent: #00e5ff;
  --accent2: #7c3aed;
  --text: #e9f6ff;
  --muted: #8fa4b6;
  --success: #4ade80;
  --danger: #fb7185;
  --shadow: 0 30px 80px rgba(0,0,0,0.28);
  font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, rgba(0,229,255,0.14), transparent 23%),
              radial-gradient(circle at 20% 20%, rgba(124,58,237,0.12), transparent 26%),
              linear-gradient(180deg, #07101a 0%, #04080d 100%);
  color: var(--text);
}

body {
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.site-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.brand {
  display: grid;
  gap: 6px;
}

.brand-mark {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.brand-copy {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  transition: all 0.18s ease;
}

.nav-links a:hover {
  border-color: rgba(0,229,255,0.24);
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 42px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,229,255,0.08);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.02;
  max-width: 13ch;
}

p {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #020617;
  box-shadow: 0 18px 45px rgba(0,229,255,0.18);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 28px;
}

.panel-title {
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.status-block {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.status-active {
  border-color: rgba(74,222,128,0.25);
}

.status-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-value {
  font-size: 2rem;
  margin: 0;
  color: var(--text);
}

.status-text {
  margin: 0;
  color: var(--muted);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0,229,255,0.15);
  color: var(--accent);
  font-size: 1.2rem;
}

.feature-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.form-panel, .hub-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.form-panel h2 {
  margin-top: 0;
  color: var(--text);
}

.form-group {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.form-group label {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 16px 18px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(0,229,255,0.35);
}

.form-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.notice-box {
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  margin-top: 24px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(16,24,42,0.96);
  color: var(--text);
  padding: 16px 24px;
  border-radius: 999px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.script-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.script-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 22px;
  display: grid;
  gap: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.script-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.2);
  background: rgba(255,255,255,0.07);
}

.script-thumb {
  width: 100%;
  min-height: 180px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,229,255,0.16), rgba(124,58,237,0.12));
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 18px;
}

.script-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

.script-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.script-card button {
  width: 100%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 700;
}

.status-pill span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: var(--danger);
}

.status-pill.active span {
  background: var(--success);
}

.top-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.top-row h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin: 0;
}

.footer-note {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 940px) {
  .hero-grid, .feature-row, .script-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: calc(100% - 24px);
  }
  .status-block, .hero-panel, .form-panel, .hub-panel {
    padding: 22px;
  }
}
