/* ElementCraft — набор модераторов (стиль elementcraft.ru) */

@font-face {
  font-family: "Pikseli";
  src: url("assets/fonts/pikseli.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PixeloidSans";
  src: url("assets/fonts/pixeloidsans.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PixeloidSans";
  src: url("assets/fonts/pixeloidsans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0a0a0d;
  --bg-1: #101016;
  --bg-2: #15151d;
  --bg-3: #1d1d27;
  --panel: rgba(17, 17, 23, 0.85);

  --ink: #f3efe6;
  --ink-dim: #c3bdae;
  --ink-mute: #7d776a;

  --accent: #ff9900;
  --accent-2: #ffb84d;
  --accent-press: #b96f06;

  --fire: #ff5a1f;
  --fire-2: #ff9024;
  --water: #2f86ff;
  --water-2: #67d4ff;
  --earth: #74c447;
  --earth-2: #9c6b3f;
  --air: #e7e1ff;
  --air-2: #b3bcef;

  --line: rgba(243, 239, 230, 0.10);
  --line-2: rgba(243, 239, 230, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);

  --r: 6px;
  --r-lg: 14px;
  --maxw: 1140px;

  --font-display: "Pikseli", "PixeloidSans", ui-monospace, monospace;
  --font-body: "PixeloidSans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(255, 90, 31, 0.10), transparent 55%),
    radial-gradient(100% 70% at 10% 0%, rgba(47, 134, 255, 0.08), transparent 50%),
    radial-gradient(90% 90% at 50% 120%, rgba(116, 196, 71, 0.06), transparent 60%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, .join__title, .form__heading { font-family: var(--font-display); font-weight: 400; line-height: 1.05; }

::selection { background: var(--accent); color: #1a1206; }

:focus-visible {
  outline: 3px solid var(--water-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 200;
  background: var(--accent); color: #1a1206; padding: 10px 16px;
  border-radius: var(--r); font-family: var(--font-display);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

.hero__world {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0a0d;
}

.hero__bg {
  position: absolute;
  inset: -5%;
  animation: kenBurns 25s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}

.hero__landscape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(1.08) contrast(1.05) saturate(1.15);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero__glow--fire {
  width: 40%;
  height: 35%;
  left: -5%;
  bottom: 10%;
  background: rgba(255, 90, 31, 0.18);
  animation-delay: 0s;
}

.hero__glow--water {
  width: 35%;
  height: 30%;
  right: 5%;
  bottom: 15%;
  background: rgba(47, 134, 255, 0.15);
  animation-delay: -2s;
}

.hero__glow--air {
  width: 30%;
  height: 25%;
  right: 10%;
  top: 5%;
  background: rgba(161, 135, 190, 0.12);
  animation-delay: -4s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, transparent 35%, rgba(10, 10, 13, 0.25) 100%),
    linear-gradient(180deg, rgba(10, 10, 13, 0.15) 0%, transparent 25%, transparent 60%, rgba(10, 10, 13, 0.55) 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(140% 100% at 50% 35%, rgba(10, 10, 13, 0.02) 0%, rgba(10, 10, 13, 0.2) 75%),
    linear-gradient(180deg, rgba(10, 10, 13, 0.2) 0%, transparent 30%, transparent 58%, rgba(10, 10, 13, 0.65) 100%);
}

.hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 16px);
  padding: clamp(12px, 1.8vh, 20px) clamp(16px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(10, 10, 13, 0.55), transparent);
}

.tbtn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1;
  white-space: nowrap;
  padding: 11px 20px;
  border-radius: var(--r);
  border: 2px solid var(--line-2);
  color: var(--ink);
  background: rgba(15, 15, 20, 0.6);
  transition: transform 0.15s var(--ease), border-color 0.2s, background 0.2s;
}

.tbtn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero__center {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vh, 24px);
  padding: clamp(28px, 4vh, 48px) 0 clamp(10px, 2vh, 18px);
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 20px);
  width: min(100%, 560px);
}

.hero__logo {
  width: clamp(140px, 16vw, 220px);
  height: auto;
  filter:
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 48px rgba(0, 0, 0, 0.35));
}

.hero__titles {
  width: 100%;
  padding: clamp(14px, 2vw, 20px) clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(10, 10, 13, 0.62), rgba(10, 10, 13, 0.78));
  border: 1px solid rgba(243, 239, 230, 0.14);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.hero__tagline {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(16px, 2.2vw, 26px);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.hero__tagline b { color: var(--accent-2); }

.hero__online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--earth);
  box-shadow: 0 0 8px var(--earth);
  animation: online-blink 1.8s ease-in-out infinite;
}

@keyframes online-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero__desc {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.55;
  text-align: center;
}

/* IP-card style panels */
.ipcard {
  position: relative;
  isolation: isolate;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(11px, 1.5vh, 14px);
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--panel);
  border: 2px solid rgba(255, 153, 0, 0.42);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.ipcard::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 24px;
  background: radial-gradient(closest-side, rgba(255, 150, 30, 0.45), transparent 76%);
  filter: blur(20px);
  pointer-events: none;
  animation: ip-glow 3s ease-in-out infinite;
}

@keyframes ip-glow {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.6; }
}

.ipcard__label {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.5vw, 14.5px);
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  text-align: center;
  line-height: 1.35;
}

.ipcard__btnrow {
  position: relative;
  margin-top: clamp(4px, 0.8vh, 8px);
}

.ipcard__bonus {
  position: absolute;
  top: 0;
  right: 12px;
  transform: translateY(-52%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(11px, 1.2vw, 13px);
  color: #0c1f0a;
  background: linear-gradient(180deg, #9be06a, var(--earth));
  border: 2px solid var(--bg);
  border-radius: 999px;
  padding: 4px 11px;
  box-shadow: 0 4px 12px rgba(116, 196, 71, 0.45);
  pointer-events: none;
  animation: bonus-pulse 2.2s var(--ease) infinite;
}

@keyframes bonus-pulse {
  0%, 100% { transform: translateY(-52%) scale(1); }
  50% { transform: translateY(-52%) scale(1.07); }
}

.btn-copy {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 20px);
  color: #2a1900;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: var(--r);
  padding: clamp(14px, 1.7vw, 17px) 20px;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.45),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25),
    0 5px 0 var(--accent-press);
  transition: transform 0.1s var(--ease), filter 0.2s, box-shadow 0.1s;
}

.btn-copy:hover { filter: brightness(1.06); }

.btn-copy:active {
  transform: translateY(4px);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.4),
    0 1px 0 var(--accent-press);
}

.btn-copy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.hero__hint {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 0 20px clamp(14px, 2.2vh, 22px);
}

.scrollhint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 15px);
  color: #d8d2c4;
  animation: hint-bob 1.9s ease-in-out infinite;
}

.scrollhint__label {
  border-bottom: 1px dotted rgba(243, 239, 230, 0.4);
  padding-bottom: 2px;
}

.scrollhint__arrow {
  color: var(--accent);
  font-size: 1.25em;
  line-height: 1;
}

.scrollhint:hover .scrollhint__label {
  color: var(--accent);
  border-color: var(--accent);
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ===== SECTIONS (join-style) ===== */
.join {
  position: relative;
  z-index: 5;
  padding: clamp(34px, 6vw, 60px) 0;
  background: var(--bg-1);
  border-top: 2px solid var(--line);
}

.join::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fire), var(--accent) 30%, var(--earth) 60%, var(--water) 100%);
}

.join--alt {
  background: var(--bg);
}

.join .container { max-width: 1040px; }

.join__title {
  font-size: clamp(22px, 3.4vw, 34px);
  text-align: center;
  margin-bottom: 16px;
}

.join__subtitle {
  text-align: center;
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.join__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}

.jstep {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 16px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.jstep:hover {
  transform: translateY(-2px);
}

.jstep--fire:hover { border-color: rgba(255, 90, 31, 0.5); }
.jstep--water:hover { border-color: rgba(47, 134, 255, 0.5); }
.jstep--earth:hover { border-color: rgba(116, 196, 71, 0.5); }
.jstep--air:hover { border-color: rgba(179, 188, 239, 0.5); }

.jstep__badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.jstep--fire .jstep__badge { background: linear-gradient(180deg, var(--fire-2), var(--fire)); color: #fff; }
.jstep--water .jstep__badge { background: linear-gradient(180deg, var(--water-2), var(--water)); color: #fff; }
.jstep--earth .jstep__badge { background: linear-gradient(180deg, #9be06a, var(--earth)); color: #0c1f0a; }
.jstep--air .jstep__badge { background: linear-gradient(180deg, var(--air), var(--air-2)); color: #2a2540; }

.jstep__badge--accent {
  background: var(--accent);
  color: #2a1900;
  font-size: 16px;
}

.jstep__cap {
  text-align: left;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.45;
}

.jstep__cap b {
  display: block;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

/* Stages */
.stages {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.stage:hover {
  transform: translateX(4px);
  border-color: rgba(255, 153, 0, 0.35);
}

.stage__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: #2a1900;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stage__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.stage__body b {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.stage__body span {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.45;
}

/* FAQ */
.faq {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq__item[open] {
  border-color: rgba(255, 153, 0, 0.35);
}

.faq__item--warn {
  border-color: rgba(255, 90, 31, 0.35);
}

.faq__q {
  padding: 14px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__a {
  padding: 0 18px 14px;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
}

.faq__a a {
  color: var(--accent-2);
  border-bottom: 1px dotted var(--accent);
}

.faq__item--warn .faq__a strong {
  color: var(--fire-2);
}

/* Stagger animations */
.join__steps--stagger .jstep.fade-in:nth-child(1) { transition-delay: 0ms; }
.join__steps--stagger .jstep.fade-in:nth-child(2) { transition-delay: 70ms; }
.join__steps--stagger .jstep.fade-in:nth-child(3) { transition-delay: 140ms; }
.join__steps--stagger .jstep.fade-in:nth-child(4) { transition-delay: 210ms; }
.join__steps--stagger .jstep.fade-in:nth-child(5) { transition-delay: 280ms; }

.stages.fade-in .stage {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.2s;
}

.stages.fade-in.visible .stage {
  opacity: 1;
  transform: translateY(0);
}

.stages.fade-in.visible .stage:nth-child(1) { transition-delay: 0ms; }
.stages.fade-in.visible .stage:nth-child(2) { transition-delay: 80ms; }
.stages.fade-in.visible .stage:nth-child(3) { transition-delay: 160ms; }
.stages.fade-in.visible .stage:nth-child(4) { transition-delay: 240ms; }

.faq.fade-in .faq__item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.2s;
}

.faq.fade-in.visible .faq__item {
  opacity: 1;
  transform: translateY(0);
}

.faq.fade-in.visible .faq__item:nth-child(1) { transition-delay: 0ms; }
.faq.fade-in.visible .faq__item:nth-child(2) { transition-delay: 60ms; }
.faq.fade-in.visible .faq__item:nth-child(3) { transition-delay: 120ms; }
.faq.fade-in.visible .faq__item:nth-child(4) { transition-delay: 180ms; }

/* Bonus block (benefits) */
.bonus {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.12), rgba(0, 0, 0, 0.22));
}

.bonus__list {
  list-style: none;
  padding: 20px 22px;
  margin: 0;
}

.bonus__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
}

.bonus__list li:last-child { margin-bottom: 0; }

.bonus__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== FORM ===== */
.form {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 32px);
  background: var(--panel);
  border: 2px solid rgba(255, 153, 0, 0.35);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.form__group { margin-bottom: 28px; }

.form__group:last-of-type { margin-bottom: 0; }

/* Progress bar */
.form-progress {
  margin-bottom: 24px;
}

.form-progress__track {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.form-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.45s var(--ease);
}

.form-progress__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-dim);
  text-align: center;
}

/* Multi-step */
.form-step {
  animation: stepIn 0.35s var(--ease);
}

.form-step[hidden] {
  display: none;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.form-nav [hidden] {
  display: none !important;
}

.form-nav .btn-copy {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: none;
  font-size: clamp(13px, 2.8vw, 17px);
  padding: 12px 10px;
  white-space: normal;
  line-height: 1.15;
}

.form-nav .btn-copy--submit,
.form-nav .btn-copy--full {
  grid-column: 1 / -1;
}

.btn-copy--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 2px var(--line-2);
}

.btn-copy--ghost:hover {
  filter: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.form__hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-mute);
}

.form__heading {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form__field--full { grid-column: 1 / -1; }

.form__field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.required { color: var(--fire-2); }

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line-2);
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s;
}

.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--ink-mute); }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.12);
}

.form__field input.error,
.form__field select.error,
.form__field textarea.error {
  border-color: var(--fire);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

.form__field textarea {
  resize: vertical;
  min-height: 96px;
}

.form__field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c3bdae' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
}

.form__message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 14px;
  text-align: center;
  border: 1px solid;
}

.form__message[hidden] { display: none; }

.form__message--success {
  background: rgba(116, 196, 71, 0.12);
  border-color: rgba(116, 196, 71, 0.35);
  color: #9be06a;
}

.form__message--error {
  background: rgba(255, 90, 31, 0.12);
  border-color: rgba(255, 90, 31, 0.35);
  color: var(--fire-2);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 5;
  padding: clamp(28px, 5vw, 44px) 0;
  background: var(--bg-1);
  border-top: 1px solid rgba(243, 239, 230, 0.08);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.footer__name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer__links a {
  color: var(--ink-dim);
  border-bottom: 1px dotted var(--line-2);
  font-size: 14px;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--accent); }

.footer__legal {
  font-size: 12px;
  color: var(--ink-mute);
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { min-height: calc(100svh - 32px); }
  .hero__logo { width: clamp(120px, 28vw, 180px); }
  .hero__brand { gap: 10px; }
  .hero__center { gap: clamp(10px, 2vh, 18px); }
  .form__grid { grid-template-columns: 1fr; }
  .join__steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .tbtn { padding: 10px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
  .hero__glow { animation: none; }
  .hero__canvas { display: none; }
  .scrollhint { animation: none; }
  .fade-in { transition: none; opacity: 1; transform: none; }
}
