/* =========================================================
   LEGAN GROUP — Landing page institucional
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — extraído do gradiente e do azul-marinho do logotipo */
  --ink: #070b24;
  --ink-soft: #4b4f66;
  --ink-faint: #8589a0;
  --blue: #1367ff;
  --violet: #5b12e0;
  --magenta: #c023fd;
  --paper: #fafafc;
  --cloud: #f0f1f7;
  --line: #e3e4ee;
  --white: #ffffff;

  --gradient-brand: linear-gradient(135deg, var(--blue) 0%, var(--violet) 55%, var(--magenta) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(19, 103, 255, 0.12) 0%, rgba(192, 35, 253, 0.12) 100%);

  /* Type */
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --section-pad: clamp(4rem, 8vw, 6.5rem);
  --shadow-soft: 0 24px 48px -24px rgba(7, 11, 36, 0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section-pad { padding-block: var(--section-pad); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
}
.section-head p {
  margin-top: 0.9rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 42rem;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(91, 18, 224, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(91, 18, 224, 0.65); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover { box-shadow: 0 14px 28px -14px rgba(0,0,0,0.35); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--white); }

.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta .btn { padding: 0.7rem 1.4rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 8rem) clamp(3.5rem, 8vw, 6rem);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.5;
}
.hero::before {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 30% 30%, var(--blue), transparent 70%);
  top: -280px;
  left: 50%;
  transform: translateX(-78%);
}
.hero::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 70% 70%, var(--magenta), transparent 70%);
  top: -160px;
  left: 50%;
  transform: translateX(20%);
  opacity: 0.35;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.hero-mark img { height: 20px; width: 20px; border-radius: 6px; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mark, .hero h1, .hero-sub, .hero-actions {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero h1 { animation-delay: 0.06s; }
  .hero-sub { animation-delay: 0.14s; }
  .hero-actions { animation-delay: 0.22s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Sobre / Valores
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-copy p { font-size: 1.08rem; color: var(--ink-soft); max-width: 40ch; }
.about-copy p + p { margin-top: 1.1rem; }

.value-list {
  display: flex;
  flex-direction: column;
}
.value-item {
  display: flex;
  gap: 1.1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.value-item:last-child { padding-bottom: 0; }
.value-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand-soft);
}
.value-icon svg { width: 22px; height: 22px; }
.value-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.value-item p { color: var(--ink-soft); font-size: 0.98rem; }

/* =========================================================
   Categorias
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.category-tile {
  background: var(--cloud);
  border-radius: var(--radius-m);
  padding: 1.9rem 1.6rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.category-tile:hover { background: var(--white); box-shadow: var(--shadow-soft); transform: translateY(-3px); }

.category-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  margin-bottom: 1.2rem;
}
.category-icon svg { width: 24px; height: 24px; }

.category-tile h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.category-tile p {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* =========================================================
   Operação (linhas alternadas)
   ========================================================= */
.op-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.op-row + .op-row { margin-top: clamp(3.5rem, 8vw, 6rem); }
.op-row--reverse .op-media { order: 2; }
.op-row--reverse .op-copy { order: 1; }

.op-media {
  background: var(--cloud);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.op-media img { width: 100%; height: auto; }

.op-copy .eyebrow { margin-bottom: 0.7rem; }
.op-copy h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.op-copy p { color: var(--ink-soft); font-size: 1.02rem; max-width: 38ch; }

/* =========================================================
   Lojas / marketplaces
   ========================================================= */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.market-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 2rem 1.8rem;
  border-top: 4px solid var(--card-accent, var(--blue));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.market-card .market-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.market-card p { color: var(--ink-soft); font-size: 0.96rem; flex-grow: 1; }

/* =========================================================
   Trabalhe Conosco
   ========================================================= */
.careers {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.75rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.careers::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(19,103,255,0.35), transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(192,35,253,0.3), transparent 55%);
  pointer-events: none;
}
.careers-inner { position: relative; max-width: 34rem; margin: 0 auto; }
.careers h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}
.careers p {
  margin-top: 1.1rem;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
}
.careers .btn { margin-top: 2rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(3rem, 6vw, 4rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { height: 32px; width: 32px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.footer-tagline { font-size: 0.92rem; max-width: 26ch; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav-links, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }

  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  }
  .site-header.is-open .nav-links a { padding: 0.6rem 0; width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .op-row, .op-row--reverse { grid-template-columns: 1fr; }
  .op-row--reverse .op-media, .op-row--reverse .op-copy { order: initial; }
  .op-copy p { max-width: none; }
  .market-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
