@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-800.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --void: #0A0810;
  --night: #14101C;
  --plum: #241033;
  --line: #2A2236;
  --violet: #8A3FFC;
  --violet-soft: #B98BFF;
  --bone: #F3EEE5;
  --muted: #A69DB5;
  --red: #E8173F;
  --error: #FF7A8F;
  --lime: #C6F432;

  --display: "Unbounded", "Arial Black", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
  --radius: 20px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--lime); }
a:hover { color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bone);
  color: var(--void);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 64px var(--gutter) 80px;
  text-align: center;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 50% 40% at 50% 42%, rgba(138, 63, 252, 0.22), transparent 70%);
  pointer-events: none;
}

.hero__logo {
  margin: 0;
  width: min(100%, 880px);
  line-height: 0;
}
.hero__logo .logo {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.hero__title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.mad {
  color: var(--violet-soft);
  text-decoration: underline wavy var(--lime);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.hero__sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid var(--bone);
  border-radius: 999px;
  background: var(--bone);
  color: var(--void);
  font: 500 16px/1 var(--mono);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.button:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--void);
  transform: translateY(-2px) rotate(-1deg);
}
.button--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}
.button--ghost:hover {
  background: transparent;
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- Sections ---------- */

main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about__title,
.contact__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
}

.lead {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
}
.lead strong { color: var(--bone); font-weight: 500; }

.offers {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.offer {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night);
  transition: border-color 0.25s, transform 0.25s;
}
.offer:hover {
  border-color: var(--violet);
  transform: translateY(-4px) rotate(-0.6deg);
}
.offer:nth-child(2):hover { transform: translateY(-4px) rotate(0.6deg); }

.offer__num {
  color: var(--lime);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.offer__title {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
}
.offer__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.facts {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.fact { margin: 0; }
.fact dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact:nth-child(2) dt { color: var(--red); }
.fact dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact__card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night);
}

.form { display: grid; gap: 20px; }
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { display: grid; gap: 8px; }
.field label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--void);
  color: var(--bone);
  font: 400 16px/1.5 var(--mono);
  caret-color: var(--lime);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(138, 63, 252, 0.35);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error {
  margin: 0;
  color: var(--error);
  font-size: 14px;
}

.form__note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.form .button { justify-self: start; }

.status {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 15px;
}
.status--ok {
  border: 1px solid var(--lime);
  background: rgba(198, 244, 50, 0.08);
  color: var(--bone);
}
.status--ok strong { color: var(--lime); font-weight: 500; }
.status--error {
  border: 1px solid var(--error);
  background: rgba(232, 23, 63, 0.1);
  color: var(--bone);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer__quote { color: var(--violet-soft); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--lime); }

/* ---------- Secondary pages (legal notice, privacy) ---------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page .footer { margin-top: auto; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--gutter);
}
.bar__home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.bar__home img { border-radius: 10px; }
.bar__home:hover { color: var(--lime); }
.bar__back {
  color: var(--muted);
  font-size: 15px;
}

.legal {
  width: 100%;
  max-width: calc(72ch + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 96px);
}
.legal__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.legal__intro {
  margin: 20px 0 0;
  color: var(--muted);
}
.legal h2 {
  margin: 48px 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
}
.legal p,
.legal li,
.legal address {
  color: #D9D2E3;
  font-size: 16px;
}
.legal p { margin: 0 0 14px; }
.legal address {
  font-style: normal;
  line-height: 1.8;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}
.legal li { margin-bottom: 4px; }

/* Unfilled details in includes/site.php show up like this. */
mark.todo {
  padding: 1px 6px;
  border: 1px dashed var(--lime);
  border-radius: 6px;
  background: rgba(198, 244, 50, 0.1);
  color: var(--lime);
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .offers,
  .facts { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form .button { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .offer { transition: none; }
  .button:hover, .offer:hover, .offer:nth-child(2):hover { transform: none; }
}
