/* ============================================================
   LDMTECH.TECH — Liquid Glass Design System
   Estética inspirada no Liquid Glass da Apple (WWDC 2025)
   ============================================================ */

:root {
  --bg: #05060f;
  --bg-2: #0a0d1f;
  --text: #f2f4ff;
  --text-dim: rgba(226, 232, 255, 0.62);
  --text-faint: rgba(226, 232, 255, 0.38);

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.28);

  --c1: #67e8f9; /* ciano */
  --c2: #818cf8; /* índigo */
  --c3: #e879f9; /* fúcsia */
  --c4: #7dd3fc; /* azul claro */

  --grad: linear-gradient(100deg, var(--c1), var(--c2) 50%, var(--c3));
  --radius: 22px;
  --radius-lg: 32px;
  --blur: 22px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(129, 140, 248, 0.45); color: #fff; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ============ FUNDO AURORA ============ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(129, 140, 248, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 10% 110%, rgba(103, 232, 249, 0.10), transparent 60%),
    var(--bg);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
  animation: drift 26s var(--ease-spring) infinite alternate;
}

.blob-1 {
  width: 560px; height: 560px;
  top: -12%; left: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(103, 232, 249, 0.55), transparent 65%);
}
.blob-2 {
  width: 640px; height: 640px;
  top: 8%; right: -14%;
  background: radial-gradient(circle at 60% 40%, rgba(129, 140, 248, 0.55), transparent 65%);
  animation-delay: -6s;
}
.blob-3 {
  width: 520px; height: 520px;
  bottom: -18%; left: 22%;
  background: radial-gradient(circle at 50% 50%, rgba(232, 121, 249, 0.38), transparent 65%);
  animation-delay: -12s;
}
.blob-4 {
  width: 420px; height: 420px;
  top: 42%; left: 55%;
  background: radial-gradient(circle at 50% 50%, rgba(125, 211, 252, 0.35), transparent 65%);
  animation-delay: -18s;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(60px, -40px, 0) scale(1.12); }
  100% { transform: translate3d(-50px, 50px, 0) scale(0.94); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ LIQUID GLASS — material base ============ */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.04),
    0 20px 50px -20px rgba(0, 0, 0, 0.55);
}

/* brilho especular superior — assinatura do liquid glass */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.05) 28%,
    transparent 55%,
    rgba(255, 255, 255, 0.10) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============ NAVEGAÇÃO ============ */
.nav-wrapper {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 20px;
}

.nav {
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
  border-radius: 100px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 13, 31, 0.55);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    0 24px 60px -24px rgba(0, 0, 0, 0.75);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
}

.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }

.brand-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-text em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn .ic { width: 18px; height: 18px; }

.btn-primary {
  background: var(--grad);
  color: #0a0d1f;
  box-shadow: 0 12px 34px -10px rgba(129, 140, 248, 0.65);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -10px rgba(129, 140, 248, 0.85);
}

.btn-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-color: var(--glass-border);
  color: var(--text);
  box-shadow: inset 0 1px 0 0 var(--glass-highlight);
}
.btn-glass:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 90px;
  position: relative;
}

.hero-inner { max-width: 940px; position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 34px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(103, 232, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.2vw, 84px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.grad-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 7s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 42px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  font-weight: 400;
}

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

/* Cards flutuantes do hero */
.hero-cards { position: absolute; inset: 0; pointer-events: none; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-radius: 18px;
  text-align: left;
  animation: floaty 7s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14px; font-weight: 600; }
.float-card span { font-size: 12.5px; color: var(--text-faint); }

.fc-icon {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0a0d1f;
}
.fc-icon svg { width: 21px; height: 21px; }

.fc-1 { top: 6%; left: -14%; animation-delay: 0s; }
.fc-2 { top: 22%; right: -16%; animation-delay: -2.4s; }
.fc-3 { bottom: 4%; left: -8%; animation-delay: -4.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-16px) rotate(1.2deg); }
}

.grad-1 { background: linear-gradient(135deg, #67e8f9, #38bdf8); }
.grad-2 { background: linear-gradient(135deg, #818cf8, #6366f1); color: #fff; }
.grad-3 { background: linear-gradient(135deg, #e879f9, #c084fc); }
.grad-4 { background: linear-gradient(135deg, #7dd3fc, #60a5fa); }
.grad-5 { background: linear-gradient(135deg, #5eead4, #34d399); }
.grad-6 { background: linear-gradient(135deg, #fda4af, #fb7185); }

.scroll-hint {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
}
.mouse {
  width: 24px; height: 38px;
  border: 1.5px solid var(--text-faint);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.wheel {
  width: 3px; height: 7px;
  border-radius: 3px;
  background: var(--text-dim);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ SEÇÕES ============ */
.section { padding: 120px 0; position: relative; }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 18px;
}

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

/* ============ GRID DE SOLUÇÕES ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease-spring), background 0.35s ease, box-shadow 0.45s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-strong);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    0 34px 70px -28px rgba(0, 0, 0, 0.7);
}
.card:hover::after { opacity: 1; }

.card-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #0a0d1f;
  margin-bottom: 24px;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.5);
}
.card-icon svg { width: 27px; height: 27px; }
.grad-2.card-icon, .card-icon.grad-2 { color: #fff; }

.card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card p { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }

.card-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

/* ============ PROCESSO / TIMELINE ============ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.tl-item {
  padding: 30px 26px;
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-spring), background 0.3s ease;
}
.tl-item:hover { transform: translateY(-6px); background: var(--glass-bg-strong); }

.tl-item:nth-child(7) { grid-column: span 1; }

.tl-num {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.tl-item h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  margin-bottom: 9px;
}
.tl-item p { font-size: 14px; color: var(--text-dim); }

/* ============ DIFERENCIAIS ============ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.diff {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 26px;
  align-items: start;
  transition: transform 0.4s var(--ease-spring), background 0.3s ease;
}
.diff:hover { transform: translateY(-6px); background: var(--glass-bg-strong); }

.diff-num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.12));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.diff h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.diff p { color: var(--text-dim); font-size: 15px; }

/* ============ CTA FINAL ============ */
.cta-section { padding-bottom: 140px; }

.cta-panel {
  position: relative;
  text-align: center;
  padding: 90px 40px 70px;
  border-radius: 40px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 420px;
  background: radial-gradient(ellipse, rgba(129, 140, 248, 0.32), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-panel p {
  max-width: 560px;
  margin: 0 auto 42px;
  color: var(--text-dim);
  font-size: 17px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cta-phone {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 6, 15, 0.6);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding: 70px 0 50px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--text-faint);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-faint);
  padding: 5px 0;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}

/* ============ WHATSAPP FLUTUANTE ============ */
.wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4ade80;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
  animation: floaty 6s ease-in-out infinite;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 40px -12px rgba(74, 222, 128, 0.4);
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVO ============ */
@media (max-width: 1100px) {
  .fc-1 { left: -4%; }
  .fc-2 { right: -5%; }
  .fc-3 { left: 0; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .float-card { display: none; }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 14px;
    border-radius: 24px;
    background: rgba(10, 13, 31, 0.82);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { display: block; padding: 13px 18px; }
  .nav-toggle { display: flex; }
  .nav { position: relative; }
}

@media (max-width: 600px) {
  .section { padding: 84px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 130px; }
  .cta-panel { padding: 64px 26px 54px; }
  .nav .btn-sm { display: none; }
  .scroll-hint { display: none; }
  .diff { grid-template-columns: 1fr; }
  .diff-num { grid-row: auto; margin-bottom: 14px; font-size: 36px; }
}

/* ============ ACESSIBILIDADE ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
