/* ============================================================
   STYLE GUIDE & DESIGN SYSTEM
   ============================================================ */
:root {
  /* Colors (Modo 1 - Roxo Profundo) */
  --bg: #0d0921;
  --bg-card: #160d30;
  --bg-deep: #180d3a;
  
  /* Accent Colors */
  --lime: #DCFC17;
  --lime-hover: #cde600;
  
  /* Text Colors */
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,.7);
  --text-faint: rgba(255,255,255,.55);
  
  /* Structure */
  --container-width: 1200px;
  --container-wide-width: 1440px;
  
  /* Transitions */
  --transition: .2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  font-family: 'Manrope', sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

/* ── LAYOUT UTILITIES ───────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.container--wide {
  width: 90%;
  max-width: var(--container-wide-width);
  margin: 0 auto;
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 28px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--yellow {
  background: var(--lime);
  color: #0d0921;
  box-shadow: 0 4px 14px rgba(220, 252, 23, 0.2);
  animation: pulse-glow 2s infinite;
}

.btn--yellow:hover {
  background: var(--lime-hover);
  box-shadow: 0 6px 20px rgba(220, 252, 23, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, .22);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, .05);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 252, 23, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 252, 23, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 252, 23, 0);
  }
}

/* ── STICKY HEADER ──────────────────────────────────────────────── */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(24, 13, 58, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transform: translateY(-100%);
  transition: transform .3s ease;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-logo {
  display: flex;
  align-items: center;
}

.sticky-logo__full {
  width: 140px;
  height: auto;
}

.sticky-logo__icon {
  display: none;
  width: 32px;
  height: 32px;
}

.sticky-cta {
  white-space: nowrap;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #0d0921 0%, #160d30 55%, #180d3a 100%);
  padding: 0 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(105, 65, 198, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-nav {
  padding: 28px 0 0;
  position: relative;
  z-index: 10;
}

.hero-logo img {
  height: 42px;
  width: auto;
}

.hero-body {
  padding: 64px 0 0;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 20px;
}

.hero-title .text-lime {
  color: var(--lime);
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
}

/* ── GALLERY & FILTERS ──────────────────────────────────────────── */
.gallery-section {
  padding: 64px 0 96px;
  background: var(--bg);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-tab.active {
  background: var(--lime);
  color: #0d0921;
  border-color: var(--lime);
  font-weight: 700;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 252, 23, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ── DEVICE MOCKUPS (CSS ONLY) ─────────────────────────────────── */
.case-media-container {
  background: radial-gradient(circle, rgba(41,24,88,0.2) 0%, rgba(22,13,48,0.4) 100%);
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 320px;
  overflow: hidden;
}

/* Device screen image scroll effect */
.device-screen {
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.device-screen::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

/* Desktop Frame */
.device-frame--desktop {
  width: 90%;
  background: #180d3a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,.45);
  overflow: hidden;
}

.device-frame--desktop .device-top-bar {
  background: #11092b;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap: 8px;
}

.device-frame--desktop .device-dots {
  display: flex;
  gap: 5px;
}

.device-frame--desktop .device-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.device-frame--desktop .device-dot--red { background: #ff5f56; }
.device-frame--desktop .device-dot--yellow { background: #ffbd2e; }
.device-frame--desktop .device-dot--green { background: #27c93f; }

.device-frame--desktop .device-address {
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  height: 12px;
  flex-grow: 1;
  max-width: 180px;
  margin: 0 auto;
}

.device-frame--desktop .device-screen {
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  background: #160d30;
}

.device-frame--desktop .device-screen img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* Mobile Frame */
.device-frame--mobile {
  width: 140px;
  background: #000;
  border: 5px solid #2d2d44;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,.5);
  overflow: hidden;
  position: relative;
}

.device-frame--mobile .device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 10px;
  background: #2d2d44;
  border-radius: 0 0 6px 6px;
  z-index: 10;
}

.device-frame--mobile .device-screen {
  width: 100%;
  aspect-ratio: 9/19;
  position: relative;
  background: #160d30;
}

.device-frame--mobile .device-screen img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* Tablet Frame */
.device-frame--tablet {
  width: 210px;
  background: #000;
  border: 6px solid #2d2d44;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,.5);
  overflow: hidden;
  position: relative;
}

.device-frame--tablet .device-screen {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  background: #160d30;
}

.device-frame--tablet .device-screen img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* ── CASE CONTENT ───────────────────────────────────────────────── */
.case-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.case-client {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
}

.case-badge-service {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(220,252,23,.08);
  padding: 2px 10px;
  border-radius: 30px;
  border: 1px solid rgba(220,252,23,.15);
}

.case-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.3;
}

.case-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.case-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.case-tag {
  font-size: 11px;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ── BADGES & DOWNLOAD LINKS ───────────────────────────────────── */
.case-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a153b;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  min-width: 125px;
  border: 1px solid rgba(255,255,255,0.05);
}

.store-badge:hover {
  background: #271e54;
  transform: translateY(-1px);
}

.store-badge i {
  font-size: 18px;
  flex-shrink: 0;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge small {
  font-size: 8px;
  color: rgba(255,255,255,.6);
  font-weight: 400;
}

.store-badge span > :last-child {
  font-size: 11px;
  font-weight: 700;
}

.web-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  transition: all var(--transition);
  font-size: 12px;
  font-weight: 700;
}

.web-link-badge:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-1px);
}

.web-link-badge i {
  font-size: 14px;
}

.gallery-empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.gallery-empty-state i {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--lime);
  opacity: .5;
  display: block;
}

.gallery-empty-state p {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.gallery-empty-state span {
  font-size: 14px;
}

/* ── CONTACT SECTION & FORM ────────────────────────────────────── */
.contact-section {
  padding: 96px 0;
  background: linear-gradient(180deg, #0d0921 0%, #160d30 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.contact-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.contact-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-copy p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 16px;
}

.contact-points {
  display: grid;
  gap: 20px;
}

.contact-points div,
.contact-points a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 16px;
  transition: color var(--transition);
}

.contact-points a:hover {
  color: var(--lime);
}

.contact-points i {
  width: 44px;
  height: 44px;
  background: rgba(220, 252, 23, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 18px;
  box-shadow: 0 0 15px rgba(220, 252, 23, 0.05);
}

/* Contact Card (Glassmorphism) */
.contact-form-shell {
  width: 100%;
}

.contact-form-card {
  background: rgba(18, 12, 40, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.form-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #DCFC17 0%, #a8f000 100%);
  width: 100%;
}

.form-card-body {
  padding: 32px;
}

.form-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lime);
  margin-bottom: 8px;
}

.contact-form-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.3;
}

.home-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-form .form-group {
  margin-bottom: 18px;
  position: relative;
}

.home-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.home-form input[type="text"],
.home-form input[type="email"],
.home-form input[type="tel"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.98);
  color: #0d0921;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.home-form input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(220, 252, 23, 0.18);
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.check-outer {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.check-outer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.check-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 12px;
  font-weight: bold;
  transition: all var(--transition);
}

.check-outer:hover input ~ .check-box {
  border-color: var(--lime);
}

.check-outer input:checked ~ .check-box {
  background-color: var(--lime);
  border-color: var(--lime);
  color: #0d0921;
}

.check-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.form-guarantee {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 20px;
  font-size: 12px;
  color: var(--lime);
  font-weight: 500;
  gap: 8px;
  flex-wrap: wrap;
}

.form-guarantee span {
  white-space: nowrap;
}

.submit-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 9, 33, 0.25);
  border-top-color: #0d0921;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.field-error {
  display: none;
  font-size: 11px;
  color: #FF7171;
  margin-top: 4px;
  font-weight: 600;
}

.form-success {
  display: none;
  background: rgba(51, 173, 172, 0.08);
  border: 1px solid #33ADAC;
  color: #33ADAC;
  padding: 14px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.form-error {
  display: none;
  background: rgba(255, 113, 113, 0.08);
  border: 1px solid #FF7171;
  color: #FF7171;
  padding: 14px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: #0d0921;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-copy p {
  color: var(--text-faint);
  font-size: 14px;
}

.footer-copy a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  transition: all var(--transition);
}

.footer-socials a:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(220, 252, 23, 0.05);
  transform: translateY(-2px);
}

/* ── RESPONSIVE DESIGN ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .sticky-logo__full {
    display: none;
  }
  
  .sticky-logo__icon {
    display: block;
  }
  
  .hero-body {
    padding: 48px 0 0;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .home-form .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
