/* ===== Trelis — design tokens ===== */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-tint: #F1EEFC;
  --text: #1B2430;
  --text-secondary: #5B6B7A;
  --purple: #9B4DFF;
  --purple-deep: #6E1FD9;
  --purple-dark: #4C1494;
  --purple-soft: #C9A6FA;
  --border: rgba(27, 36, 48, 0.08);
  --grad-block: linear-gradient(155deg, #e2d4fb 0%, #b89bf0 45%, #9b7de0 100%);
  --grad-block-strong: linear-gradient(155deg, #b89bf0 0%, #8b5fd6 50%, #6e1fd9 100%);
  --gradient-night: linear-gradient(160deg, #150C29 0%, #3D1F73 55%, #6E1FD9 100%);
  --shadow-sm: 0 2px 10px rgba(76, 20, 148, 0.06);
  --shadow-md: 0 12px 32px rgba(76, 20, 148, 0.10);
  --shadow-lg: 0 24px 60px rgba(76, 20, 148, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --glow-1: rgba(155, 77, 255, 0.10);
  --glow-2: rgba(110, 31, 217, 0.07);
  --glow-3: rgba(201, 166, 250, 0.14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171220;
    --surface: #211A2E;
    --surface-tint: #2A2138;
    --text: #EFEAF7;
    --text-secondary: #B3A8C9;
    --purple: #B98CFF;
    --purple-deep: #C9A6FA;
    --purple-dark: #D9C2FF;
    --purple-soft: #8B5FD6;
    --border: rgba(239, 234, 247, 0.10);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.45);
    --glow-1: rgba(185, 140, 255, 0.16);
    --glow-2: rgba(201, 166, 250, 0.10);
    --glow-3: rgba(139, 95, 214, 0.20);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #171220;
  --surface: #211A2E;
  --surface-tint: #2A2138;
  --text: #EFEAF7;
  --text-secondary: #B3A8C9;
  --purple: #B98CFF;
  --purple-deep: #C9A6FA;
  --purple-dark: #D9C2FF;
  --purple-soft: #8B5FD6;
  --border: rgba(239, 234, 247, 0.10);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.45);
  --glow-1: rgba(185, 140, 255, 0.16);
  --glow-2: rgba(201, 166, 250, 0.10);
  --glow-3: rgba(139, 95, 214, 0.20);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, var(--glow-1), transparent 42%),
    radial-gradient(circle at 92% 18%, var(--glow-2), transparent 38%),
    radial-gradient(circle at 50% 100%, var(--glow-3), transparent 50%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: "Poppins", -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.1rem; font-family: "Inter", sans-serif; font-weight: 700; }

p { margin: 0 0 16px; }
.text-secondary { color: var(--text-secondary); text-align: justify; hyphens: auto; }

.text-gradient {
  background: var(--grad-block-strong);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 500;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 84px; transition: height .35s ease; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; text-decoration: none; transition: color .35s ease; }
.logo img { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.nav { display: flex; gap: 26px; }
.nav a { font-weight: 600; font-size: .92rem; color: rgba(255,255,255,0.9); position: relative; padding: 6px 0; text-decoration: none; transition: color .35s ease; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--grad-block-strong); transition: width .25s ease; }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.link-plain { text-decoration: none; color: rgba(255,255,255,0.9); font-weight: 600; font-size: .92rem; transition: color .35s ease; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: background .35s ease; }

.header.is-scrolled { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.header.is-scrolled .header__inner { height: 68px; }
.header.is-scrolled .logo { color: var(--text); }
.header.is-scrolled .nav a { color: var(--text-secondary); }
.header.is-scrolled .link-plain { color: var(--text-secondary); }
.header.is-scrolled .hamburger span { background: var(--text); }

.nav-mobile {
  display: none; flex-direction: column; gap: 4px; background: var(--surface); padding: 10px 24px 24px;
  box-shadow: var(--shadow-md); position: absolute; top: 100%; left: 0; right: 0;
}
.nav-mobile a { padding: 12px 4px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text); text-decoration: none; }
.nav-mobile .btn { margin-top: 14px; width: 100%; }
.nav-mobile.is-open { display: flex; }

@media (max-width: 900px) {
  .nav, .header-actions .link-plain { display: none; }
  .hamburger { display: flex; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--grad-block-strong); color: #fff; box-shadow: 0 10px 24px rgba(110,31,217,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(110,31,217,0.45); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-ghost-dark { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-ghost { background: var(--surface-tint); color: var(--purple-dark); }
.btn-light { background: #fff; color: var(--purple-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  margin-top: -84px; padding-top: 150px; padding-bottom: 70px;
  background: var(--gradient-night);
  display: flex; align-items: center;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 60%; height: 90%;
  background: radial-gradient(circle, rgba(155,77,255,0.28) 0%, rgba(155,77,255,0) 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center;
}
.hero__eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  color: #E8D9FF; font-weight: 700; font-size: .82rem; letter-spacing: .02em; margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero__lead { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 480px; text-align: left; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero__credibility { margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,0.68); }
.hero__credibility a { color: #E8D9FF; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(232,217,255,0.5); }

.hero__illustration { max-width: 380px; margin: 0 auto; }
.hero__illustration svg { width: 100%; height: auto; display: block; }
.hero__illustration figcaption { margin: 14px 0 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,0.6); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 28px; height: 44px; border: 2px solid rgba(255,255,255,0.45); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px;
  background: #fff; border-radius: 2px; animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 1; top: 7px; } 70% { opacity: 0; top: 24px; } 100% { opacity: 0; top: 7px; } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin: 0 auto; }
  .hero__actions { justify-content: center; }
  .hero__illustration { order: -1; max-width: 260px; }
}

/* ===== Trust strip ===== */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); padding: 32px 0; }
.trust__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__icon { font-size: 1.5rem; flex-shrink: 0; }
.trust__item strong { display: block; font-size: .9rem; color: var(--text); }
.trust__item span { font-size: .78rem; color: var(--text-secondary); }
@media (max-width: 640px) { .trust__inner { grid-template-columns: 1fr; } }

/* ===== Sections ===== */
section { padding: 0; }
.section { padding: 84px 0; }
.section--muted { background: var(--surface-tint); }
.section__head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section__head .eyebrow { margin-bottom: .6em; }
.section__lead { text-align: center; color: var(--text-secondary); }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--purple-dark);
}

.problem-idea p { font-size: 1.03rem; }
.problem-idea h2, .problem-idea .section__head { text-align: center; }

/* ===== Squircle icon block ===== */
.squircle {
  position: relative; width: 56px; height: 56px; border-radius: 20px;
  background: var(--grad-block); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0; box-shadow: var(--shadow-sm); overflow: hidden;
}
.squircle::before {
  content: ''; position: absolute; top: -20%; left: -20%; width: 65%; height: 65%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 70%); border-radius: 50%;
}
.squircle-strong { background: var(--grad-block-strong); }
.squircle-lg { width: 68px; height: 68px; border-radius: 24px; font-size: 1.9rem; }

/* ===== Cards grid (camadas) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card .squircle { margin-bottom: 16px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text-secondary); font-size: .93rem; margin: 0; text-align: justify; hyphens: auto; }
.card .layer-num { display: block; font-family: "Poppins", sans-serif; font-weight: 600; color: var(--purple-soft); font-size: .85rem; margin-bottom: 2px; }

/* ===== Pull quote (gradient band) ===== */
.pull-quote {
  padding: 48px 36px; background: var(--grad-block-strong); border-radius: var(--radius-lg);
  text-align: center; box-shadow: var(--shadow-md);
}
.pull-quote p {
  font-family: "Poppins", sans-serif; font-size: clamp(1.3rem, 3.2vw, 1.7rem); font-weight: 500;
  color: #fff; margin: 0; line-height: 1.4;
}

/* ===== Steps (4 passos) ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { text-align: center; }
.step-card .squircle { margin: 0 auto 14px; }
.step-card span { font-weight: 700; font-size: .92rem; }
@media (max-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ===== Differential (dark gradient banner) ===== */
.diff-banner {
  position: relative; background: var(--gradient-night); border-radius: var(--radius-lg);
  padding: 56px 44px; color: #fff; overflow: hidden; box-shadow: var(--shadow-lg);
}
.diff-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(155,77,255,0.25), transparent 55%);
  pointer-events: none;
}
.diff-banner__head { position: relative; z-index: 1; max-width: 620px; margin: 0 auto 40px; text-align: center; }
.diff-banner__head .eyebrow { color: #C9A6FA; }
.diff-banner__head h2 { color: #fff; }
.diff-banner__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 26px; }
.diff-item { display: flex; gap: 14px; }
.diff-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2); color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.diff-item p { color: rgba(255,255,255,0.78); font-size: .92rem; margin: 0; }
.diff-solution {
  position: relative; z-index: 1; display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md); padding: 20px 22px;
}
.diff-solution .diff-num { background: var(--grad-block-strong); border: none; }
.diff-solution p { color: #fff; font-weight: 600; margin: 0; font-size: .98rem; }
@media (max-width: 860px) { .diff-banner { padding: 40px 24px; } .diff-banner__grid { grid-template-columns: 1fr; gap: 20px; } }

/* ===== CTA banner (full-bleed) ===== */
.cta-banner { background: var(--grad-block-strong); padding: 64px 0; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 460px; margin: 0 auto 1.6em; }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq__question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; padding: 20px 24px; text-align: left; font-weight: 700; font-size: .98rem; color: var(--text);
}
.faq__question span { font-size: 1.3rem; color: var(--purple); transition: transform .3s ease; flex-shrink: 0; }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 24px; }
.faq__answer p { padding-bottom: 20px; margin: 0; font-size: .92rem; }
.faq__item.is-active .faq__answer { max-height: 300px; }
.faq__item.is-active .faq__question span { transform: rotate(45deg); }

/* ===== Pricing card ===== */
.pricing-card {
  text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 32px; box-shadow: var(--shadow-sm);
}

/* ===== Footer ===== */
.footer { background: var(--gradient-night); color: rgba(255,255,255,0.72); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 0.7fr 0.85fr 0.85fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__brand-mark img { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
.footer__brand-mark span { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: .86rem; max-width: 280px; margin: 0; }
.footer__col h4 { color: #fff; font-size: .82rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em; }
.footer__col { display: flex; flex-direction: column; gap: 11px; font-size: .88rem; }
.footer__col a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer__col a:hover { color: #E8D9FF; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0; font-size: .78rem; color: rgba(255,255,255,0.5); }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; gap: 28px; } }

/* ===== Article-style pages (ciência) ===== */
.article { max-width: 780px; margin: 0 auto; }

/* ===== Contact form ===== */
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-family: "Inter", sans-serif; font-size: .95rem; color: var(--text); background: var(--bg);
  transition: border-color .2s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--purple); }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-disabled {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: var(--border); color: var(--text-secondary); border: none; cursor: not-allowed; width: 100%;
}
