/* =============================================================
   ALONSO · SEO — premium dark landing
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0a0e0d;   /* warm charcoal, faint green tint (never pure black) */
  --bg-2:      #0e1413;
  --bg-3:      #121a18;   /* raised panels */
  --ink:       #f3f7f5;   /* near-white text (never #fff) */
  --ink-soft:  #b7c2be;
  --ink-mute:  #7a8783;
  --accent:    #10B981;   /* emerald */
  --accent-2:  #34d399;   /* lighter emerald for gradients */
  --accent-dk: #0e9c6d;
  --glass:     rgba(255,255,255,0.045);
  --glass-2:   rgba(255,255,255,0.02);
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.055);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1120px;
  --radius: 18px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.025em; font-weight: 700; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: #04120c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--accent); color: #04120c;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Ambient background
   ============================================================= */
.bg-mesh {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(16,185,129,0.14), transparent 60%),
    radial-gradient(50% 45% at 88% 4%, rgba(52,211,153,0.10), transparent 60%),
    radial-gradient(70% 60% at 50% 120%, rgba(16,185,129,0.08), transparent 60%);
  filter: blur(30px);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  left: var(--gx, 50%); top: var(--gy, 18%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(16,185,129,0.16), transparent 62%);
  filter: blur(40px);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.bg-glow.is-on { opacity: 1; }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; letter-spacing: -0.01em;
  padding: .8rem 1.4rem; border-radius: 999px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #04120c;
  box-shadow: 0 8px 30px -8px rgba(16,185,129,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(16,185,129,0.7), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--glass);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-xl { padding: 1.15rem 2.2rem; font-size: 1.1rem; }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10,14,13,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, var(--accent-2), var(--accent-dk));
  color: #04120c; font-weight: 800; font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.brand-text { font-size: 1.06rem; }
.brand-dot { color: var(--accent); }
.nav-links { display: none; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 960px) { .nav-links { display: flex; } }

/* =============================================================
   7. Hero
   ============================================================= */
.hero { padding: 150px 0 70px; position: relative; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title { font-size: clamp(2.5rem, 7vw, 4.9rem); line-height: 1.02; max-width: 17ch; }
.hero-sub {
  margin-top: 1.4rem; max-width: 56ch; color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.1rem; }
.hero-micro {
  margin-top: 1.2rem; color: var(--ink-mute); font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }

/* Product mockup */
.hero-visual { margin-top: 4rem; width: 100%; max-width: 860px; position: relative; transform-style: preserve-3d; }
.browser {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02);
}
.browser-bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--line-2);
  background: rgba(255,255,255,0.02);
}
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.browser-url {
  font-family: var(--mono); font-size: .78rem; color: var(--ink-mute);
  background: rgba(0,0,0,0.25); padding: .3rem .8rem; border-radius: 8px;
  flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-shot { display: block; width: 100%; height: auto; }
.browser-body { padding: .4rem .2rem; text-align: left; }
.kw-head, .kw-row {
  display: grid; grid-template-columns: 1fr 80px 70px; align-items: center;
  gap: 1rem; padding: .75rem 1.2rem; font-size: .9rem;
}
.kw-head { color: var(--ink-mute); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.kw-row { border-top: 1px solid var(--line-2); color: var(--ink-soft); }
.kw-row span:first-child { color: var(--ink); }
.kw-row span:nth-child(2) { font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.diff {
  justify-self: end; font-family: var(--mono); font-weight: 600; font-size: .82rem;
  width: 38px; height: 26px; display: grid; place-items: center; border-radius: 7px;
}
.diff-low { color: #6ee7b7; background: rgba(16,185,129,0.16); }
.diff-mid { color: #fcd34d; background: rgba(234,179,8,0.14); }
.visual-note {
  position: absolute; right: 10px; bottom: -26px;
  font-family: var(--mono); font-size: .68rem; color: var(--ink-mute);
}

/* Mobile: shorter hero so the CTA appears sooner */
@media (max-width: 639px) {
  .hero { padding: 100px 0 40px; }
  .hero-sub { margin-top: .9rem; }
  .hero-actions { margin-top: 1.4rem; width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-visual { margin-top: 2.1rem; }
}

/* =============================================================
   8. Trust strip
   ============================================================= */
.trust { padding: 2.2rem 0; border-block: 1px solid var(--line-2); background: var(--glass-2); }
.trust-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
.trust-label { color: var(--ink-mute); font-size: .9rem; }
.trust-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem;
}
.trust-list li {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.trust-list li::before { content: "◆"; color: var(--accent); font-size: .6rem; }

/* =============================================================
   9. Sections
   ============================================================= */
.section { padding: 92px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 20% 80%, transparent); }
.section-title { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 20ch; }
.section-lead { margin-top: 1.2rem; max-width: 60ch; color: var(--ink-soft); font-size: clamp(1.02rem, 2.2vw, 1.18rem); }

/* Cards */
.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .4s var(--ease-out), border-color .3s, background .3s;
}
@supports (backdrop-filter: blur(12px)) {
  .card { background: var(--glass); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); }
}
.card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,0.35); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

.grid { display: grid; gap: 1.1rem; margin-top: 2.6rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Steps */
.steps { display: grid; gap: 1.1rem; margin-top: 2.8rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: 1.7rem; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--glass-2);
  transition: transform .4s var(--ease-out), border-color .3s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(16,185,129,0.3); }
.step-num {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 500;
  color: var(--accent-2);
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25);
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }
.steps-plain .step { background: transparent; }

/* Why Mangools */
.why-inner { display: grid; gap: 2.4rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .why-inner { grid-template-columns: 1.15fr .85fr; } }
.why-list { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.why-list li { display: flex; gap: .7rem; align-items: baseline; color: var(--ink-soft); }
.why-list li span { color: var(--accent); font-weight: 700; }
.why-quote { padding: 2.2rem; }
.why-quote blockquote {
  font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.3; color: var(--ink);
}
.why-quote figcaption { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; }
.avatar {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(150deg, var(--accent-2), var(--accent-dk));
  color: #04120c; font-weight: 800; font-size: 1.15rem; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.author { display: flex; flex-direction: column; line-height: 1.3; }
.author strong { font-weight: 600; }
.author em { color: var(--ink-mute); font-size: .9rem; }

/* Why I use Mangools — personal trust */
.trustme { display: grid; gap: 2.4rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .trustme { grid-template-columns: .82fr 1.18fr; } }
.trustme-photo { display: flex; flex-direction: column; gap: 1rem; }
.trustme-portrait {
  aspect-ratio: 4 / 5; width: 100%; max-width: 340px;
  border-radius: 20px; display: grid; place-items: center;
  font-size: 5rem; font-weight: 800; color: #04120c;
  background: linear-gradient(160deg, var(--accent-2), var(--accent-dk));
  background-size: cover; background-position: center;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
/* To use a real photo: add background-image on [data-portrait] and set color:transparent */
.trustme-photo figcaption { display: flex; flex-direction: column; line-height: 1.4; }
.trustme-photo strong { font-weight: 600; }
.trustme-photo em { color: var(--ink-mute); font-size: .9rem; }
.trustme-honest {
  margin: 1.4rem 0 1.8rem; color: var(--ink-soft); font-size: .96rem;
  border-left: 2px solid rgba(16,185,129,0.45); padding-left: 1rem;
}
/* Single-column, centered variant (profile card removed) */
.trustme.trustme--solo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.trustme--solo .trustme-text { max-width: 680px; }
.trustme--solo .section-title,
.trustme--solo .section-lead { margin-left: auto; margin-right: auto; }
.trustme--solo .why-list { justify-items: center; }
.trustme--solo .why-list li { justify-content: center; }
.trustme--solo .trustme-honest { border-left: none; padding-left: 0; }

/* Tools */
.tool { display: flex; flex-direction: column; }
.tool-tag {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .06em; color: var(--accent-2);
  padding: .28rem .6rem; border-radius: 7px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.22);
}
.tool .tool-tag { margin-top: auto; align-self: flex-start; padding-top: .28rem; }
.tool h3 + p { margin-bottom: 1.2rem; }
.tool-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background: linear-gradient(160deg, rgba(16,185,129,0.14), rgba(16,185,129,0.03)); }
.tool-cta .btn { margin-top: 1rem; }

/* Benefits + screenshots */
.benefit { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; margin-top: 3.4rem; }
.benefit:first-of-type { margin-top: 2.8rem; }
@media (min-width: 860px) {
  .benefit { grid-template-columns: 1fr 1fr; gap: 3.2rem; }
  .benefit-rev .benefit-text { order: 2; }
}
.benefit-text h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .8rem; }
.benefit-text p { color: var(--ink-soft); font-size: 1.05rem; }
.shot { transform-style: preserve-3d; }
.shot-img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}

/* CTA band */
.cta-band { padding: 20px 0; }
.cta-band-inner {
  text-align: center; padding: 3.4rem 1.6rem; border-radius: 26px;
  border: 1px solid rgba(16,185,129,0.25);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(16,185,129,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: 0 40px 90px -40px rgba(16,185,129,0.35);
}
.cta-band-inner h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.cta-band-inner p { color: var(--ink-soft); margin-top: .8rem; }
.cta-band-inner .btn { margin-top: 1.8rem; }
.cta-band-inner .hero-micro { justify-content: center; display: flex; }

/* FAQ */
.faq-inner { max-width: 780px; margin-inline: auto; }
.faq { margin-top: 2.4rem; display: grid; gap: .8rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--glass-2); overflow: hidden;
  transition: border-color .3s;
}
.faq-item[open] { border-color: rgba(16,185,129,0.3); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--accent-2);
  transition: transform .3s var(--ease-out); line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; }
.faq-a p { color: var(--ink-soft); }

/* Final CTA */
.final-cta { text-align: center; }
.final-inner { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
.final-cta .btn { margin-top: 2rem; }
.final-cta .hero-micro { justify-content: center; }

/* =============================================================
   10. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line-2); padding: 3rem 0; background: var(--bg-2); }
.footer-inner { display: grid; gap: 1.4rem; }
.footer-brand p { color: var(--ink-mute); margin-top: .6rem; font-size: .95rem; }
.footer-disclosure { color: var(--ink-mute); font-size: .85rem; max-width: 65ch; line-height: 1.7; }
.footer-copy { color: var(--ink-mute); font-size: .85rem; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .footer-copy { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line-2); }
}

/* =============================================================
   11. Reveal animation (functional — NOT gated by reduced-motion)
   ============================================================= */
/* Default (no JS): fully visible. Only hide when the `js` class is present,
   which an inline <head> script sets before paint. This guarantees content
   is never invisible if JavaScript fails to load. */
.reveal { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   12. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .bg-glow { display: none; }
  /* reveals still work (they're gentle); tilt/hover/fade kept on purpose */
}
