:root {
  --bg: #0a0f1a;
  --surface: #111827;
  --surface-2: #1a2235;
  --border: #2a3548;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --student-accent: #3b82f6;
  --student-accent-dark: #2563eb;
  --student-glow: rgba(59, 130, 246, 0.15);
  --warning: #fbbf24;
  --error: #f87171;
  --success: #4ade80;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--accent);
}

.header-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.spots-badge {
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.spots-badge.full {
  background: rgba(248, 113, 113, 0.12);
  border-color: var(--error);
  color: var(--error);
}

.spots-badge.student-badge {
  background: var(--student-glow);
  border-color: var(--student-accent);
  color: var(--student-accent);
}

.spots-badge.student-badge.full {
  background: rgba(248, 113, 113, 0.12);
  border-color: var(--error);
  color: var(--error);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subheadline,
.opening-text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  text-align: left;
}

.opening-text p {
  margin-bottom: 1rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #052e16;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.cta-btn:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.cta-btn-outline {
  background: transparent;
  border: 2px solid var(--student-accent);
  color: var(--student-accent);
}

.cta-btn-outline:hover {
  background: var(--student-glow);
  transform: translateY(-1px);
}

.cta-btn-student {
  background: var(--student-accent);
  color: #fff;
}

.cta-btn-student:hover {
  background: var(--student-accent-dark);
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-label-student {
  color: var(--student-accent);
}

.audience-section {
  scroll-margin-top: 5rem;
}

.content-block {
  margin-bottom: 2.5rem;
}

.content-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.content-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.emphasis {
  font-weight: 600;
  color: var(--text) !important;
}

.accent-text {
  color: var(--accent) !important;
}

.student-section .accent-text {
  color: var(--student-accent) !important;
}

.commitment-card {
  max-width: 600px;
}

.commitment-close {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  font-weight: 600;
  color: var(--text) !important;
}

.limit-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.closing-inline {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.closing-inline p {
  font-size: 0.95rem;
}

.student-form {
  border-color: rgba(59, 130, 246, 0.3);
}

.hr-section .form-section {
  border-color: rgba(34, 197, 94, 0.3);
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

section p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card p,
.card li {
  font-size: 0.95rem;
  color: var(--muted);
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* How it works */
.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.step p {
  margin: 0;
  padding-top: 0.35rem;
}

/* Form */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
}

.form-section h2 {
  margin-bottom: 0.5rem;
}

.form-section .form-sub {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

input,
select,
textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.form-actions {
  margin-top: 1.75rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-closing {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-contacts a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-contacts a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

@media (max-width: 600px) {
  .form-section {
    padding: 1.5rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    order: 3;
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .cta-btn {
    text-align: center;
  }
}
