:root {
  --bg: #07111f;
  --bg-soft: rgba(10, 23, 41, 0.82);
  --panel-border: rgba(108, 164, 255, 0.18);
  --text: #f5f7fb;
  --muted: #a9b9d1;
  --accent: #52c3ff;
  --accent-strong: #1e88ff;
  --accent-warm: #ffd166;
  --success: #82f7ad;
  --danger: #ff8b8b;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(82, 195, 255, 0.24), transparent 34%),
    radial-gradient(circle at right, rgba(255, 209, 102, 0.18), transparent 24%),
    linear-gradient(160deg, #02060d 0%, #07111f 46%, #0d2137 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 92%);
  pointer-events: none;
}

body,
input,
select,
textarea,
button {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  padding: 24px 0 40px;
}

.hero-copy,
.hero-panel,
.trust-strip,
.form-card,
.info-card,
.form-panel-wrap {
  backdrop-filter: blur(18px);
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-xl);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-warm);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
.hero-card-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 0.94;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.hero-text,
.section-heading p,
.card-text,
.info-card p,
.hero-card-text,
.feature-list,
.panel-note,
.form-helper,
.response-message {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #06111d;
  background: linear-gradient(135deg, var(--accent) 0%, #9ee1ff 100%);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  align-items: end;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(82, 195, 255, 0.28), transparent 32%),
    linear-gradient(140deg, rgba(30, 136, 255, 0.18), rgba(8, 19, 34, 0.96));
}

.hero-card {
  width: min(100%, 340px);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(3, 8, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #4cff91;
  box-shadow: 0 0 20px rgba(76, 255, 145, 0.7);
}

.hero-card-label,
.card-tag {
  margin: 14px 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card-title {
  font-size: 1.45rem;
}

.hero-card-text {
  margin: 14px 0 0;
  line-height: 1.7;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.trust-number {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.trust-label {
  margin: 8px 0 0;
  color: var(--muted);
}

.forms-section,
.info-section {
  margin-top: 54px;
}

.section-heading {
  max-width: 60ch;
  margin-bottom: 24px;
}

.section-heading p:last-child {
  margin-top: 14px;
  line-height: 1.7;
}

.forms-grid,
.info-grid,
.input-grid {
  display: grid;
  gap: 20px;
}

.forms-grid,
.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-card,
.info-card,
.form-panel-wrap {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.form-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.form-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(82, 195, 255, 0.45);
  background: rgba(12, 29, 51, 0.92);
}

.form-card h3,
.info-card h3 {
  font-size: 1.6rem;
}

.card-text,
.info-card p,
.panel-note,
.form-helper,
.response-message {
  margin: 14px 0 0;
  line-height: 1.7;
}

.feature-list {
  margin: 18px 0 22px;
  padding-left: 18px;
  line-height: 1.7;
}

.feature-list li + li {
  margin-top: 6px;
}

.form-panel-wrap {
  margin-top: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.panel-note {
  max-width: 32ch;
}

.server-notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 209, 102, 0.32);
  background: rgba(255, 209, 102, 0.1);
  color: #ffe8a5;
  line-height: 1.6;
}

.submission-panel[hidden] {
  display: none;
}

.submission-form {
  display: grid;
  gap: 18px;
}

.input-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(169, 185, 209, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(82, 195, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: rgba(255, 139, 139, 0.8);
}

textarea {
  resize: vertical;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  padding: 0;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.form-helper {
  max-width: 42ch;
}

.response-message {
  min-height: 28px;
}

.response-message.is-success {
  color: var(--success);
}

.response-message.is-error {
  color: var(--danger);
}

.info-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #03111b;
  background: linear-gradient(135deg, var(--accent-warm) 0%, #fff0bf 100%);
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .hero,
  .forms-grid,
  .info-grid,
  .trust-strip,
  .input-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 320px;
  }

  .panel-header,
  .form-footer {
    flex-direction: column;
    align-items: start;
  }

  .panel-note,
  .form-helper {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 18px;
  }

  .hero-copy,
  .hero-panel,
  .trust-strip,
  .form-card,
  .info-card,
  .form-panel-wrap {
    padding: 22px;
  }

  h1 {
    max-width: 12ch;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
