/* ==========================================================================
   Andrey Macedo — Skill PWA · Design System (Stark)
   Navy + Ciano + Gold · Montserrat / Open Sans / JetBrains Mono
   ========================================================================== */

:root {
  /* Navy scale */
  --navy-950: #0a1628;
  --navy-900: #0d1b30;
  --navy-850: #0f1f38;
  --navy-800: #001f54;
  --navy-700: #0d3b66;

  /* Surfaces */
  --bg:        #08111f;
  --surface:   #0f1c33;
  --card:      #12213d;
  --card-2:    #16264552;
  --border:    rgba(0, 212, 255, 0.14);
  --border-strong: rgba(0, 212, 255, 0.32);

  /* Accents */
  --cyan:      #00d4ff;
  --cyan-soft: #4ee3ff;
  --accent:    #1e90ff;
  --gold:      #d4af37;

  /* Semantic */
  --success:   #00c853;
  --warning:   #ffb300;
  --danger:    #ff5a5a;

  /* Text */
  --text:      #eaf1fb;
  --muted:     #93a4bf;
  --muted-2:   #6b7d99;

  /* Effects */
  --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.25);
  --glow-soft: 0 8px 40px rgba(0, 0, 0, 0.45);
  --radius:    18px;
  --radius-sm: 12px;

  --font-title: 'Montserrat', system-ui, sans-serif;
  --font-body:  'Open Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(0, 212, 255, 0.14), transparent 60%),
    radial-gradient(900px 620px at 8% 12%, rgba(30, 144, 255, 0.12), transparent 55%),
    radial-gradient(700px 700px at 50% 120%, rgba(13, 59, 102, 0.35), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle starfield */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(0,212,255,.28), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,.22), transparent),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,.18), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(0,212,255,.22), transparent);
  background-size: 100% 100%;
  opacity: .5; pointer-events: none; z-index: 0;
}

.wrap { width: min(var(--maxw), 92vw); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, .logo { font-family: var(--font-title); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { color: var(--muted); }
strong { color: var(--text); font-weight: 700; }
.mono { font-family: var(--font-mono); }
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--accent) 55%, var(--cyan-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gold { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(8,17,31,.82), rgba(8,17,31,.35));
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--border-strong); box-shadow: var(--glow-cyan);
  color: var(--cyan); font-weight: 800;
}
.logo small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .18em; color: var(--muted-2); text-transform: uppercase; }
/* Variante: foto circular no lugar da letra */
.logo .mark.photo { width: 40px; height: 40px; padding: 0; overflow: hidden; border-radius: 50%; background: none; }
.logo .mark.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.header-tag { font-size: .8rem; color: var(--muted); font-family: var(--font-mono); }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(0, 212, 255, 0.08); border: 1px solid var(--border-strong);
  color: var(--cyan); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .7rem; border-radius: 999px; font-size: .78rem;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #04121f;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-title); font-weight: 800; font-size: 1.02rem; letter-spacing: .01em;
  padding: 1.05rem 1.6rem; border-radius: 14px; border: none; cursor: pointer;
  color: var(--btn-fg); text-decoration: none;
  background: linear-gradient(100deg, var(--cyan), var(--accent));
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.28), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(0, 212, 255, 0.4); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; filter: grayscale(.3); }
.btn.block { width: 100%; }
.btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: none;
}
.btn.ghost:hover { background: rgba(0,212,255,.06); box-shadow: none; }
.btn.gold {
  background: linear-gradient(100deg, var(--gold), #f0cf6b); color: #2a2205;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.28), inset 0 1px 0 rgba(255,255,255,.4);
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--card), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--glow-soft);
}
.glass {
  background: rgba(18, 33, 61, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
}

/* ---------- Forms ---------- */
.field { margin-bottom: .9rem; text-align: left; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; font-weight: 600; }
.field input {
  width: 100%; padding: .95rem 1rem; border-radius: 12px;
  background: #0a1526; border: 1px solid var(--border);
  color: var(--text); font-size: 1rem; font-family: var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,.15); }
.form-note { font-size: .78rem; color: var(--muted-2); text-align: center; margin-top: .6rem; }
.form-note a { color: var(--cyan); }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 8vw, 6rem) 0; position: relative; z-index: 1; }
.eyebrow { font-family: var(--font-mono); color: var(--cyan); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin: 1.2rem 0; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 32ch; }
.hero .lead strong { color: var(--text); }
.check-list { list-style: none; margin: 1.6rem 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); font-size: .98rem; }
.check-list .ic {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; margin-top: 2px;
  display: grid; place-items: center; color: var(--cyan);
  background: rgba(0,212,255,.1); border: 1px solid var(--border-strong); font-size: .8rem;
}

/* Form card */
.lead-card { padding: 1.8rem; }
.lead-card h3 { text-align: center; margin-bottom: .3rem; font-size: 1.35rem; font-family: var(--font-title); }
.lead-card .sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.lead-card form { margin-top: .5rem; }

/* ---------- Phone mockup (before/after) ---------- */
.mock-row { display: flex; gap: 1.4rem; justify-content: center; align-items: flex-end; }
.phone {
  width: 168px; border-radius: 26px; padding: 10px;
  background: linear-gradient(160deg, #1c2c4a, #0b1526);
  border: 1px solid var(--border-strong); box-shadow: var(--glow-soft), var(--glow-cyan);
  position: relative;
}
.phone .notch { width: 46px; height: 5px; border-radius: 3px; background: #2c3d5c; margin: 2px auto 8px; }
.phone .screen { border-radius: 18px; overflow: hidden; background: #060d18; aspect-ratio: 9/17; position: relative; }
.phone .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2; }
/* browser variant */
.screen.browser { display: flex; flex-direction: column; }
.screen .urlbar { display: flex; align-items: center; gap: 5px; padding: 8px 8px; background: #101d33; border-bottom: 1px solid #1c2c4a; font-family: var(--font-mono); font-size: 8px; color: var(--muted-2); }
.screen .urlbar .u { flex: 1; background: #0a1526; border-radius: 5px; padding: 4px 6px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen .body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.screen .body .bar { height: 7px; border-radius: 4px; background: #1a2942; }
.screen .body .bar.w1 { width: 80%; } .screen .body .bar.w2 { width: 55%; } .screen .body .bar.w3 { width: 68%; }
.screen .body .block { margin-top: auto; height: 30px; border-radius: 8px; background: linear-gradient(100deg, rgba(0,212,255,.3), rgba(30,144,255,.3)); }
/* app variant */
.screen.app { display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.screen.app .appicon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--cyan), var(--accent));
  color: #04121f; font-family: var(--font-title); font-weight: 800; font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(0,212,255,.5);
}
.screen.app .statusbar { position: absolute; top: 0; left: 0; right: 0; height: 16px; display: flex; justify-content: space-between; align-items: center; padding: 0 8px; font-family: var(--font-mono); font-size: 7px; color: #cfe6ff; }
.phone .caption { text-align: center; font-size: .74rem; color: var(--muted); margin-top: .7rem; font-family: var(--font-mono); }
.arrow-between { align-self: center; color: var(--cyan); font-size: 1.6rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { padding: 1.4rem; }
.step .n { font-family: var(--font-mono); color: var(--cyan); font-size: .85rem; margin-bottom: .8rem; display: inline-flex; width: 34px; height: 34px; border-radius: 9px; align-items: center; justify-content: center; background: rgba(0,212,255,.08); border: 1px solid var(--border-strong); }
.step h3 { margin-bottom: .4rem; }
.step p { font-size: .9rem; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { padding: 1.5rem; }
.feature .ic { font-size: 1.5rem; margin-bottom: .8rem; }
.feature h3 { margin-bottom: .4rem; }
.feature p { font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 2rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer p { font-size: .85rem; }
.site-footer .mono { color: var(--muted-2); font-size: .78rem; }

/* ---------- Code / prompt block ---------- */
.code-wrap { position: relative; }
.code-wrap pre {
  background: #060d18; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; overflow: auto; max-height: 520px;
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.7; color: #c9d8ee;
  white-space: pre-wrap; word-break: break-word;
}
.code-wrap .copy-btn {
  position: absolute; top: 1rem; right: 1rem;
  padding: .5rem .9rem; border-radius: 9px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border-strong); color: var(--cyan);
  font-family: var(--font-mono); font-size: .78rem;
}
.code-wrap .copy-btn:hover { background: rgba(0,212,255,.1); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--card); border: 1px solid var(--border-strong); color: var(--text);
  padding: .9rem 1.4rem; border-radius: 12px; box-shadow: var(--glow-soft);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2); z-index: 100; font-size: .9rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { border-color: var(--danger); }

/* ---------- Admin table ---------- */
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { padding: 1.2rem 1.4rem; }
.stat .k { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font-family: var(--font-title); font-weight: 800; font-size: 1.8rem; color: var(--text); margin-top: .3rem; }
.stat .v.cyan { color: var(--cyan); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.leads { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 900px; }
table.leads th, table.leads td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.leads th { background: var(--surface); color: var(--muted); font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; position: sticky; top: 0; }
table.leads td { color: var(--text); }
table.leads tr:hover td { background: rgba(0,212,255,.04); }
table.leads .utm { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan-soft); }
.gate { max-width: 420px; margin: 8vh auto; padding: 2rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: none; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .header-tag { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .phone { width: 140px; }
  .mock-row { gap: .8rem; }
}
