/* ==========================================================================
   AFILIADOS TIAGO BASTOS — design system (mesma paleta da home)
   ========================================================================== */
:root {
  --bg: #05070e;
  --bg-2: #070c16;
  --panel: #080f1c;
  --panel-2: #0b1322;
  --line: #16233a;
  --cyan: #00e5ff;
  --violet: #8b5cf6;
  --magenta: #ff2e88;
  --green: #00d68f;
  --amber: #ffb020;
  --white: #f4f8ff;
  --soft: #c9d6e8;
  --grey: #8b99af;
  --dim: #5f6e86;

  --display: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--soft);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: rgba(0, 229, 255, .28); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #04060c; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #12324a, #1b2a48); border-radius: 8px; }

/* ---------------------------------------------------------------- fundo */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -40%;
  background-image:
    linear-gradient(to right, rgba(0, 229, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 30%, #000 20%, transparent 78%);
}
.halo { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.halo.a { width: 620px; height: 620px; top: -220px; left: -180px;
  background: radial-gradient(circle, rgba(0, 190, 230, .32), transparent 68%); }
.halo.b { width: 560px; height: 560px; top: 14%; right: -200px;
  background: radial-gradient(circle, rgba(139, 92, 246, .26), transparent 68%); }
.halo.c { width: 700px; height: 500px; bottom: 4%; left: 22%;
  background: radial-gradient(circle, rgba(255, 46, 136, .14), transparent 70%); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px clamp(18px, 4vw, 42px);
  background: rgba(5, 7, 14, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 35, 58, .9);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .01em; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px var(--cyan);
}
.brand-tx { color: var(--white); font-size: 16px; }
.brand small { color: var(--grey); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: none; gap: 26px; }
.nav-links a { color: var(--grey); font-size: 14.5px; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 20px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .12em; font-weight: 600; text-transform: uppercase;
  color: #04121a; background: linear-gradient(120deg, var(--cyan), #6cf3ff);
  box-shadow: 0 12px 34px -14px rgba(0, 229, 255, .9);
  transition: transform .18s, box-shadow .18s;
}
.nav-cta:hover { transform: translateY(-1px); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(var(--wrap), 100% - 36px); margin-inline: auto; }
section { position: relative; z-index: 2; padding: clamp(56px, 8vw, 100px) 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 18px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.kicker.violet { color: var(--violet); }
.kicker.magenta { color: var(--magenta); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--white); line-height: .98; letter-spacing: .01em; margin: 0; }
h1 { font-size: clamp(42px, 7.4vw, 84px); text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.6vw, 50px); text-transform: uppercase; }
h3 { font-size: clamp(20px, 2.4vw, 26px); text-transform: uppercase; }
.lead { color: var(--grey); font-size: clamp(16px, 1.5vw, 19px); max-width: 62ch; }
.grad { background: linear-gradient(100deg, var(--cyan), #7af7ff 35%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- botões */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 34px; border-radius: 999px; overflow: hidden;
  font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #04121a; background: linear-gradient(120deg, var(--cyan), #79f2ff);
  box-shadow: 0 18px 46px -20px rgba(0, 229, 255, .95);
  transition: transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost {
  color: var(--white); background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { border-color: rgba(0, 229, 255, .45); }
.btn.sm { height: 44px; padding: 0 22px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(46px, 7vw, 84px); }
.hero-grid { display: grid; gap: 48px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; } }
.hero h1 span { display: block; }
.hero .lead { margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--dim); font-family: var(--mono); letter-spacing: .04em; }

.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
@media (min-width: 640px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  padding: 18px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 19, 34, .9), rgba(8, 15, 28, .55));
}
.stat-card b { display: block; font-family: var(--display); font-size: 30px; color: var(--white); line-height: 1; }
.stat-card span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* card de destaque lateral */
.hero-card {
  position: relative; padding: 28px; border-radius: 22px;
  border: 1px solid rgba(0, 229, 255, .22);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(139, 92, 246, .18), transparent 60%),
    linear-gradient(180deg, rgba(11, 19, 34, .95), rgba(6, 11, 21, .95));
  box-shadow: 0 40px 90px -50px rgba(0, 229, 255, .6);
}
.hero-card h3 { font-size: 20px; margin-bottom: 16px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--soft); }
.hero-card li i {
  flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; font-style: normal; font-size: 12px;
  color: #04121a; background: var(--cyan);
}

/* ------------------------------------------------------------- seções */
.head { display: grid; gap: 14px; margin-bottom: 42px; max-width: 720px; }

.steps { display: grid; gap: 18px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: 26px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 16, 29, .9), rgba(7, 12, 22, .5));
}
.step .n {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--cyan);
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--grey); font-size: 15px; }

/* ofertas */
.offers { display: grid; gap: 16px; }
@media (min-width: 760px) { .offers { grid-template-columns: repeat(2, 1fr); } }
.offer-card {
  padding: 24px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 17, 31, .92), rgba(7, 12, 22, .55));
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s;
}
.offer-card:hover { border-color: rgba(0, 229, 255, .35); transform: translateY(-2px); }
.offer-card h3 { font-size: 20px; }
.offer-card p { margin: 0; color: var(--grey); font-size: 14.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0, 229, 255, .08);
  border: 1px solid rgba(0, 229, 255, .22);
}
.chip.green { color: var(--green); background: rgba(0, 214, 143, .08); border-color: rgba(0, 214, 143, .25); }
.chip.violet { color: #c4b1ff; background: rgba(139, 92, 246, .1); border-color: rgba(139, 92, 246, .3); }
.chip.amber { color: var(--amber); background: rgba(255, 176, 32, .08); border-color: rgba(255, 176, 32, .25); }
.chip.magenta { color: var(--magenta); background: rgba(255, 46, 136, .08); border-color: rgba(255, 46, 136, .25); }

/* cadastro */
.form-shell {
  display: grid; gap: 40px;
}
@media (min-width: 960px) { .form-shell { grid-template-columns: 1fr 460px; align-items: start; } }
.form-card {
  padding: clamp(24px, 3vw, 34px); border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 17, 31, .96), rgba(6, 11, 21, .96));
  box-shadow: 0 40px 100px -60px rgba(0, 229, 255, .55);
}
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card .sub { color: var(--grey); font-size: 14px; margin: 0 0 22px; }

.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.input {
  width: 100%; height: 50px; padding: 0 15px; border-radius: 12px;
  background: rgba(5, 9, 17, .9); border: 1px solid var(--line);
  color: var(--white); font-size: 15px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus { border-color: rgba(0, 229, 255, .55); box-shadow: 0 0 0 3px rgba(0, 229, 255, .12); }
.input.bad { border-color: rgba(255, 46, 136, .7); }
textarea.input { height: auto; min-height: 96px; padding: 12px 15px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--dim); margin-top: 12px; line-height: 1.6; }
.alert {
  display: none; margin-bottom: 14px; padding: 11px 14px; border-radius: 10px;
  font-size: 13.5px; background: rgba(255, 46, 136, .1);
  border: 1px solid rgba(255, 46, 136, .35); color: #ffb3cf;
}
.alert.on { display: block; }
.alert.ok { background: rgba(0, 214, 143, .1); border-color: rgba(0, 214, 143, .35); color: #9bf0cf; }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--grey); font-size: 15px; }
.checklist li::before { content: "✓"; color: var(--green); font-weight: 600; }

/* footer */
footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 32px 0 44px; margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--dim); }
.foot a { color: var(--grey); }
.foot a:hover { color: var(--white); }

/* modal login */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 20px; }
.modal.on { display: grid; }
.modal-bg { position: absolute; inset: 0; background: rgba(3, 5, 10, .82); backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(430px, 100%); }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--grey);
  display: grid; place-items: center; font-size: 16px;
}
.modal-x:hover { color: var(--white); border-color: rgba(0, 229, 255, .4); }

.hidden { display: none !important; }
