/* ── RESET & BASE ────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent:    #6366f1;
  --accent2:   #4f46e5;
  --accent3:   #818cf8;

  /* Light */
  --black:     #0a0a0f;
  --dark:      #1a1a2e;
  --mid:       #4a5568;
  --light:     #718096;
  --border:    #e2e8f0;
  --bg:        #f7f8fc;
  --white:     #ffffff;
  --shadow:    0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);

  /* Dark */
  --nav-bg:    rgba(6,6,16,0.88);
  --hero-bg:   #03030c;
  --hero-mid:  #8892b0;
  --hero-dim:  #4a5580;

  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { color: var(--mid); }
p + p { margin-top: 12px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn--sm   { padding: 9px 20px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.hero .btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.hero .btn--ghost:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99,102,241,0.04);
}

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #1a1a35;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: #8892b0;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }
.nav__links .btn--sm {
  color: var(--white);
  background: var(--accent);
  border: none;
}
.nav__links .btn--sm:hover { background: var(--accent2); }
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #8892b0;
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  padding: 140px 0 100px;
  position: relative;
  background: var(--hero-bg);
  background-image:
    radial-gradient(at 20% 60%, rgba(99,102,241,0.28) 0px, transparent 52%),
    radial-gradient(at 78% 22%, rgba(139,92,246,0.16) 0px, transparent 42%),
    radial-gradient(at 55% 90%, rgba(79,70,229,0.12) 0px, transparent 38%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--hero-bg));
  pointer-events: none;
}
.hero__inner {
  max-width: 700px;
  position: relative;
  z-index: 1;
}
.hero__tag {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  color: var(--accent3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(129,140,248,0.25);
}
.hero__title {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 22px;
}
.hero__title span { font-weight: 700; color: var(--accent3); }
.hero__sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--hero-mid);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.stat__num {
  display: block;
  font-size: 34px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}
.stat__label { font-size: 13px; font-weight: 300; color: var(--hero-dim); margin-top: 3px; }
.stat__divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* ── LOGOS ───────────────────────────────────────── */
.logos {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.logos__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
  text-align: center;
}
.logos__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-item {
  font-size: 15px;
  font-weight: 600;
  color: #a0aec0;
  letter-spacing: -0.2px;
}

/* ── SECTION BASE ────────────────────────────────── */
.section { padding: 100px 0; }
.section--alt { background: var(--bg); }

.section__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 20px;
}
.section__title strong { font-weight: 700; color: var(--accent); }

/* ── ABOUT ───────────────────────────────────────── */
.about__split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 72px;
  align-items: start;
}
.about__left p { font-size: 16px; font-weight: 300; line-height: 1.75; }

.about__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.pill {
  background: #eef2ff;
  color: var(--accent);
  border: 1px solid #c7d7f8;
  font-size: 13px;
  font-weight: 400;
  padding: 5px 14px;
  border-radius: 100px;
}

.about__right { display: flex; flex-direction: column; gap: 16px; }

.about__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.acard__avatar {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
  margin: 0 auto 14px;
}
.acard__name  { font-size: 17px; font-weight: 600; color: var(--black); text-align: center; }
.acard__title { font-size: 12px; font-weight: 300; color: var(--light); text-align: center; margin-top: 3px; }
.acard__divider { height: 1px; background: var(--border); margin: 16px 0; }
.acard__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.acard__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--mid); }
.acard__list a { color: var(--accent); font-weight: 500; }
.acard__list a:hover { text-decoration: underline; }
.acard__list small { display: block; font-size: 11px; color: var(--light); margin-top: 1px; }
.acard__icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.about-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.about-stat--accent {
  background: #eef2ff;
  border-color: #c7d7f8;
}
.about-stat__num {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1;
}
.about-stat--accent .about-stat__num { color: var(--accent); }
.about-stat__label { display: block; font-size: 11px; font-weight: 300; color: var(--light); margin-top: 4px; line-height: 1.4; }

/* ── STATEMENT ───────────────────────────────────── */
.statement {
  padding: 88px 0;
  background: #03030c;
  background-image:
    radial-gradient(at 75% 50%, rgba(99,102,241,0.16) 0px, transparent 50%),
    radial-gradient(at 15% 80%, rgba(139,92,246,0.1) 0px, transparent 40%);
}
.statement__lead {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--hero-dim);
  margin-bottom: 24px;
}
.statement__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 820px;
  margin-bottom: 0;
}
.statement__title em {
  font-style: normal;
  color: var(--accent3);
  font-weight: 600;
}
.statement__stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.statement__num {
  display: block;
  font-size: 42px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1;
}
.statement__label {
  display: block;
  font-size: 12px;
  font-weight: 300;
  color: var(--hero-dim);
  margin-top: 6px;
  max-width: 140px;
  line-height: 1.5;
}

/* ── SERVIÇOS — linhas numeradas ─────────────────── */
.services__title {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.services__list { margin-top: 0; }

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 16px;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.2s;
  cursor: default;
}
.service-row:hover { background: var(--white); }
.service-row:last-child { border-bottom: none; }

.service-row__num {
  font-size: 12px;
  font-weight: 300;
  color: var(--light);
  width: 28px;
  flex-shrink: 0;
  padding-top: 5px;
}
.service-row__icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 30px;
  padding-top: 2px;
}
.service-row__body { flex: 1; min-width: 0; }
.service-row__body h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.service-row__body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.65;
  max-width: 560px;
}
.service-row__badge {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent3);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(129,140,248,0.3);
  padding: 2px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.service-row__tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.service-row__tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--light);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
}
.service-row__arrow {
  font-size: 20px;
  color: var(--border);
  flex-shrink: 0;
  padding-top: 4px;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}
.service-row:hover .service-row__arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.service-row--featured .service-row__body h3 { color: var(--accent2); }
.service-row--featured:hover { background: #f5f3ff; }

/* ── CASES — lista de portfólio com sanfona ──────── */
.cases__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 0;
}
.cases__header .section__title { margin-bottom: 0; }
.cases__count {
  font-size: 12px;
  font-weight: 300;
  color: var(--light);
  flex-shrink: 0;
  padding-bottom: 4px;
}

.case-row {
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.case-row:last-child { border-bottom: none; }
.case-row:hover,
.case-row.open { background: var(--bg); }

/* linha clicável */
.case-row__top {
  display: grid;
  grid-template-columns: 52px 1fr auto 32px;
  align-items: center;
  gap: 24px;
  padding: 24px 12px;
}
.case-row__num {
  font-size: 12px;
  font-weight: 300;
  color: var(--light);
}
.case-row__info h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 3px;
  line-height: 1.3;
}
.case-row__info span {
  font-size: 13px;
  font-weight: 300;
  color: var(--light);
}
.case-row__cat {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid #c7d7f8;
}
.case-row__arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--light);
  transition: color 0.25s, transform 0.3s;
}
.case-row:hover .case-row__arrow { color: var(--accent); }
.case-row.open .case-row__arrow {
  color: var(--accent);
  transform: rotate(180deg);
}

/* conteúdo expansível */
.case-row__expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 12px 0 88px;
}
.case-row.open .case-row__expand {
  max-height: 320px;
  padding: 0 12px 28px 88px;
}
.case-row__expand p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 16px;
}
.case-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-row__tags span {
  background: var(--white);
  color: var(--mid);
  font-size: 11.5px;
  font-weight: 400;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ── CONTATO — split dark/light ──────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.contact-split__dark {
  background: #03030c;
  background-image: radial-gradient(at 30% 70%, rgba(99,102,241,0.2) 0px, transparent 50%);
  display: flex;
  align-items: center;
}
.contact-split__left {
  padding: 80px 64px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.contact-split__dark .section__title { margin-bottom: 16px; }

.contact__options { display: flex; flex-direction: column; gap: 10px; }
.contact__option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color 0.2s, background 0.2s;
}
.contact__option:hover {
  border-color: rgba(129,140,248,0.3);
  background: rgba(99,102,241,0.07);
}
.contact__option-icon { font-size: 20px; }
.contact__option strong { display: block; font-size: 14px; font-weight: 500; color: var(--white); }
.contact__option small  { font-size: 12px; font-weight: 300; color: var(--hero-dim); }

.contact-split__light {
  background: var(--bg);
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
}
.contact-split__right {
  padding: 80px 64px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.contact-split__form-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 28px;
}

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-group textarea { resize: vertical; }
.form__note {
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  color: var(--light);
  margin-top: 12px;
}

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: #060610;
  border-top: 1px solid #1a1a35;
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer__brand p { font-size: 13px; font-weight: 300; color: #4a5580; margin-top: 4px; }
.footer__brand .nav__logo { color: var(--white); }
.footer__links { display: flex; gap: 28px; }
.footer__links a { font-size: 14px; font-weight: 300; color: #4a5580; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  color: #252545;
  padding-top: 24px;
  border-top: 1px solid #1a1a35;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-split__dark,
  .contact-split__light { min-height: auto; }
  .contact-split__left,
  .contact-split__right { padding: 64px 40px; max-width: 100%; }
  .contact-split__light { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 900px) {
  .about__split { grid-template-columns: 1fr; gap: 48px; }
  .about__right { flex-direction: row; flex-wrap: wrap; }
  .about__card { flex: 1; min-width: 260px; }
  .about__stats { flex: 1; min-width: 220px; }
  .case-row__top { grid-template-columns: 40px 1fr 28px; }
  .case-row__cat { display: none; }
  .case-row.open .case-row__expand { padding: 0 12px 24px 52px; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(6,6,16,0.97);
    border-bottom: 1px solid #1a1a35;
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }
  .nav__hamburger { display: block; }
  .hero { padding: 110px 0 72px; }
  .hero__stats { gap: 20px; }
  .hero__title { font-size: 34px; }
  .section { padding: 64px 0; }
  .statement { padding: 64px 0; }
  .statement__stats { gap: 32px; }
  /* Serviços — cards empilhados em mobile */
  .service-row {
    flex-wrap: wrap;
    gap: 0;
    padding: 20px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .service-row:last-child { margin-bottom: 0; }

  .service-row__num {
    order: 1;
    width: auto;
    padding-top: 0;
    align-self: center;
    font-size: 11px;
  }
  .service-row__icon {
    order: 2;
    flex: 1;
    font-size: 26px;
    padding-top: 0;
    align-self: center;
    padding-left: 8px;
  }
  .service-row__arrow {
    order: 3;
    align-self: center;
    padding-top: 0;
    font-size: 18px;
  }
  .service-row__body {
    order: 4;
    width: 100%;
    margin-top: 14px;
  }
  .service-row__body h3 {
    font-size: 16px;
    flex-wrap: wrap;
  }
  .service-row__body p {
    font-size: 14px;
    max-width: 100%;
  }
  .service-row__tags {
    order: 5;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 12px;
    gap: 6px;
  }
  .service-row__tag { font-size: 11px; }
  .cases__header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .case-row__top { grid-template-columns: 32px 1fr 22px; gap: 12px; }
  .case-row.open .case-row__expand { padding: 0 12px 20px 44px; }
  .contact-split__left,
  .contact-split__right { padding: 48px 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
