/* ==========================================
   CRISTECH TECNOLOGIA
========================================== */

/* SEÇÕES GERAIS */
.section {
  padding: 105px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-label {
  display: inline-block;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-heading h2,
.about-content h2 {
  font-size: clamp(28px, 3.2vw, 43px);
  line-height: 1.2;
  letter-spacing: -1.3px;
  margin-bottom: 18px;
}

.section-heading h2 span,
.about-content h2 span,
.cta-content h2 span {
  color: var(--pink);
}

.section-heading p {
  color: var(--text-muted);
  font-size: 15px;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s ease;
  text-align: center;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: linear-gradient(135deg, #f72585, #e51c79);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(247, 37, 133, 0.3);
}

.btn-outline {
  border: 1px solid var(--pink);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--pink);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================
   HERO
========================================== */

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 145px 0 100px;
  background:
    radial-gradient(circle at 75% 43%, var(--pink-soft), transparent 37%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 65px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(247, 37, 133, 0.35);
  background: var(--pink-soft);
  border-radius: 30px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 9px 15px;
  margin-bottom: 28px;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

.hero h1 {
  font-size: clamp(36px, 4vw, 59px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -2px;
  margin-bottom: 25px;
}

.hero h1 span {
  color: var(--pink);
}

.hero-content > p {
  max-width: 550px;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.hero-highlights div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-highlights svg {
  color: var(--pink);
  width: 17px;
}

/* LOGO DA HERO */
.hero-visual {
  min-width: 0;
  min-height: 480px;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.13;
  filter: blur(95px);
  pointer-events: none;
}

.hero-logo-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  border-radius: 30px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(247, 37, 133, 0.3);
  box-shadow: 0 25px 90px rgba(247, 37, 133, 0.12);
  transform: rotate(-3deg);
  animation: flutuar 5s ease-in-out infinite;
}

.hero-logo-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: contain;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
}

.floating-card svg {
  color: var(--pink);
}

.floating-one {
  top: 12%;
  right: 0;
}

.floating-two {
  bottom: 12%;
  left: 0;
}

.hero-bottom-line {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  opacity: 0.5;
}

/* ==========================================
   SERVIÇOS
========================================== */

.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--pink);
  box-shadow: 0 12px 35px rgba(247, 37, 133, 0.1);
}

.service-icon,
.benefit-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--pink);
  background: var(--pink-soft);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 29px;
  height: 29px;
}

.service-card h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 13px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.service-card a,
.project-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--pink);
  font-weight: 700;
  font-size: 13px;
}

.service-card a:hover,
.project-info a:hover {
  text-decoration: underline;
}

.service-card a svg,
.project-info a svg {
  width: 17px;
}

/* ==========================================
   SOBRE
========================================== */

.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  padding: 20px;
}

.code-window {
  background: #101019;
  border: 1px solid rgba(247, 37, 133, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.2);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 20px;
  background: #1c1c28;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-top span:nth-child(1) {
  background: #ff5f57;
}

.window-top span:nth-child(2) {
  background: #ffbd2e;
}

.window-top span:nth-child(3) {
  background: #28c840;
}

.window-top p {
  margin-left: auto;
  font-size: 12px;
  color: #aaa;
}

.code-content {
  padding: 30px 25px;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 2.2;
  color: #f0f0f5;
  overflow-x: auto;
}

.code-content p {
  white-space: nowrap;
}

.code-content .indent {
  padding-left: 22px;
}

.code-purple {
  color: #ce93ff;
}

.code-green {
  color: #8be6b3;
}

.code-orange {
  color: #ffad76;
}

.code-comment {
  color: #77778d;
  margin-top: 15px;
}

.about-decoration {
  position: absolute;
  right: -10px;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: var(--pink);
  color: #fff;
  transform: rotate(10deg);
}

.about-decoration svg {
  width: 37px;
  height: 37px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.about-points {
  display: grid;
  gap: 12px;
  margin: 25px 0 30px;
}

.about-points div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.about-points svg {
  color: var(--pink);
  width: 18px;
}

/* ==========================================
   PROJETOS
========================================== */

.projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  overflow: hidden;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: var(--pink);
}

.project-image {
  min-height: 260px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.project-gaia {
  background: linear-gradient(135deg, #123d37, #1c7560);
}

.project-system {
  background: linear-gradient(135deg, #2b153c, #8b185c);
}

.project-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
}

.project-placeholder svg {
  width: 65px;
  height: 65px;
}

.project-info {
  padding: 28px;
}

.project-category {
  color: var(--pink);
  font-size: 11px;
  letter-spacing: 1.3px;
  font-weight: 800;
}

.project-info h3 {
  font-size: 21px;
  margin: 10px 0;
}

.project-info p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

/* ==========================================
   DIFERENCIAIS
========================================== */

.benefits {
  background: var(--bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}

.benefit-item {
  text-align: center;
  padding: 25px 15px;
}

.benefit-icon {
  margin: 0 auto 20px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
}

.benefit-icon svg {
  width: 30px;
  height: 30px;
}

.benefit-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.benefit-item p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================
   CTA
========================================== */

.cta-section {
  padding: 70px 0;
  background:
    radial-gradient(
      circle at 95% 10%,
      rgba(255, 255, 255, 0.12),
      transparent 30%
    ),
    linear-gradient(120deg, #a60e5b, #f72585, #e54491);
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta-content .section-label {
  color: #fff;
}

.cta-content h2 {
  max-width: 650px;
  font-size: clamp(28px, 3.5vw, 43px);
  line-height: 1.2;
  margin-bottom: 18px;
  color: #fff;
}

.cta-content h2 span {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 7px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  font-size: 14px;
}

.btn-white {
  background: #fff;
  color: #b71265;
  white-space: nowrap;
}

.btn-white:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   VOLTAR AO TOPO
========================================== */

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--pink);
  color: #fff;
  border: 0;
  border-radius: 12px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================
   ANIMAÇÕES
========================================== */

.animar {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.animar.visivel {
  opacity: 1;
  transform: translateY(0);
}

@keyframes flutuar {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-12px) rotate(-3deg);
  }
}

/* ==========================================
   RESPONSIVO - 1100PX
========================================== */

@media (max-width: 1100px) {
  .hero-grid {
    gap: 35px;
  }

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

  .about-grid {
    gap: 40px;
  }
}

/* ==========================================
   RESPONSIVO - 900PX
========================================== */

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 130px 0 75px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content > p {
    margin-inline: auto;
  }

  .hero-buttons,
  .hero-highlights {
    justify-content: center;
  }

  .hero-visual {
    min-height: 400px;
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
  }

  .about-content {
    max-width: 680px;
    margin: 0 auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================
   RESPONSIVO - 768PX
========================================== */

@media (max-width: 768px) {
  .section {
    padding: 75px 0;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .cta-content p {
    margin: 0 auto;
  }
}

/* ==========================================
   RESPONSIVO - 480PX
========================================== */

@media (max-width: 480px) {
  .hero {
    padding: 115px 0 65px;
  }

  .hero h1 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }

  .hero-content > p {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-highlights {
    gap: 12px;
  }

  .hero-visual {
    min-height: 310px;
  }

  .hero-logo-frame {
    width: 80%;
    padding: 12px;
  }

  .floating-card {
    padding: 9px;
    font-size: 9px;
    gap: 5px;
  }

  .floating-card svg {
    width: 14px;
  }

  .floating-one {
    top: 5%;
    right: 0;
  }

  .floating-two {
    bottom: 5%;
    left: 0;
  }

  .services-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 26px 22px;
  }

  .about-visual {
    padding: 5px;
  }

  .code-content {
    padding: 22px 14px;
    font-size: 10px;
  }

  .about-decoration {
    width: 55px;
    height: 55px;
    right: 0;
  }

  .about-decoration svg {
    width: 27px;
  }

  .project-image {
    min-height: 210px;
  }

  .project-info {
    padding: 22px;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
  }
}

/* ==========================================
   RESPONSIVO - 400PX
========================================== */

@media (max-width: 400px) {
  .hero h1 {
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.7px;
  }

  .section-heading h2,
  .about-content h2 {
    font-size: 27px;
  }

  .hero-visual {
    min-height: 270px;
  }

  .floating-card {
    font-size: 8px;
  }

  .project-placeholder {
    font-size: 13px;
  }

  .tag {
    font-size: 9px;
    letter-spacing: 0.6px;
  }
}

/* ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
  .animar {
    opacity: 1;
    transform: none;
  }
}
