/* Asthero.com.br landing — v5: real app screenshots driving the visual.
   Hero is text-only; below it a full-bleed Cosmos shot. Feature rows
   then alternate text/image. Cards, pricing, FAQ, footer follow the
   same minimal violet-on-navy palette. */

* { box-sizing: border-box; }

:root {
  --bg:           #08090b;
  --bg-2:         #0d0e11;
  --surface:      #111215;
  --surface-2:    #16181c;
  --border:       #1f2024;
  --border-strong:#2a2c33;
  --text:         #ededee;
  --muted:        #8a8d96;
  --muted-strong: #b4b7bf;
  --accent:       #7c5cff;
  --accent-deep:  #5b39e8;
  --accent-soft:  rgba(124, 92, 255, 0.12);
  --accent-line:  rgba(124, 92, 255, 0.5);
  --good:         #4ade80;
  --warn:         #fbbf24;
  --max-w:        1180px;
  --radius:       6px;
  --radius-lg:    10px;
  color-scheme: dark;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124, 92, 255, 0.16), transparent 55%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

img { max-width: 100%; height: auto; display: block; }

code {
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 0.06em 0.36em;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
}

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

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.94rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 24px rgba(124, 92, 255, 0.25);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-primary[disabled], .btn-ghost[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }

.link-ghost { font-size: 0.93rem; color: var(--muted-strong); }
.link-ghost:hover { color: var(--text); }

/* --- Nav ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav > * { display: flex; align-items: center; }

.brand { gap: 8px; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.brand-mark { color: var(--accent); }

.nav-links { gap: 24px; font-size: 0.92rem; color: var(--muted-strong); }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { gap: 14px; }

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

.hero {
  text-align: center;
  padding: 100px 32px 60px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--muted-strong);
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 860px;
}

.grad {
  background: linear-gradient(135deg, #b39cff 0%, var(--accent) 50%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: 0;
  max-width: 600px;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  color: var(--muted-strong);
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.hero-fine {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* --- Screenshot framing -------------------------------------------- */

/* Generic frame for any app screenshot: dark frame, accent-line border,
   deep shadow under it. Placeholder shimmer when the image is missing,
   so the page never looks broken before the user drops the PNG in. */
.shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder hint visible behind broken image icon while the real PNG
   isn't dropped yet. Uses pseudo-element so it doesn't push layout. */
.shot::before {
  content: "📷  imagem em /img/ aguardando";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
}
.shot img { position: relative; z-index: 1; }
.shot img[src=""], .shot img:not([src]) { display: none; }

.shot-hero {
  max-width: 1100px;
  margin: 0 auto;
}
/* No object-fit cropping: let the image dictate its natural height.
   The screenshots are 1580 × 866 (~16 : 8.7) — if we forced 16:9 with
   `cover`, the kanban bottom of the Projects shot was clipping. */
.shot-hero img { display: block; }

.hero-shot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 32px 100px;
}
.shot-caption {
  text-align: center;
  margin: 20px 0 0;
  font-size: 0.92rem;
  color: var(--muted-strong);
}
.shot-caption strong { color: var(--text); }

/* --- Section common ----------------------------------------------- */

section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px 32px;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.022em;
  line-height: 1.1;
  font-weight: 700;
}
.section-head p {
  margin: 0;
  max-width: 580px;
  color: var(--muted-strong);
  font-size: 1rem;
}

.eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted-strong);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Feature rows (text + screenshot alternating) ----------------- */

.row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.3fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.row-reverse { grid-template-columns: 1.3fr minmax(280px, 1fr); }
.row-reverse .row-text { order: 2; }
.row-reverse .shot { order: 1; }

.row-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.row-eyebrow {
  display: inline-block;
  width: max-content;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: #b39cff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.row-text h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.row-text p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted-strong);
  line-height: 1.55;
}

.row-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}
.row-link:hover { color: var(--text); }

/* Same rationale as .shot-hero — no forced aspect-ratio + cover crop. */
.shot-row img { display: block; }

/* --- Features grid (small cards for the rest) --------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 60px;
}

.feat {
  padding: 30px 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}
.feat:hover { background: var(--surface); }

.feat-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--accent);
}
.feat h3 { margin: 0; font-size: 1.04rem; font-weight: 600; }
.feat p { margin: 0; font-size: 0.9rem; color: var(--muted-strong); line-height: 1.55; }

/* --- Pricing -------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
}
.plan-feat {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 40%);
}
.plan-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.68rem;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.plan-feat .plan-tag { background: var(--accent); border-color: var(--accent); color: #fff; }

.plan h3 { margin: 0; font-size: 0.96rem; font-weight: 600; color: var(--muted-strong); letter-spacing: 0.02em; text-transform: uppercase; }
.plan-price { margin: 0; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.plan-period { margin: 0; font-size: 0.85rem; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan li { font-size: 0.9rem; color: var(--muted-strong); padding-left: 22px; position: relative; }
.plan li::before {
  content: "";
  position: absolute; left: 4px; top: 7px;
  width: 12px; height: 8px;
  border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}
.plan-cta { width: 100%; margin-top: 6px; }

/* --- FAQ ------------------------------------------------------------ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq details {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.2s;
}
.faq details:last-child { border-bottom: 0; }
.faq details[open] { background: var(--surface); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 300;
  transition: transform 0.2s, color 0.2s;
}
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.93rem;
  color: var(--muted-strong);
  line-height: 1.6;
}

/* --- Final CTA + footer -------------------------------------------- */

.final-cta {
  max-width: 720px;
  text-align: center;
  padding: 100px 32px;
}
.final-cta h2 { margin: 0 0 14px; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.022em; font-weight: 700; }
.final-cta > p { margin: 0 0 28px; color: var(--muted-strong); font-size: 1.04rem; }

.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 32px 36px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand { font-size: 1.04rem; }
.footer-brand p { margin: 0; font-size: 0.88rem; color: var(--muted); max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { margin: 0 0 4px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.footer-col a { font-size: 0.89rem; color: var(--muted-strong); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); }

/* --- Responsive ----------------------------------------------------- */

@media (max-width: 960px) {
  .row, .row-reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 70px;
  }
  .row-reverse .row-text, .row-reverse .shot { order: 0; }
  .hero-shot { padding: 20px 20px 70px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 700px) {
  .nav { padding: 12px 16px; gap: 16px; }
  .nav-links { display: none; }
  .hero { padding: 70px 20px 40px; }
  section { padding: 70px 16px; }
  .final-cta { padding: 60px 16px; }
  .footer { padding: 40px 16px 30px; }
  .footer-grid { grid-template-columns: 1fr; }
}
