/* =================================================
   Bocchi Company — Design System
   Inspirado em Apple / OpenAI / Stripe
   ================================================= */

:root {
  /* Brand */
  --blue-deep:     #0B1F5C;
  --blue-electric: #3D5AFE;
  --blue-soft:     #6B8AFF;
  --silver-hi:     #EDF1F7;
  --silver-dark:   #3F4856;
  --ink:           #0B1220;

  /* Surfaces (dark first) */
  --bg-0: #07090F;
  --bg-1: #0B1220;
  --bg-2: #0F172A;
  --bg-3: #131C30;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text-hi: #F4F6FB;
  --text-md: #BFC6D4;
  --text-lo: #7A8499;

  /* Effects */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -20px rgba(0,0,0,0.5);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.06) inset, 0 40px 80px -20px rgba(11, 31, 92, 0.45);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========== Reset =========== */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg-1);
  color: var(--text-hi);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blue-electric); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========== Buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary {
  background: var(--blue-electric);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(61, 90, 254, 0.6),
              inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--primary:hover {
  background: #5872ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(61, 90, 254, 0.7),
              inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-strong);
  color: var(--text-hi);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

/* =========== NAV =========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__mark { width: 30px; height: 33px; }
.nav__wordmark {
  display: flex;
  gap: 4px;
  font-size: 17px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.nav__wordmark-bold { font-weight: 700; color: var(--text-hi); }
.nav__wordmark-light { font-weight: 400; color: var(--text-md); }
.nav__links {
  display: flex;
  gap: 32px;
  margin-left: 24px;
  font-size: 14.5px;
  color: var(--text-md);
}
.nav__links a {
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text-hi); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--blue-electric);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-lo);
  letter-spacing: 0.04em;
}
.nav__lang a {
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__lang a:hover { color: var(--text-hi); background: rgba(255,255,255,0.04); }
.nav__lang a.is-active { color: var(--text-hi); }
.nav__lang span { opacity: 0.4; }

.nav__burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text-hi);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text-md);
  font-size: 16px;
}
.nav__mobile a:last-child { border-bottom: 0; margin-top: 8px; }
.nav__mobile.is-open { display: flex; }
.nav__mobile-lang {
  display: flex;
  gap: 12px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-lo);
}
.nav__mobile-lang a { padding: 0; border: 0; }
.nav__mobile-lang a.is-active { color: var(--text-hi); font-weight: 500; }

/* =========== HERO =========== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 90, 254, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-1) 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}
.hero__glow--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--blue-electric), transparent 60%);
  top: -180px; left: -120px;
}
.hero__glow--b {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--blue-deep), transparent 60%);
  top: 60px; right: -120px;
  opacity: 0.7;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.7;
}
.hero__inner {
  text-align: center;
  max-width: 920px;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-soft);
  padding: 6px 12px;
  border: 1px solid rgba(107, 138, 255, 0.25);
  border-radius: 999px;
  background: rgba(61, 90, 254, 0.08);
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--text-hi);
}
.grad {
  background: linear-gradient(90deg, #C9D2E6 0%, #6B8AFF 50%, #3D5AFE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-md);
  margin: 0 auto 40px;
  max-width: 660px;
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
}
.stat {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  padding: 28px 24px;
  text-align: center;
}
.stat__num {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 13.5px;
  color: var(--text-lo);
}

/* =========== SECTION BASE =========== */
.section {
  padding: 120px 0;
  position: relative;
}
.section--alt {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}
.section__head .eyebrow { margin-bottom: 20px; }
.section__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--text-hi);
}
.section__sub {
  font-size: 17px;
  color: var(--text-md);
  margin: 0;
  line-height: 1.6;
}

/* =========== SERVICES =========== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: linear-gradient(180deg, rgba(20, 30, 54, 0.6), rgba(11, 18, 32, 0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 90, 254, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 138, 255, 0.4);
  background: linear-gradient(180deg, rgba(28, 40, 70, 0.7), rgba(15, 23, 42, 0.5));
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(61, 90, 254, 0.18), rgba(11, 31, 92, 0.4));
  border: 1px solid rgba(107, 138, 255, 0.3);
  color: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 10px;
}
.service-card__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--text-hi);
}
.service-card__desc {
  color: var(--text-md);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.service-card__bullets {
  font-size: 14.5px;
  color: var(--text-md);
  margin-bottom: 28px;
}
.service-card__bullets li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--line);
}
.service-card__bullets li:last-child { border-bottom: 0; }
.service-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-electric);
  box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.18);
}
.service-card__link {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue-soft);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.service-card__link:hover {
  color: #93a8ff;
  transform: translateX(2px);
}

/* =========== PROCESS / STEPS =========== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(11, 18, 32, 0.3));
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.step:hover {
  border-color: rgba(107, 138, 255, 0.3);
  transform: translateY(-4px);
}
.step__num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue-soft);
  margin-bottom: 18px;
  font-feature-settings: "tnum";
}
.step__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text-hi);
}
.step__desc {
  font-size: 14.5px;
  color: var(--text-md);
  line-height: 1.6;
  margin: 0;
}

/* =========== FEATURES (WHY) =========== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  padding: 36px 32px;
  background: var(--bg-1);
  transition: background 0.3s var(--ease);
}
.feature:hover { background: var(--bg-2); }
.feature__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  margin: 0 0 12px;
  position: relative;
  padding-left: 18px;
}
.feature__title::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-electric);
  box-shadow: 0 0 12px rgba(61, 90, 254, 0.6);
}
.feature__desc {
  font-size: 14.5px;
  color: var(--text-md);
  line-height: 1.65;
  margin: 0;
}

/* =========== ABOUT =========== */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}
.about__copy .eyebrow { margin-bottom: 20px; }
.about__copy .section__title { text-align: left; }
.about__lead {
  font-size: 17px;
  color: var(--text-md);
  line-height: 1.7;
  margin: 20px 0 0;
}
.about__card {
  background: linear-gradient(180deg, rgba(20, 30, 54, 0.7), rgba(11, 18, 32, 0.5));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: sticky;
  top: 100px;
}
.about__card h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin: 0 0 22px;
}
.about__card ul li {
  font-size: 15px;
  color: var(--text-md);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.about__card ul li:last-child { border-bottom: 0; }
.about__card ul li strong { color: var(--text-hi); font-weight: 600; }

/* =========== CTA =========== */
.cta {
  padding: 100px 0;
}
.cta__inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 40px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(61, 90, 254, 0.18), transparent 70%),
              linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
  isolation: isolate;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.cta__glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 90, 254, 0.4), transparent 60%);
  filter: blur(80px);
  top: -300px; left: 50%;
  transform: translateX(-50%);
}
.cta__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 18px 0 18px;
  color: var(--text-hi);
}
.cta__sub {
  font-size: 17px;
  color: var(--text-md);
  margin: 0 auto 36px;
  max-width: 560px;
  line-height: 1.6;
}
.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta__fineprint {
  font-size: 13px;
  color: var(--text-lo);
  margin: 0;
}

/* =========== FOOTER =========== */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
}
.footer__logo { width: 200px; height: auto; margin-bottom: 16px; }
.footer__tag {
  color: var(--text-md);
  font-size: 14.5px;
  max-width: 320px;
  margin: 0;
  line-height: 1.55;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin: 0 0 16px;
}
.footer__col a {
  display: block;
  padding: 6px 0;
  color: var(--text-md);
  font-size: 14.5px;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--text-hi); }

.footer__base {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer__base-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-lo);
  flex-wrap: wrap;
  gap: 12px;
}

/* =========== REVEAL ANIMATION =========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========== RESPONSIVE =========== */
@media (max-width: 980px) {
  .nav__links, .nav__cta, .nav__lang { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: 130px 0 80px; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__cta { margin-bottom: 56px; }

  .section { padding: 90px 0; }
  .section__head { margin-bottom: 48px; }

  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__card { position: static; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero__title { font-size: 40px; letter-spacing: -0.03em; }
  .hero__sub { font-size: 16px; }
  .btn--lg { padding: 14px 22px; font-size: 15px; }

  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .cta__inner { padding: 60px 24px; border-radius: 22px; }
  .service-card { padding: 32px 24px; }
}
