/* ==========================================================================
   Swiss Fiber — estilos
   ========================================================================== */

:root {
  --green: #6EFE8F;
  --green-2: #61CE70;
  --green-dark: #39b54a;
  --navy: #171C2A;
  --navy-2: #1F2536;
  --mint: #EAFFEF;
  --mint-2: #F5FFF7;
  --ink: #2A2F30;
  --muted: #69727d;
  --white: #ffffff;

  --font-head: 'Rubik', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --container: 1140px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mint-2);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.1; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.text-green { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }

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

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: 14px;
  padding: 13px 28px; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--green { background: var(--green-2); color: var(--navy); }
.btn--green:hover { background: var(--green); box-shadow: 0 8px 24px rgba(110, 254, 143, .35); }
.btn--mint { background: var(--green); color: var(--navy); border-radius: 999px; }
.btn--mint:hover { box-shadow: 0 8px 24px rgba(110, 254, 143, .45); }
.btn--outline { border-color: var(--green-2); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green-2); color: var(--navy); }
.btn--sm { padding: 9px 18px; font-size: 12px; }
.btn--lg { padding: 16px 52px; font-size: 20px; }
.btn--block { width: 100%; }

/* Topbar ------------------------------------------------------------------ */
.topbar { background: var(--green-2); color: var(--navy); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s; }
.topbar a:hover { opacity: .7; }
.topbar .icon { width: 15px; height: 15px; }

/* Header ------------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 28, 42, 0);
  transition: background .3s, box-shadow .3s;
  margin-bottom: calc(var(--header-h) * -1);
}
.header--scrolled { background: rgba(23, 28, 42, .96); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo img { width: 180px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav > a {
  color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em; position: relative; padding: 6px 0;
}
.nav > a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav > a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 10px; margin-left: 40px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon--close { display: none; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 720px;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  color: var(--white);
  background: var(--navy) url('../img/bg-slide-swiss.webp') center right / cover no-repeat;
}
.hero__inner { position: relative; }
.hero__wordmark { width: 230px; margin: 0 0 32px 200px; opacity: .95; }
.hero__title {
  font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: -.01em; max-width: 760px;
}
.hero__text { max-width: 470px; margin: 28px 0 40px; font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, .9); }

/* Seções ------------------------------------------------------------------ */
.section { padding: 110px 0; }
.section--light { background: var(--mint-2); }
.section--mint { background: var(--mint); }
.section--dark { background: var(--navy); color: var(--white); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__title {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800; font-style: italic;
  text-transform: uppercase; color: var(--green-2);
}
.section--dark .section__title { color: var(--green-2); }
.section__sub { margin-top: 14px; font-size: 17px; color: var(--navy); }
.section--dark .section__sub { color: rgba(255, 255, 255, .88); }

/* Cards "O que você precisa" ---------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; }
.card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 22px 34px; border: 2px solid var(--green-2); border-top-color: transparent;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(var(--mint-2), var(--mint-2)) padding-box;
  position: relative; transition: transform .3s var(--ease), box-shadow .3s;
}
.card img { width: 100%; max-width: 320px; margin-top: -10px; transition: transform .4s var(--ease); }
.card h3 { font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--navy); margin: 18px 0 10px; }
.card p { font-size: 14px; color: var(--ink); max-width: 240px; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(23, 28, 42, .1); }
.card:hover img { transform: scale(1.04); }

/* Planos ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1000px; margin: 0 auto; }
.plan {
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  padding-bottom: 36px; transition: transform .3s var(--ease), border-color .3s;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(110, 254, 143, .5); }
.plan__top {
  width: calc(100% + 2px); margin: -1px -1px 0;
  background: var(--navy); border: 2px solid var(--green-2); border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--green-2);
  padding: 30px 24px 22px;
}
.plan--featured .plan__top { background: var(--green-2); color: var(--navy); }
.plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan__head img { width: 46px; }
.plan--featured .plan__head img { filter: brightness(0) invert(1); }
.plan__name { font-size: 24px; font-weight: 700; }
.plan__tag { display: block; font-size: 12px; font-weight: 600; margin-top: 4px; letter-spacing: .02em; }
.plan__price { display: flex; align-items: baseline; margin-top: 34px; font-family: var(--font-head); color: var(--green); }
.plan--featured .plan__price { color: var(--navy); }
.plan__cur { font-size: 22px; font-weight: 500; margin-right: 2px; }
.plan__int { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.plan__dec { font-size: 22px; font-weight: 500; }
.plan__per { font-size: 12px; margin-left: 3px; opacity: .85; }
.plan__list { list-style: none; padding: 0; margin: 30px 0 34px; font-size: 14px; text-align: center; }
.plan__list li { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 0; }
.plan__list .icon { color: var(--green-2); width: 14px; height: 14px; }
.plans__note { text-align: center; font-size: 13px; margin-top: 40px; color: rgba(255, 255, 255, .8); }

/* Banners ----------------------------------------------------------------- */
.banner {
  min-height: 620px; display: flex; align-items: flex-end; padding: 0 0 90px;
  color: var(--white); background-color: var(--navy);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.banner--fiber { background-image: linear-gradient(90deg, rgba(23,28,42,.55), rgba(23,28,42,0) 60%), url('../img/section-2-slide.webp'); }
.banner--games { background-image: url('../img/slide3-1.webp'); min-height: 700px; }
.banner__title {
  font-size: clamp(30px, 4vw, 42px); font-weight: 800; font-style: italic;
  text-transform: uppercase; line-height: 1.15; max-width: 640px;
}

/* FAQ --------------------------------------------------------------------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--white); border: 2px solid var(--green-2); border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--green-2); overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 22px; height: 22px; color: var(--green-dark); transition: transform .3s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--ink); }

/* Contato ----------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1000px; margin: 0 auto; align-items: start; }
.form { display: grid; gap: 16px; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 13px; color: var(--navy);
  background: var(--mint); border: 2px solid var(--green); border-radius: 999px;
  padding: 13px 20px; transition: border-color .2s, box-shadow .2s;
}
.form textarea { border-radius: 20px; resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 4px rgba(110, 254, 143, .25); }
.form ::placeholder { color: var(--muted); letter-spacing: .04em; }
.form__hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert--ok { background: #d4f8dc; color: #1c6b2b; }
.alert--err { background: #fde2e1; color: #a12a26; }

.quick { display: grid; gap: 16px; }
.quick__item {
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  background: var(--mint-2); border: 1px solid rgba(97, 206, 112, .45); border-radius: 10px;
  box-shadow: 0 4px 0 var(--green); transition: transform .25s var(--ease), box-shadow .25s;
}
.quick__item:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--green); }
.quick__icon { width: 34px; height: 34px; color: var(--navy); }
.quick__item span { font-size: 12px; color: var(--ink); line-height: 1.4; }
.quick__item strong {
  display: block; font-family: var(--font-head); font-style: italic; font-weight: 800;
  font-size: 19px; text-transform: uppercase; color: var(--green-2);
}

/* Rodapé ------------------------------------------------------------------ */
.footer { background: var(--navy); color: var(--white); font-size: 13px; }
.footer__grid {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 50px;
  padding-top: 70px; padding-bottom: 60px;
}
.footer__brand { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, .35); }
.footer__brand img { width: 200px; }
.footer__brand p { font-size: 12px; text-transform: uppercase; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; justify-content: center; }
.footer__col p { text-transform: uppercase; font-size: 12px; margin-bottom: 14px; }
.footer__col strong { font-weight: 600; }
.footer__title { font-size: 18px; font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.footer__title--sep { padding-top: 22px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .35); }
.footer__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.footer__list a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; transition: color .2s; }
.footer__list a:hover, .footer__social a:hover { color: var(--green); }
.footer__list .icon { width: 18px; height: 18px; color: var(--green); }
.footer__social { display: flex; gap: 14px; }
.footer__social .icon { width: 22px; height: 22px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 12px; color: rgba(255, 255, 255, .6); text-align: center; }

/* Suporte flutuante -------------------------------------------------------- */
.support { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.support__fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25D366; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25); animation: pulse 2.4s infinite;
}
.support__fab .icon { width: 32px; height: 32px; }
.support__panel {
  width: min(320px, calc(100vw - 44px)); background: var(--white); border-radius: 18px; padding: 28px 24px 24px;
  box-shadow: 0 20px 50px rgba(23, 28, 42, .3); position: relative; text-align: center;
  animation: pop .25s var(--ease);
}
.support__panel[hidden] { display: none; }
.support__close { position: absolute; top: 12px; right: 12px; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; }
.support__close .icon { width: 20px; height: 20px; }
.support__title { font-size: 22px; font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--green-2); margin-bottom: 8px; }
.support__panel > p { font-size: 14px; margin-bottom: 18px; }
.support__or { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; margin: 18px 0 4px !important; color: var(--navy); }
.support__phone { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--navy); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 10px 25px rgba(0,0,0,.25); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 25px rgba(0,0,0,.25); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px rgba(0,0,0,.25); }
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* Reveal ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .support__fab { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* Responsivo -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .nav__cta { margin-left: 10px; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 34px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 10px 20px 26px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav > a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 15px; }
  .nav > a::after { display: none; }
  .nav__cta { margin: 20px 0 0; flex-direction: column; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .header { background: var(--navy); }
  .nav-open .nav-toggle .icon--open { display: none; }
  .nav-open .nav-toggle .icon--close { display: block; }

  .topbar__group--hide-sm { display: none; }

  .hero { min-height: 640px; background-position: 70% center; }
  .hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,28,42,.92) 30%, rgba(23,28,42,.4)); }
  .hero__wordmark { margin-left: 0; }

  .cards, .plans { grid-template-columns: 1fr; max-width: 420px; }
  .cards { gap: 50px; }
  .contact { grid-template-columns: 1fr; gap: 40px; max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .footer__brand { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .35); padding: 0 0 30px; }
  .banner { min-height: 460px; padding-bottom: 60px; }
  .banner--games { min-height: 480px; background-position: 65% center; }
  .banner::before { content: none; }
}

@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .topbar__inner { justify-content: center; }
  .topbar__group:last-child { display: none; }
  .header__logo img { width: 150px; }
  .hero { min-height: 600px; padding-bottom: 60px; }
  .hero__wordmark { width: 170px; margin-bottom: 22px; }
  .hero__text { font-size: 16px; }
  .btn--lg { width: 100%; padding: 15px 20px; font-size: 18px; }
  .plan__int { font-size: 56px; }
  .quick__item strong { font-size: 16px; }
}
