/* ================================================
   flandtec Portal — Unified Dark Tech Design System
   UX/UI Aligned with Prof. Dr. Edgar Natanael Principles
   ================================================ */

/* --- 1. Design Tokens & CSS Variables --- */
:root {
  --ink: #061019;
  --ink2: #091622;
  --panel: #0d1f2d;
  --panel2: #10283a;
  --panel-card: #0c1c29;
  --panel-card-hover: #102434;
  --line: rgba(69, 217, 236, 0.14);
  --line-subtle: rgba(142, 180, 201, 0.12);
  --line-highlight: rgba(69, 217, 236, 0.35);
  --muted: #91a6b2;
  --muted-dark: #637985;
  --paper: #eaf1f4;
  --white: #ffffff;
  --cyan: #45d9ec;
  --cyan2: #1598ad;
  --cyan-glow: rgba(69, 217, 236, 0.28);
  --amber: #f0a542;
  --amber-glow: rgba(240, 165, 66, 0.22);
  --orange: #e8732f;
  --green: #46c892;
  --rose: #e67a96;
  --max: 1240px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'SF Mono', 'Fira Code', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 2. Base & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Circuit / Tech Grid Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(69, 217, 236, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 217, 236, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

/* Header Overlap Fix: Proper scroll margin for all anchors */
section[id],
main > section {
  scroll-margin-top: 110px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 120;
  background: var(--cyan);
  color: var(--ink);
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* --- 3. Scroll Progress Bar & Boot Line --- */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--cyan));
  background-size: 200% 100%;
  animation: shimmer-bar 3s linear infinite;
  z-index: 110;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px var(--cyan-glow);
}

@keyframes shimmer-bar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.boot-line {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  z-index: 109;
  opacity: 0.35;
}

/* --- 4. Header (Sticky Glassmorphism) --- */
.site-header {
  width: min(calc(100% - 48px), var(--max));
  min-height: 100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line-subtle);
  position: sticky;
  top: 0;
  z-index: 80;
  transition: min-height 0.35s var(--ease-out-expo), background 0.35s, padding 0.35s, border-color 0.35s;
}

.site-header.scrolled {
  min-height: 68px;
  background: rgba(6, 16, 25, 0.88);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  padding: 0 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(54px, 5.5vw, 76px);
  max-width: min(270px, 48vw);
  object-fit: contain;
  border-radius: 4px;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 6px 18px rgba(69, 217, 236, 0.2)) drop-shadow(0 0 10px rgba(240, 165, 66, 0.1));
  transition: all 0.35s var(--ease-out-expo);
}

.site-header.scrolled .brand-logo {
  height: clamp(42px, 4.2vw, 54px);
}

.brand:hover .brand-logo {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 24px rgba(69, 217, 236, 0.35)) drop-shadow(0 0 14px rgba(240, 165, 66, 0.2));
}

/* Header Navigation */
.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #a2b7c4;
  font-size: 0.88rem;
  font-weight: 500;
}

.site-header nav a {
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out-expo);
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a.active {
  color: var(--cyan);
}

.site-header nav a.active::after,
.site-header nav a:hover::after {
  transform: scaleX(1);
}

/* Header CTA Button (WhatsApp with icon) */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(69, 217, 236, 0.35);
  background: rgba(69, 217, 236, 0.05);
  border-radius: 8px;
  transition: all 0.3s;
}

.header-cta-icon {
  flex-shrink: 0;
  color: #25d366;
}

.header-cta:hover {
  background: rgba(69, 217, 236, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-1px);
}

/* Mobile Nav Drawer items hidden on desktop */
.nav-header-mobile,
.nav-mobile-cta {
  display: none;
}

.nav-backdrop {
  display: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 42px;
  padding: 9px;
  cursor: pointer;
  border-radius: 8px;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--paper);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* --- 5. Hero Section --- */
.hero {
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
  min-height: 660px;
  padding: 4.5rem 0 5.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  position: relative;
}

/* Floating Glow Orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  top: -12%;
  left: -10%;
  animation: orb-float-1 9s ease-in-out infinite alternate;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--amber), transparent 70%);
  bottom: -6%;
  right: 4%;
  animation: orb-float-2 11s ease-in-out infinite alternate;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  top: 35%;
  left: 45%;
  animation: orb-float-3 13s ease-in-out infinite alternate;
  opacity: 0.16;
}

@keyframes orb-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.12); }
}

@keyframes orb-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -40px) scale(1.08); }
}

@keyframes orb-float-3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -20px) scale(1.15); }
}

.eyebrow, .kicker, .modal-code {
  font-family: var(--font-mono);
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.15em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 28px rgba(69, 217, 236, 0.4);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 14px var(--cyan), 0 0 28px rgba(69, 217, 236, 0.4); }
  50% { box-shadow: 0 0 22px var(--cyan), 0 0 44px rgba(69, 217, 236, 0.6); }
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.1rem, 6.5vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 1.4rem 0 1.8rem;
  max-width: 760px;
  position: relative;
  z-index: 1;
  font-weight: 800;
}

h1 em, .modal h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan) 25%, #88edf8 65%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(69, 217, 236, 0.35));
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy > p {
  max-width: 620px;
  color: #a2b7c4;
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.8rem;
}

/* Buttons System */
.button {
  min-height: 50px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), #38c8dc);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(69, 217, 236, 0.3);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(69, 217, 236, 0.45);
}

.button.ghost {
  background: rgba(13, 31, 45, 0.6);
  color: var(--paper);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}

.button.ghost:hover {
  background: rgba(69, 217, 236, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.button.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--line);
}

.button.dark:hover {
  background: var(--panel2);
  border-color: var(--cyan);
  color: var(--cyan);
}

.button.wide {
  width: 100%;
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-subtle);
  padding-top: 1.6rem;
}

.hero-metrics > div {
  display: flex;
  flex-direction: column;
}

.hero-metrics strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--paper);
  font-family: var(--font-sans);
}

.hero-metrics span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Launch Card (AgendaZap Hero Highlight) */
.launch-card {
  background: linear-gradient(145deg, #0d2232 0%, #091722 100%);
  border: 1px solid var(--line-highlight);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(69, 217, 236, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.launch-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(69, 217, 236, 0.08), transparent 70%);
  pointer-events: none;
}

.launch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 10px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.launch-top .live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-weight: 600;
}

.launch-top .live i {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s infinite;
}

.launch-orbit {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 1.5rem auto 2rem;
  display: grid;
  place-items: center;
}

.launch-core {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--panel2), #071520);
  border: 1px solid var(--cyan);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 1.2rem var(--font-sans);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  z-index: 2;
}

.launch-orbit i:nth-child(2) {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(69, 217, 236, 0.25);
  border-radius: 50%;
  animation: rotate-orbit 20s linear infinite;
}

.launch-orbit i:nth-child(3) {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(69, 217, 236, 0.12);
  border-radius: 50%;
}

.launch-orbit i:nth-child(4) {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--amber);
  transform: translate(-50%, -50%);
}

@keyframes rotate-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.launch-segment {
  font: 10px var(--font-mono);
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.launch-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.04em;
}

.launch-card > p:not(.launch-segment) {
  color: #a4b7c2;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.launch-price {
  border-top: 1px solid var(--line-subtle);
  padding: 1.2rem 0;
  margin-bottom: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.launch-price span {
  font-size: 0.8rem;
  color: var(--muted);
}

.launch-price strong {
  font-size: 1.6rem;
  color: var(--paper);
}

.launch-price small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

/* --- 6. Trust Strip --- */
.trust-strip {
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  background: rgba(9, 22, 34, 0.4);
}

.trust-strip span {
  padding: 1.4rem 1rem;
  font-size: 0.82rem;
  color: #a4b8c3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-strip span:not(:first-child) {
  border-left: 1px solid var(--line-subtle);
}

.trust-strip i {
  font: 600 10px var(--font-mono);
  color: var(--cyan);
  background: rgba(69, 217, 236, 0.08);
  border: 1px solid var(--line);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* --- 7. Section Headings (Global) --- */
.section-heading {
  display: grid;
  grid-template-columns: 0.5fr 1.4fr 0.9fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-heading.compact {
  margin-bottom: 2.8rem;
}

.section-heading h2,
.steps-copy h2,
.custom-heading h2,
.author-copy h2,
.faq-heading h2,
.contact-copy h2 {
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0;
  font-weight: 800;
  color: var(--paper);
}

.section-heading > p,
.steps-copy > p,
.custom-heading > p {
  margin: 0;
  color: #93a8b4;
  font-size: 1rem;
  line-height: 1.65;
}

.index {
  font: 11px var(--font-mono);
  color: var(--cyan);
  opacity: 0.8;
}

/* --- 8. Product Catalog Section (Dark Tech Unified) --- */
.catalog {
  padding: 6.5rem max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-subtle);
}

/* Toolbar & Filter Tabs */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
  padding: 0.2rem 0;
}

.filter-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tabs button {
  border: 0;
  background: transparent;
  padding: 1rem 1.3rem;
  cursor: pointer;
  color: #8298a4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s;
}

.filter-tabs button:first-child {
  padding-left: 0;
}

.filter-tabs button[aria-selected="true"] {
  color: var(--cyan);
  font-weight: 800;
}

.filter-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.filter-tabs span {
  color: #5c7482;
  margin-left: 0.3rem;
  font-size: 0.68rem;
}

.catalog-toolbar > p {
  margin: 0;
  color: #79919e;
  font: 11px var(--font-mono);
  white-space: nowrap;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.product-grid.single-item {
  grid-template-columns: minmax(320px, 480px);
  justify-content: center;
}

.product-grid.single-item .product-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* Product Cards (Dark Tech System) */
.product-card {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
}

.product-card:hover {
  background: var(--panel-card-hover);
  border-color: var(--line-highlight);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(69, 217, 236, 0.07);
}

.product-card.featured {
  border-color: rgba(69, 217, 236, 0.4);
  background: linear-gradient(145deg, #0e2434 0%, #0c1d29 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(69, 217, 236, 0.08);
}

.product-card.featured:hover {
  border-color: var(--cyan);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(69, 217, 236, 0.15);
}

.product-card[hidden] {
  display: none;
}

.product-card.filter-out {
  opacity: 0;
  transform: scale(0.96) translateY(8px);
}

.product-card.filter-in {
  animation: card-appear 0.35s var(--ease-out-expo) forwards;
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.card-code {
  color: var(--muted-dark);
}

.status {
  font-size: 9px;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border: 1px solid;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.status.available {
  color: var(--cyan);
  border-color: rgba(69, 217, 236, 0.4);
  background: rgba(69, 217, 236, 0.08);
}

.status.development {
  color: var(--amber);
  border-color: rgba(240, 165, 66, 0.4);
  background: rgba(240, 165, 66, 0.08);
}

.status.soon {
  color: var(--muted);
  border-color: rgba(145, 166, 178, 0.3);
  background: rgba(145, 166, 178, 0.06);
}

.product-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  margin: 1.5rem 0 1.6rem;
  font-size: 1.25rem;
  border-radius: 10px;
  transition: all 0.3s var(--ease-out-expo);
  background: rgba(255, 255, 255, 0.02);
}

.product-card:hover .product-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 20px currentColor;
}

.product-icon.orange { color: var(--orange); }
.product-icon.blue { color: #4aa3e8; }
.product-icon.rose { color: var(--rose); }
.product-icon.green { color: var(--green); }
.product-icon.amber { color: var(--amber); }
.product-icon.cyan { color: var(--cyan); }

.segment {
  font: 10px var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.35rem;
}

.product-card h3 {
  font-size: 1.55rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--paper);
}

.product-card > p:not(.segment) {
  color: #9cb0bc;
  font-size: 0.92rem;
  line-height: 1.6;
}

.mini-features {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-features li {
  border: 1px solid var(--line-subtle);
  color: #91a7b3;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.25rem 0.5rem;
  font-size: 0.68rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
}

.product-card:hover .mini-features li {
  border-color: var(--line);
  color: var(--paper);
}

.price {
  border-top: 1px solid var(--line-subtle);
  padding-top: 1.1rem;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.price span {
  font-size: 0.72rem;
  color: var(--muted);
}

.price strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--paper);
}

.price small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.price .consult {
  font-size: 1rem;
  color: var(--amber);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.2rem;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cyan);
  font-size: 0.76rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.8;
}

.buy-link {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  transition: all 0.2s;
}

.buy-link:hover {
  color: var(--white);
  transform: translateX(2px);
}

/* Empty State */
.catalog-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 14px;
  margin-top: 1rem;
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.catalog-empty-state p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* --- 9. Plans Section --- */
.plans {
  padding: 7rem max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink2);
  color: var(--paper);
  border-top: 1px solid var(--line-subtle);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.plan-card {
  border: 1px solid var(--line);
  background: var(--panel-card);
  padding: 1.8rem;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 14px;
  transition: all 0.35s var(--ease-out-expo);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--line-highlight);
}

.plan-card.best {
  border: 2px solid var(--cyan);
  background: linear-gradient(155deg, #10293a 0%, #0b1a26 100%);
  box-shadow: 0 0 35px rgba(69, 217, 236, 0.14);
}

.best-tag {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: linear-gradient(90deg, var(--cyan), #38c8dc);
  color: var(--ink);
  font: 700 9px var(--font-mono);
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(69, 217, 236, 0.35);
}

.plan-label {
  font: 10px var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.12em;
}

.plan-card h3 {
  font-size: 1.6rem;
  margin: 1.2rem 0 0.4rem;
  font-weight: 700;
}

.plan-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 0.4rem;
}

.plan-price small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.plan-card > p {
  color: #92a7b3;
  font-size: 0.88rem;
  min-height: 42px;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 2rem;
  display: grid;
  gap: 0.65rem;
}

.plan-card li {
  color: #a3b8c5;
  font-size: 0.88rem;
  padding-left: 1.3rem;
  position: relative;
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 800;
}

.plan-card .button {
  margin-top: auto;
}

/* --- 10. Steps Section ("Como Funciona" - Unified Dark) --- */
.steps-section {
  padding: 7rem max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  border-top: 1px solid var(--line-subtle);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-subtle);
  position: relative;
}

.steps-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-subtle);
  position: relative;
  transition: all 0.3s;
}

.steps-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: calc(1.5rem + 38px);
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), rgba(69, 217, 236, 0.15));
  z-index: 0;
}

.steps-list li:hover {
  padding-left: 0.6rem;
  background: rgba(69, 217, 236, 0.025);
}

.step-number {
  font: 700 11px var(--font-mono);
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), #38c8dc);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 14px var(--cyan-glow);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.steps-list li:hover .step-number {
  transform: scale(1.12);
  box-shadow: 0 6px 20px var(--cyan-glow);
}

.steps-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--paper);
}

.steps-list p {
  margin: 0;
  color: #92a7b4;
  font-size: 0.94rem;
}

/* --- 11. Custom Solutions Section ("Sob Medida" - Unified Dark) --- */
.custom-solutions {
  padding: 7rem max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink2);
  color: var(--paper);
  border-top: 1px solid var(--line-subtle);
}

.custom-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.35fr 0.9fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.custom-grid article {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  min-height: 240px;
  transition: all 0.35s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.custom-grid article:hover {
  background: var(--panel-card-hover);
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px rgba(69, 217, 236, 0.08);
}

.custom-grid span {
  font: 10px var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.custom-grid h3 {
  font-size: 1.45rem;
  margin: 1.2rem 0 0.6rem;
  font-weight: 700;
  color: var(--paper);
}

.custom-grid p {
  color: #91a6b3;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* --- 12. Author Section (Unified Dark) --- */
.author {
  background: var(--ink);
  color: var(--paper);
  padding: 6.5rem max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) 1.3fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  border-top: 1px solid var(--line-subtle);
}

.portrait {
  width: min(100%, 420px);
  aspect-ratio: 0.86;
  justify-self: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(69, 217, 236, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(69, 217, 236, 0.1);
  background: #0b1722;
  border-radius: 16px;
}

.portrait::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 2px;
  top: -8%;
  background: rgba(69, 217, 236, 0.88);
  box-shadow: 0 0 18px 4px rgba(69, 217, 236, 0.34);
  animation: portrait-scan 6s ease-in-out infinite;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(0.2) contrast(1.05);
  transition: 0.6s var(--ease-out-expo);
}

.portrait:hover img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.03);
}

@keyframes portrait-scan {
  0%, 16% { top: -8%; opacity: 0; }
  25% { opacity: 1; }
  76% { opacity: 0.85; }
  88%, 100% { top: 108%; opacity: 0; }
}

.portrait-tag {
  position: absolute;
  z-index: 4;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  background: rgba(6, 16, 25, 0.88);
  color: var(--paper);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font: 10px var(--font-mono);
  letter-spacing: 0.1em;
  border-radius: 8px;
}

.portrait-tag strong {
  color: var(--cyan);
}

.author-copy {
  padding: 1.5rem 0;
}

.author-lead {
  font-size: 1.28rem;
  line-height: 1.5;
  max-width: 600px;
  color: var(--paper);
  margin: 1.2rem 0;
}

.author-copy > p:not(.kicker):not(.author-lead) {
  max-width: 620px;
  color: #92a7b3;
  line-height: 1.7;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.credentials span {
  border: 1px solid var(--line);
  padding: 0.5rem 0.8rem;
  font: 10px var(--font-mono);
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(69, 217, 236, 0.04);
  border-radius: 6px;
  transition: all 0.3s;
}

.credentials span:hover {
  border-color: var(--cyan);
  background: rgba(69, 217, 236, 0.12);
  box-shadow: 0 0 15px var(--cyan-glow);
}

/* --- 13. FAQ Section (Smooth Accordions) --- */
.faq-section {
  padding: 7rem max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink2);
  color: var(--paper);
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 6rem;
  border-top: 1px solid var(--line-subtle);
}

.faq-list details {
  border-top: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.2rem;
  transition: color 0.25s, padding 0.25s;
  color: var(--paper);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--cyan);
  padding-left: 0.4rem;
}

.faq-list summary::after {
  content: "+";
  color: var(--cyan);
  font: 1.4rem var(--font-mono);
  transition: transform 0.3s var(--ease-out-expo), color 0.3s;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  color: var(--amber);
}

.faq-list details[open] summary {
  color: var(--cyan);
}

.faq-list p {
  color: #92a7b3;
  margin: 0;
  padding: 0 0.2rem 1.4rem;
  line-height: 1.7;
  font-size: 0.96rem;
  animation: faq-slide-in 0.3s var(--ease-out-expo);
}

@keyframes faq-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 14. Contact Section (Deep Tech Aurora) --- */
.contact {
  background: radial-gradient(circle at 80% 20%, rgba(69, 217, 236, 0.12), transparent 50%),
              linear-gradient(135deg, #071520 0%, #0c2333 55%, #071520 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  padding: 6.5rem max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
}

.contact .kicker {
  color: var(--cyan);
}

.contact h2 {
  margin-top: 0.8rem;
}

.contact-action {
  border-left: 1px solid var(--line);
  padding-left: 2.5rem;
}

.contact-action p {
  max-width: 360px;
  color: #9ab0bd;
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
}

.contact-action .button.dark {
  background: linear-gradient(135deg, var(--cyan), #32bad0);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(69, 217, 236, 0.35);
}

.contact-action .button.dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(69, 217, 236, 0.5);
  color: var(--ink);
}

/* --- 15. Footer --- */
footer {
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
  padding: 4.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  color: #8298a4;
  font-size: 0.82rem;
}

.footer-brand .brand-logo {
  height: 64px;
  max-width: 250px;
  mix-blend-mode: lighten;
}

.footer-brand p {
  margin-top: 1rem;
  line-height: 1.6;
}

footer h3 {
  color: var(--paper);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

footer > div:not(.footer-brand) a,
.footer-text-btn {
  display: block;
  margin: 0.5rem 0;
  transition: color 0.25s, padding 0.25s;
  color: #8298a4;
  text-align: left;
}

.footer-text-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}

footer a:hover,
.footer-text-btn:hover {
  color: var(--cyan);
  padding-left: 0.25rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-subtle);
  padding-top: 2rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.74rem;
  color: #617783;
}

/* --- 16. Modals System --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: modal-fade-in 0.3s var(--ease-out-expo);
}

.modal-backdrop[hidden] {
  display: none;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: linear-gradient(155deg, #0f2434 0%, #091722 100%);
  border: 1px solid var(--line-highlight);
  border-radius: 16px;
  padding: 2.2rem;
  max-width: 580px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(69, 217, 236, 0.12);
  animation: modal-slide-up 0.35s var(--ease-out-expo);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modal-slide-up {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: all 0.25s;
}

.modal-close:hover {
  background: rgba(69, 217, 236, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-right: 2.5rem;
}

.modal-status-badge {
  font: 700 9px var(--font-mono);
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.modal-status-badge.available {
  color: var(--cyan);
  border: 1px solid rgba(69, 217, 236, 0.4);
  background: rgba(69, 217, 236, 0.1);
}

.modal-status-badge.development {
  color: var(--amber);
  border: 1px solid rgba(240, 165, 66, 0.4);
  background: rgba(240, 165, 66, 0.1);
}

.modal-status-badge.soon {
  color: var(--muted);
  border: 1px solid rgba(145, 166, 178, 0.3);
  background: rgba(145, 166, 178, 0.08);
}

.modal-product-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

#product-modal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border-radius: 10px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: rgba(69, 217, 236, 0.08);
}

.modal-product-head h2 {
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: -0.03em;
}

.modal-product-head p {
  font: 10px var(--font-mono);
  color: var(--amber);
  margin: 0 0 0.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal p {
  color: #9cb0bc;
  line-height: 1.65;
  font-size: 0.96rem;
}

.modal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--paper);
}

.modal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.modal li {
  color: #a4b7c3;
  font-size: 0.84rem;
  padding-left: 1.2rem;
  position: relative;
}

.modal li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  background: rgba(6, 16, 25, 0.6);
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.8rem;
}

.modal-specs div {
  display: flex;
  flex-direction: column;
}

.modal-specs span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-specs strong {
  font-size: 0.86rem;
  color: var(--paper);
  margin-top: 0.2rem;
}

/* Welcome Modal Badge */
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.welcome-badge strong {
  font-size: 2.8rem;
  color: var(--cyan);
  line-height: 1;
}

.welcome-badge span {
  font: 700 10px var(--font-mono);
  color: var(--amber);
  line-height: 1.2;
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  margin: 1.6rem 0 1rem;
}

/* --- 17. Floating Action Buttons (Back to Top & WhatsApp) --- */
.floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 95;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
}

.back-to-top {
  background: rgba(13, 31, 45, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  color: var(--paper);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

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

.back-to-top:hover {
  background: rgba(69, 217, 236, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.floating-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: 0;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 3s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}

/* Floating Chat Trigger Button */
.floating-chat-btn {
  background: linear-gradient(135deg, #0f3247 0%, #081a26 100%);
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 4px 22px rgba(69, 217, 236, 0.35);
  position: relative;
  overflow: visible;
}

.floating-chat-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(69, 217, 236, 0.55);
  color: var(--white);
  border-color: var(--white);
}

.chat-btn-pulse {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
  animation: status-ping 2s infinite;
}

@keyframes status-ping {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

.chat-badge-text {
  position: absolute;
  right: 56px;
  background: rgba(8, 22, 34, 0.95);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font: 700 10px var(--font-mono);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

.floating-chat-btn .chat-icon-close {
  display: none;
}

.floating-chat-btn[aria-expanded="true"] .chat-icon-open {
  display: none;
}

.floating-chat-btn[aria-expanded="true"] .chat-icon-close {
  display: block;
}

.floating-chat-btn[aria-expanded="true"] .chat-badge-text {
  display: none;
}

/* ================================================
   17.1 CHAT WIDGET (Tira-dúvidas Inteligente)
   ================================================ */
.chat-widget {
  position: fixed;
  bottom: 92px;
  right: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(540px, calc(100vh - 120px));
  background: rgba(8, 21, 33, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(69, 217, 236, 0.28);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(69, 217, 236, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 96;
  overflow: hidden;
  animation: chat-popup 0.35s var(--ease-out-expo);
  transform-origin: bottom right;
}

.chat-widget[hidden] {
  display: none !important;
}

@keyframes chat-popup {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(180deg, rgba(12, 30, 46, 0.98) 0%, rgba(8, 21, 33, 0.92) 100%);
  border-bottom: 1px solid var(--line);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(69, 217, 236, 0.2), rgba(69, 217, 236, 0.05));
  border: 1px solid var(--cyan);
  color: var(--cyan);
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px var(--cyan-glow);
}

.chat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0;
  letter-spacing: -0.01em;
}

.chat-status {
  font: 10px var(--font-mono);
  color: #8da3b0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 6px #25d366;
  display: inline-block;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-action-btn:hover {
  background: rgba(69, 217, 236, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar {
  width: 5px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(69, 217, 236, 0.25);
  border-radius: 4px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* Chat Messages */
.chat-msg {
  display: flex;
  flex-direction: column;
  animation: msg-in 0.25s var(--ease-out-expo);
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg-content {
  padding: 0.75rem 0.95rem;
  font-size: 0.86rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-msg.bot {
  align-self: flex-start;
  max-width: 88%;
}

.chat-msg.bot .chat-msg-content {
  background: rgba(13, 31, 47, 0.88);
  border: 1px solid rgba(69, 217, 236, 0.18);
  border-radius: 14px 14px 14px 3px;
  color: #dce7ee;
}

.chat-msg.bot .chat-msg-content strong {
  color: var(--white);
}

.chat-msg.bot .chat-msg-content em {
  color: var(--amber);
  font-style: normal;
}

.chat-msg.user {
  align-self: flex-end;
  max-width: 82%;
}

.chat-msg.user .chat-msg-content {
  background: linear-gradient(135deg, #135571 0%, #0b3447 100%);
  border: 1px solid rgba(69, 217, 236, 0.35);
  border-radius: 14px 14px 3px 14px;
  color: #ffffff;
}

.chat-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.chat-msg-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: all 0.2s;
}

.chat-msg-cta.primary {
  background: linear-gradient(135deg, var(--cyan), #32bad0);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(69, 217, 236, 0.3);
}

.chat-msg-cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(69, 217, 236, 0.45);
}

.chat-msg-cta.whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.chat-msg-cta.whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

.chat-msg-cta.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--cyan);
}

.chat-msg-cta.ghost:hover {
  background: rgba(69, 217, 236, 0.12);
  border-color: var(--cyan);
}

/* Typing Indicator */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.9rem;
  background: rgba(13, 31, 47, 0.88);
  border: 1px solid rgba(69, 217, 236, 0.18);
  border-radius: 14px 14px 14px 3px;
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  animation: typing-bounce 1.3s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Quick Replies Chips */
.chat-quick-wrapper {
  padding: 0.65rem 1.1rem;
  background: rgba(6, 16, 25, 0.65);
  border-top: 1px solid rgba(69, 217, 236, 0.12);
}

.quick-title {
  font: 700 9px var(--font-mono);
  color: #7992a0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
  max-height: 96px;
  overflow-y: auto;
}

.chat-quick-replies::-webkit-scrollbar {
  width: 3px;
}

.chat-quick-replies::-webkit-scrollbar-thumb {
  background: rgba(69, 217, 236, 0.2);
}

.chat-chip {
  background: rgba(69, 217, 236, 0.06);
  border: 1px solid rgba(69, 217, 236, 0.24);
  color: #a4c9d8;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.32rem 0.65rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.chat-chip:hover {
  background: rgba(69, 217, 236, 0.18);
  border-color: var(--cyan);
  color: var(--white);
  transform: translateY(-1px);
}

/* Chat Footer Form */
.chat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: rgba(6, 16, 25, 0.95);
  border-top: 1px solid var(--line);
}

#chat-input {
  flex: 1;
  background: rgba(13, 31, 46, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.65rem 1rem;
  color: var(--paper);
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s;
}

#chat-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(69, 217, 236, 0.28);
  background: rgba(15, 36, 54, 0.95);
}

#chat-input::placeholder {
  color: #6d8492;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), #32bad0);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* --- 18. Reveal Animation Observer --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

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

/* Accessible Focus Visible */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ================================================
   19. RESPONSIVE DESIGN
   ================================================ */

/* Tablet (max-width: 980px) */
@media (max-width: 980px) {
  .site-header {
    min-height: 84px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  /* Full-Featured Mobile Drawer */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 13, 0.7);
    backdrop-filter: blur(8px);
    z-index: 97;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out-expo);
  }

  .nav-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .site-header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100vh;
    background: rgba(6, 16, 25, 0.98);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--line);
    padding: 2rem 1.8rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out-expo);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  }

  .site-header nav.open {
    transform: translateX(0);
  }

  .nav-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .nav-title {
    font: 700 12px var(--font-mono);
    color: var(--cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .nav-close-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--paper);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
  }

  .site-header nav a {
    font-size: 1.1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-subtle);
    color: var(--paper);
  }

  .site-header nav a::after {
    display: none;
  }

  .nav-mobile-cta {
    display: block;
    margin-top: auto;
    padding-top: 2rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-top: 3rem;
  }

  .launch-card {
    max-width: 580px;
  }

  .section-heading,
  .custom-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: auto;
  }

  .steps-section {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

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

  .author {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-action {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 2rem 0 0;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile (max-width: 700px) */
@media (max-width: 700px) {
  .site-header {
    width: min(calc(100% - 32px), var(--max));
    min-height: 76px;
    gap: 0.8rem;
  }

  .brand-logo {
    height: 50px;
    max-width: 190px;
  }

  .header-cta {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  .header-cta-arrow {
    display: none;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip span {
    padding: 1rem 0.75rem;
  }

  .trust-strip span:nth-child(2) {
    border-left: 1px solid var(--line-subtle);
  }

  .trust-strip span:nth-child(3),
  .trust-strip span:nth-child(4) {
    border-top: 1px solid var(--line-subtle);
  }

  .trust-strip span:nth-child(3) {
    border-left: 0;
  }

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

  .hero-actions .button {
    width: 100%;
  }

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

  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.8rem;
  }

  .filter-tabs {
    width: 100%;
  }

  .modal {
    padding: 1.6rem;
  }

  .modal ul {
    grid-template-columns: 1fr;
  }

  .modal-specs {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  /* Mobile Chat Adjustments */
  .chat-badge-text {
    display: none;
  }

  .chat-widget {
    width: 100vw;
    max-width: 100vw;
    height: 84vh;
    max-height: 84vh;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 20px 20px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    z-index: 102;
  }
}

/* Small Mobile (max-width: 460px) */
@media (max-width: 460px) {
  h1 {
    font-size: 2.8rem;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip span:not(:first-child) {
    border-left: 0;
    border-top: 1px solid var(--line-subtle);
  }

  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-actions .buy-link {
    text-align: center;
    padding: 0.5rem 0;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .orb {
    display: none;
  }

  .floating-whatsapp {
    animation: none;
  }
}
