:root {
  --bg: #0a0c0f;
  --bg-elevated: #111418;
  --bg-card: #14181e;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #e8eaed;
  --text-muted: #8b929a;
  --accent: #3dd68c;
  --accent-dim: rgba(61, 214, 140, 0.15);
  --accent-glow: rgba(61, 214, 140, 0.25);
  --warm: #e8b84a;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1080px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: var(--accent-glow);
  opacity: 0.4;
}

.bg-glow--2 {
  width: 360px;
  height: 360px;
  bottom: 20%;
  left: -100px;
  background: rgba(232, 184, 74, 0.08);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  max-width: calc(var(--max) + 5rem);
  margin: 0 auto;
  z-index: 100;
  background: rgba(10, 12, 15, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

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

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

@media (min-width: 640px) {
  .nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  background: var(--bg-card);
  border-color: var(--border);
}

.btn--sm:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.btn--primary {
  background: var(--accent);
  color: #0a0c0f;
}

.btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

/* Main layout */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-value {
  display: block;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stat--instruments {
  flex: 1 1 100%;
  min-width: min(100%, 280px);
}

.stat--instruments .stat-label {
  display: block;
  margin-bottom: 0.75rem;
}

.instruments {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.instruments li {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .stat--instruments {
    flex: 1 1 auto;
  }
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

@media (max-width: 520px) {
  .stat-divider {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.about-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-list li {
  display: flex;
  gap: 1.25rem;
}

.about-icon {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--warm);
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.about-list strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.about-list span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Strategy */
.strategy-lead {
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  max-width: 52ch;
  font-size: 1.0625rem;
}

/* Services */
.services-lead {
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 1rem;
  max-width: 48ch;
  font-size: 1.0625rem;
}

.services-compare {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .services-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-item {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-item strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.compare-item--highlight {
  border-color: rgba(61, 214, 140, 0.3);
  background: var(--accent-dim);
}

.service-included {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(61, 214, 140, 0.25);
}

.service-format {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: -0.5rem 0 0.75rem;
}

.services {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--border-hover);
}

.service-card--featured {
  border-color: rgba(61, 214, 140, 0.25);
  background: linear-gradient(
    165deg,
    rgba(61, 214, 140, 0.06) 0%,
    var(--bg-card) 45%
  );
}

.service-card--featured:hover {
  border-color: rgba(61, 214, 140, 0.4);
  box-shadow: 0 0 48px rgba(61, 214, 140, 0.08);
}

.service-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.65rem;
  margin-bottom: 1.25rem;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(61, 214, 140, 0.2);
}

.service-badge--channel {
  color: var(--warm);
  background: rgba(232, 184, 74, 0.1);
  border-color: rgba(232, 184, 74, 0.2);
}

.service-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.75rem;
}

.service-features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-card:not(.service-card--featured) .service-features li::before {
  background: var(--warm);
}

.service-cta {
  width: 100%;
  margin-top: auto;
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card a:hover {
  filter: brightness(1.1);
}

/* Links */
.links-lead {
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  max-width: 40ch;
}

.links {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.link-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.link-name {
  font-weight: 600;
  grid-column: 1;
}

.link-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  grid-column: 1;
}

.link-arrow {
  grid-row: 1 / -1;
  grid-column: 2;
  align-self: center;
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Enrollment */
.enroll-main {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.enroll-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .enroll-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
  }
}

.enroll-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.enroll-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 36ch;
  margin-bottom: 2rem;
}

.enroll-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.enroll-steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.enroll-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 8px;
}

.enroll-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.85;
  max-width: 32ch;
}

.enroll-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.enroll-form .field {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .form-row--2 {
    grid-template-columns: 1fr;
  }
}

.enroll-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.required {
  color: var(--accent);
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.enroll-form input[type="text"],
.enroll-form input[type="email"],
.enroll-form select,
.enroll-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.enroll-form input:focus,
.enroll-form select:focus,
.enroll-form textarea:focus {
  outline: none;
  border-color: rgba(61, 214, 140, 0.4);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.enroll-form input.is-invalid,
.enroll-form .fieldset.is-invalid,
.enroll-form .is-invalid + .field-error {
  border-color: rgba(255, 100, 100, 0.4);
}

.field-error {
  display: block;
  font-size: 0.8125rem;
  color: #ff8a8a;
  margin-top: 0.35rem;
  min-height: 1.2em;
}

.fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.fieldset legend {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  padding: 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-card {
  display: block;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.2s, background 0.2s;
}

.radio-card-inner strong {
  font-size: 0.9375rem;
}

.radio-card-inner span:last-child {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.radio-card input:checked + .radio-card-inner {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.radio-card input:focus-visible + .radio-card-inner {
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.field--checkbox {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

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

.btn--full {
  width: 100%;
}

.form-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-state {
  text-align: center;
  padding: 2rem 1rem;
}

.form-state h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-state p {
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 auto 1.5rem;
}

.form-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 50%;
}

.form-state--error .form-state p a {
  color: var(--accent);
  text-decoration: underline;
}

.form-state--error .form-state p a:hover {
  filter: brightness(1.1);
}
