/* =====================================================
   INLIN3 — Software Solutions
   ===================================================== */

:root {
  --bg: #0a0e17;
  --bg-alt: #0d1220;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-dim: #94a0b8;
  --cyan: #00d4ff;
  --cyan-dark: #0099e5;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 28px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-links a.nav-cta {
  color: #051018;
  background: var(--cyan);
  padding: 9px 22px;
  border-radius: 99px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-links a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35);
  color: #051018;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.lang-switch:hover { color: #fff; }

.lang-switch img {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-burger span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #0066ff 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: float 12s ease-in-out infinite;
}

.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: -180px; left: -120px;
  opacity: 0.18;
  animation: float 14s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 60px;
  max-width: 860px;
}

.hero-logo {
  width: clamp(300px, 46vw, 560px);
  height: auto;
  margin: 0 auto;
  /* o PNG tem margem transparente grande acima/abaixo — compensa o espaçamento */
  margin-top: -64px;
  margin-bottom: -28px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
}

.grad {
  background: linear-gradient(90deg, var(--cyan), #4f8fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  z-index: 2;
}

.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--cyan);
  border-radius: 4px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 99px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-lg { padding: 17px 38px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--cyan-dark));
  color: #051018;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 212, 255, 0.4);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* ===== Sections ===== */
.section { padding: 110px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.tag-cyan {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.section h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-head p { color: var(--text-dim); font-size: 17px; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

/* ===== Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card { cursor: pointer; }

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  outline: none;
}

.product-logo {
  width: 84px; height: 84px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.product-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.product-logo.logo-light {
  background: #fff;
  padding: 14px;
}

/* fundo de cada chip na cor da própria marca (amostrado dos PNGs circulares) */
.product-card[data-product="iscollector"] .product-logo { background: #0f88d9; }
.product-card[data-product="isstore"] .product-logo { background: linear-gradient(225deg, #6e78b7 20%, #44a79e 80%); }
.product-card[data-product="precobrasil"] .product-logo { background: #0e4583; }

/* o PNG do IS Cred tem margem transparente grande — compensa com zoom */
.product-card[data-product="iscred"] .product-logo img { transform: scale(1.9); }

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  transition: gap 0.2s;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.service-card { padding: 42px; }

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

.service-card h3 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 22px;
}

.service-list {
  list-style: none;
  margin-bottom: 30px;
}

.service-list li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 14.5px;
  color: var(--text);
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 800;
}

/* ===== Clients grid ===== */
#clientes h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -1px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.client-chip {
  height: 76px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s;
}

.client-chip:hover { transform: translateY(-4px); }

.client-chip img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* logos com recorte justo (sem respiro interno) ficam grandes demais — reduz */
.client-chip img.logo-sm { max-height: 30px; }

/* logos com muito respiro interno ficam pequenos — amplia */
.client-chip img.logo-lg { transform: scale(1.25); }

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-text h2 { margin-bottom: 22px; }

.about-text p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin-bottom: 16px;
}

.about-text strong { color: #fff; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.35);
}

.stat strong {
  display: block;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(90deg, var(--cyan), #4f8fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat span {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.2;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
  max-width: 640px;
}

.contact p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 36px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo { height: 22px; width: auto; opacity: 0.7; }

.footer p { font-size: 13px; color: var(--text-dim); }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.open { visibility: visible; opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #101626;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.modal.open .modal-box { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(0, 0, 0, 0.55); }

.modal-header {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header img { max-height: 150px; max-width: 300px; object-fit: contain; }

.modal-header img.logo-pad {
  background: #fff;
  padding: 16px 24px;
  border-radius: 16px;
}

.modal-body { padding: 32px 36px 40px; }

.modal-body h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.modal-body p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin-bottom: 28px;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 80px 0; }
}

@media (max-width: 720px) {
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    background: #0d1220;
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: right 0.35s ease;
    font-size: 18px;
  }

  .nav-links.open { right: 0; }

  .nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero h1 { letter-spacing: -1.5px; }
  .service-card { padding: 32px 26px; }
  .modal-body { padding: 26px 24px 32px; }
}
