:root {
  --bg: #070812;
  --bg-soft: #101129;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.115);
  --border: rgba(255, 255, 255, 0.16);
  --text: #fbfbff;
  --muted: #b7b5ca;
  --muted-strong: #d8d7e9;
  --cyan: #24c9ff;
  --blue: #7aa2ff;
  --violet: #8b6cff;
  --magenta: #ef2bd7;
  --danger: #ff7b96;
  --success: #77f5bb;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(112, 55, 238, 0.34), transparent 30rem),
    radial-gradient(circle at 19% 8%, rgba(59, 105, 255, 0.22), transparent 31rem),
    linear-gradient(180deg, #231858 0%, #0d0e20 33rem, var(--bg) 100%);
  color: var(--text);
}

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

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

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: #090913;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.support-panel,
.site-footer {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: max-content;
  font-size: 1.08rem;
  font-weight: 750;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 35px rgba(23, 209, 220, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.header-actions a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.pill-link {
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: 4rem;
  align-items: center;
  min-height: min(820px, calc(100vh - 72px));
  padding: 4rem 0 5.5rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 2rem;
  padding: 0.58rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(36, 201, 255, 0.9);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.55rem;
  font-size: clamp(2.85rem, 5.35vw, 4.85rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

h1::after {
  display: block;
  content: "Support that keeps you learning.";
  margin-top: 0.25rem;
  background: linear-gradient(90deg, #b8b5ff 0%, var(--cyan) 58%, #58f0cf 100%);
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 610px;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 1.55rem;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

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

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

.button-primary {
  background: linear-gradient(135deg, #a9a0ff 0%, #765de4 44%, #2bc8ff 100%);
  box-shadow: 0 20px 52px rgba(87, 76, 227, 0.35);
}

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

.support-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 650px;
  margin: 3rem 0 0;
}

.support-stats div {
  padding: 0 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.support-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.support-stats dt {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.support-stats dd {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 580px;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  inset: 8% -8% 0;
  z-index: -1;
  border-radius: 999px;
  content: "";
  background: radial-gradient(circle, rgba(87, 55, 255, 0.36), transparent 68%);
  filter: blur(18px);
}

.preview-shell {
  width: min(100%, 520px);
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  box-shadow: 0 28px 80px rgba(2, 3, 12, 0.55);
  transform: rotate(1.2deg);
}

.preview-shell img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(310px, 78%);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(13, 13, 30, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.mini-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--cyan), var(--violet));
  color: #080812;
  font-weight: 950;
}

.card-top {
  top: 3rem;
  left: 0;
}

.card-bottom {
  right: -0.5rem;
  bottom: 3rem;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding: 6rem 0 7rem;
}

.panel-copy {
  position: sticky;
  top: 2rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.35vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 950;
}

.panel-copy > p {
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.7;
}

.contact-card,
.support-form {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(10, 10, 24, 0.7);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
}

.contact-card {
  margin-top: 2rem;
  padding: 1.4rem;
  border-radius: 22px;
}

.contact-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.contact-card p,
.contact-card address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.contact-card a,
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(36, 201, 255, 0.6);
  text-underline-offset: 0.22em;
}

.support-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.55rem;
}

label span {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

label em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  outline: none;
  background: rgba(4, 5, 15, 0.55);
  color: var(--text);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

input,
select {
  padding: 0 1rem;
}

textarea {
  min-height: 170px;
  resize: vertical;
  padding: 1rem;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: rgba(216, 215, 233, 0.48);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(36, 201, 255, 0.78);
  background: rgba(7, 9, 28, 0.78);
  box-shadow: 0 0 0 4px rgba(36, 201, 255, 0.12);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--muted);
}

.site-footer .brand {
  color: var(--text);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .hero,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.5rem;
    padding-top: 3rem;
  }

  .hero-visual {
    min-height: 500px;
  }

  .panel-copy {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header,
  .hero,
  .support-panel,
  .site-footer {
    width: min(100% - 28px, 1200px);
  }

  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.86rem;
  }

  .pill-link {
    padding: 0.65rem 1rem;
  }

  h1 {
    font-size: clamp(2.25rem, 11.4vw, 3.35rem);
    line-height: 1.04;
  }

  .hero-actions,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button-secondary {
    justify-content: flex-start;
    overflow-wrap: anywhere;
    border-radius: 20px;
  }

  .support-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .support-stats div,
  .support-stats div:first-child {
    padding: 0 0 0 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-visual {
    min-height: 400px;
  }

  .preview-shell {
    width: min(100%, 390px);
    border-radius: 28px;
  }

  .preview-shell img {
    border-radius: 22px;
  }

  .floating-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: -1rem;
  }

  .card-top {
    order: 2;
  }

  .card-bottom {
    order: 3;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .support-panel {
    padding: 3.5rem 0 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
