/* ===== Stocksense by Alvy — landing ===== */

:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-light: #34d399;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.22);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.container--narrow { max-width: 800px; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

.grad {
  background: linear-gradient(100deg, var(--emerald), var(--emerald-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.97rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(5, 150, 105, 0.7);
}
.btn--primary:hover { background: var(--emerald-dark); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn--white { background: #fff; color: var(--emerald-dark); }
.btn--lg { padding: 15px 30px; font-size: 1.04rem; }
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -16px rgba(15, 23, 42, 0.4);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { display: flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 1.16rem; font-weight: 800; }
.brand__text small { font-size: 0.72rem; color: var(--emerald); font-weight: 700; }
.brand--light .brand__text strong { color: #fff; }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--slate);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--emerald); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(5, 150, 105, 0.13), transparent),
    radial-gradient(700px 380px at 5% 10%, rgba(52, 211, 153, 0.1), transparent),
    var(--bg-alt);
  padding: clamp(48px, 8vw, 90px) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.55rem);
  font-weight: 900;
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--slate);
  max-width: 30em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}
.hero__check { list-style: none; display: grid; gap: 9px; }
.hero__check li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero__check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  background: var(--emerald);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ===== Phone mockup ===== */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 268px;
  background: #0b1220;
  border-radius: 38px;
  padding: 13px;
  box-shadow: 0 40px 80px -28px rgba(15, 23, 42, 0.55);
}
.phone__notch {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #0b1220;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone__screen {
  background: var(--bg-alt);
  border-radius: 27px;
  overflow: hidden;
  padding: 16px 14px;
}
.scr__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 14px 2px 12px;
}
.scr__dot {
  width: 9px; height: 9px;
  background: var(--emerald);
  border-radius: 50%;
}
.scr__cam {
  position: relative;
  height: 168px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.scr__frame {
  width: 76%;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 9px;
}
.scr__laser {
  position: absolute;
  left: 12%;
  width: 76%;
  height: 2.5px;
  background: var(--emerald-light);
  box-shadow: 0 0 12px 2px var(--emerald-light);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 30%; }
  50% { top: 68%; }
}
.scr__tag {
  position: absolute;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.scr__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  margin-top: 12px;
}
.scr__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scr__row strong { font-size: 0.92rem; }
.badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.badge--ok { background: #d1fae5; color: var(--emerald-dark); }
.scr__ean {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 3px;
  font-family: ui-monospace, monospace;
}
.scr__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.scr__btn {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  padding: 9px 0;
  border-radius: 9px;
}
.scr__btn--in { background: var(--emerald); }
.scr__btn--out { background: #dc2626; }

.floaty {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 13px;
  border-radius: 12px;
  animation: float 4s ease-in-out infinite;
}
.floaty--1 { top: 16%; left: -8%; }
.floaty--2 { bottom: 14%; right: -10%; animation-delay: 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ===== Trust strip ===== */
.strip {
  background: var(--ink);
  color: #fff;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 22px;
}
.strip__item { text-align: center; }
.strip__item b {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--emerald-light);
}
.strip__item span { font-size: 0.86rem; color: #cbd5e1; }

/* ===== Sections ===== */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--emerald-light); }
.section__head p { color: var(--slate); margin-top: 12px; font-size: 1.04rem; }

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.card--plain:hover { transform: none; box-shadow: none; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 0.96rem; }
.card--plain h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  background: var(--emerald);
  border-radius: 999px;
  margin-bottom: 14px;
}
.ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: #ecfdf5;
  border-radius: 13px;
  margin-bottom: 16px;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.step__num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--emerald);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 12px;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 7px; }
.step p { color: var(--slate); font-size: 0.96rem; }

/* ===== IA section ===== */
.ia {
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(5, 150, 105, 0.28), transparent),
    linear-gradient(160deg, var(--ink), #052e23);
  color: #fff;
  padding: clamp(56px, 9vw, 96px) 0;
}
.ia__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.ia__copy p { color: #cbd5e1; margin: 14px 0 22px; font-size: 1.05rem; }
.ia__list { list-style: none; display: grid; gap: 14px; }
.ia__list li {
  position: relative;
  padding-left: 30px;
  color: #e2e8f0;
  font-size: 0.99rem;
}
.ia__list li b { color: #fff; }
.ia__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--emerald-light);
  font-weight: 900;
}
.ia__panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(6px);
}
.ia__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-weight: 600;
}
.ia__pill {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
}
.ia__pill--high { background: #fecaca; color: #991b1b; }
.ia__pill--mid { background: #fde68a; color: #92400e; }
.ia__pill--ok { background: #a7f3d0; color: #065f46; }
.ia__foot {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
}

/* ===== Use cases ===== */
.use {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.use:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.use span { font-size: 2rem; }
.use h3 { font-size: 1rem; margin-top: 10px; }
.use__note {
  text-align: center;
  color: var(--slate);
  margin-top: 28px;
  font-size: 0.98rem;
}

/* ===== Planbox ===== */
.planbox {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.planbox__main { padding: 38px 36px; }
.planbox__main h3 { font-size: 1.4rem; margin-bottom: 10px; }
.planbox__main p { color: var(--slate); }
.planbox__list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.planbox__list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  font-weight: 500;
}
.planbox__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 900;
}
.planbox__cta {
  background: linear-gradient(160deg, #ecfdf5, #d1fae5);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.planbox__price {
  font-size: 1.05rem;
  color: var(--emerald-dark);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
}
.planbox__price b { font-size: 1.7rem; font-weight: 900; }
.planbox__cta .btn { width: 100%; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 4px 20px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--emerald); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--emerald);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  color: var(--slate);
  padding: 0 0 16px;
  font-size: 0.96rem;
}

/* ===== Final CTA ===== */
.final {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  text-align: center;
}
.final__inner { padding: clamp(56px, 9vw, 88px) 22px; }
.final h2 { color: #fff; }
.final p { margin: 14px 0 26px; color: #d1fae5; font-size: 1.08rem; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 56px 0 26px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 36px;
}
.footer__brand p { margin-top: 14px; font-size: 0.92rem; max-width: 28em; }
.footer__col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  font-size: 0.92rem;
  padding: 5px 0;
  color: #cbd5e1;
  transition: color 0.15s ease;
}
.footer__col a:hover { color: var(--emerald-light); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: #94a3b8;
}

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero__grid, .ia__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 14px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .planbox { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 620px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .floaty--1 { left: 0; }
  .floaty--2 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scr__laser, .floaty { animation: none; }
  html { scroll-behavior: auto; }
}
