:root {
  --bg: #070a12;
  --bg2: #0a1020;
  --panel: rgba(255,255,255,.055);
  --panel2: rgba(255,255,255,.085);
  --text: #eef4ff;
  --muted: #a9b8d0;
  --soft: #d7e2f4;
  --line: rgba(255,255,255,.12);
  --accent: #55e6c1;
  --accent2: #7aa7ff;
  --danger: #ff6b6b;
  --shadow: 0 32px 90px rgba(0,0,0,.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(85,230,193,.20), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(122,167,255,.18), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg2) 58%, var(--bg));
  color: var(--text);
}

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

.nav,
main,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.045em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #061018;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(85,230,193,.18);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

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

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  align-items: center;
  gap: 54px;
  padding: 58px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 26px;
  font-size: clamp(45px, 6.8vw, 82px);
  line-height: .95;
  letter-spacing: -.075em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.03;
  letter-spacing: -.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  letter-spacing: -.025em;
}

.lead,
.section-head p,
.section-text,
.about p,
.contact-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 850;
  cursor: pointer;
}

.btn.primary {
  color: #061018;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 0;
}

.btn.secondary {
  color: var(--text);
  background: rgba(255,255,255,.045);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}

.hero-note span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(85,230,193,.75);
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(85,230,193,.16), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.card-header h2 {
  font-size: 34px;
  margin-bottom: 22px;
}

.equation-box {
  padding: 24px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 26px;
  background: rgba(255,255,255,.055);
}

.equation-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.equation-box strong {
  display: block;
  font-size: 25px;
  line-height: 1.25;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tag-grid span {
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  color: var(--soft);
  font-weight: 750;
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 900px;
  margin-bottom: 36px;
}

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

.module-card,
.formula-card,
.about-card,
.contact-form,
.tools-grid span {
  border: 1px solid var(--line);
  background: var(--panel);
}

.module-card {
  border-radius: 26px;
  padding: 26px;
}

.module-card p {
  color: var(--muted);
  line-height: 1.68;
}

.icon {
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #061018;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-weight: 950;
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.formula-stack {
  display: grid;
  gap: 14px;
}

.formula-card {
  padding: 22px;
  border-radius: 24px;
}

.formula-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.formula-card code {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.55;
  white-space: normal;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tools-grid span {
  padding: 13px 17px;
  border-radius: 999px;
  color: var(--soft);
  font-weight: 800;
}

.about-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  border-radius: 34px;
  padding: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(122,167,255,.15), transparent 36%),
    rgba(255,255,255,.052);
}

.about-lead {
  font-size: 21px;
  color: var(--soft) !important;
}

.about-side {
  display: grid;
  gap: 14px;
}

.about-side div {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
}

.about-side span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-side strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.mail-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(85,230,193,.65);
  box-shadow: 0 0 0 4px rgba(85,230,193,.08);
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  padding: 32px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .split,
  .about-card,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 34px;
  }

  .module-grid,
  .tag-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }

  .hero-note {
    border-radius: 20px;
    align-items: flex-start;
  }
}

.turnstile-wrap {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.contact-form button[disabled] {
  opacity: .68;
  cursor: wait;
}

.form-status[data-type="success"] {
  color: #55e6c1;
}

.form-status[data-type="error"] {
  color: #ff8a8a;
}
