/* KHYA Assistência Técnica — identidade visual da marca */

:root {
  --color-bg: #000000;
  --color-bg-alt: #0a0a0a;
  --color-surface: #0d1117;
  --color-surface-2: #121a24;
  --color-text: #ffffff;
  --color-text-muted: #a3a3a3;
  --color-green: #76ff03;
  --color-blue: #2962ff;
  --color-blue-dark: #1e40af;
  --color-primary: #2962ff;
  --color-primary-dark: #1d4ed8;
  --color-accent: #76ff03;
  --color-accent-glow: rgba(118, 255, 3, 0.2);
  --color-blue-glow: rgba(41, 98, 255, 0.35);
  --gradient-brand: linear-gradient(180deg, #76ff03 0%, #2962ff 100%);
  --gradient-brand-h: linear-gradient(90deg, #76ff03, #2962ff);
  --gradient-cta: linear-gradient(135deg, #1d4ed8 0%, #2962ff 50%, #1e3a8a 100%);
  --color-success: #76ff03;
  --color-whatsapp: #25d366;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  --header-h: 80px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Fundo tecnológico — linhas de circuito */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.site-bg__circuit {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: url("../assets/img/circuit-pattern.svg") repeat;
  background-size: 520px 520px;
  opacity: 0.45;
  transform: rotate(-12deg);
  animation: circuit-drift 120s linear infinite;
}

.site-bg__photo {
  position: absolute;
  inset: 0;
  background: url("../assets/img/fundo-tecnologico.png") left 20% / 85% auto no-repeat;
  opacity: 0.12;
  mask-image: linear-gradient(105deg, #000 0%, #000 35%, transparent 65%);
  -webkit-mask-image: linear-gradient(105deg, #000 0%, #000 35%, transparent 65%);
}

.site-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(41, 98, 255, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0.92) 100%);
}

@keyframes circuit-drift {
  0% { transform: rotate(-12deg) translate(0, 0); }
  100% { transform: rotate(-12deg) translate(-80px, -80px); }
}

@media (prefers-reduced-motion: reduce) {
  .site-bg__circuit {
    animation: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-green);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.logo:hover {
  color: inherit;
  opacity: 0.9;
}

.logo__k {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.35));
}

.logo__k--footer {
  width: 44px;
  height: 44px;
}

.logo__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
}

.logo__brand small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.logo__brand--footer strong {
  font-size: 1rem;
}

.logo__brand--footer small {
  font-size: 0.58rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav__list a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__list a:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gradient-brand-h);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 24px var(--color-blue-glow), 0 0 20px rgba(118, 255, 3, 0.15);
}

.btn--primary:hover {
  color: #000;
  box-shadow: 0 6px 32px rgba(41, 98, 255, 0.55), 0 0 28px rgba(118, 255, 3, 0.25);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-blue);
  color: var(--color-text);
  background: rgba(41, 98, 255, 0.1);
  box-shadow: 0 0 20px rgba(41, 98, 255, 0.2);
}

.btn--light {
  background: #fff;
  color: var(--color-bg);
}

.btn--light:hover {
  color: var(--color-bg);
  background: #f1f5f9;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 25%, rgba(41, 98, 255, 0.18), transparent),
    radial-gradient(ellipse 40% 35% at 15% 75%, rgba(118, 255, 3, 0.06), transparent);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-green);
  background: var(--color-accent-glow);
  border: 1px solid rgba(118, 255, 3, 0.35);
  border-radius: 100px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero__lead strong {
  color: var(--color-text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__stats li {
  display: flex;
  flex-direction: column;
}

.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stats span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Banner promocional no hero */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__banner-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.hero__banner-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, rgba(41, 98, 255, 0.45) 0%, transparent 70%);
  filter: blur(24px);
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero__banner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 12px 40px rgba(41, 98, 255, 0.35));
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  border-block: 1px solid rgba(34, 211, 238, 0.08);
}

.section__header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section__header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green);
  margin-bottom: 0.75rem;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section__header p {
  color: var(--color-text-muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(41, 98, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(41, 98, 255, 0.15);
}

.service-card--featured {
  border-color: rgba(41, 98, 255, 0.25);
}

.service-card--featured:hover {
  border-color: rgba(118, 255, 3, 0.4);
  box-shadow: 0 8px 36px rgba(118, 255, 3, 0.1), 0 8px 32px rgba(41, 98, 255, 0.2);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--color-green);
  background: rgba(41, 98, 255, 0.12);
  border: 1px solid rgba(41, 98, 255, 0.25);
  border-radius: var(--radius);
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding-left: 0.5rem;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #000;
  background: var(--gradient-brand-h);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(41, 98, 255, 0.4);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Diferenciais */
.diferenciais {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.diferenciais__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.diferenciais__content > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.diferenciais__card {
  padding: 2rem;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 40px rgba(41, 98, 255, 0.08);
}

.diferenciais__logo {
  margin: 0 auto 1.25rem;
  opacity: 0.95;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.3));
}

.diferenciais__card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.diferenciais__card cite {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: normal;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background: var(--gradient-cta);
  border-block: 1px solid rgba(41, 98, 255, 0.3);
  box-shadow: inset 0 0 60px rgba(41, 98, 255, 0.2);
}

.cta-band__inner {
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-inline: auto;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  list-style: none;
  margin-top: 2rem;
}

.contact-info li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-green);
  margin-top: 2px;
}

.contact-info strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.contact-info a,
.contact-info span {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-info a:hover {
  color: var(--color-green);
}

.contact-form {
  padding: 2rem;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: var(--radius-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form-note--success {
  color: var(--color-success);
}

.form-note--error {
  color: #f87171;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(34, 211, 238, 0.15);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__legal {
  text-align: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer__tagline {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
  opacity: 0.85;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}


/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero__grid,
  .diferenciais,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    margin-bottom: 1rem;
  }

  .hero__banner-wrap {
    max-width: 400px;
  }

  .hero {
    min-height: auto;
  }

  .logo__k {
    width: 44px;
    height: 44px;
  }

  .logo__brand strong {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__cta {
    margin-top: 1rem;
    text-align: center;
  }

  .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);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
