/* ============================================================
   Codee-x — site
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6edf7;
  --text-muted: #9aa7bd;
  --text-dim: #64748b;
  --accent-1: #a78bfa;
  --accent-2: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.14);
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --grad: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, rgba(167, 139, 250, 0.18) 0%, rgba(124, 58, 237, 0.18) 100%);
  --shadow-lg: 0 30px 80px -20px rgba(8, 14, 26, 0.6);
  --shadow-md: 0 12px 30px -10px rgba(8, 14, 26, 0.5);
  --shadow-glow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 20px 60px -20px rgba(124, 58, 237, 0.35);
  --radius: 14px;
  --radius-lg: 22px;
}

html[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-2: #ffffff;
  --surface: rgba(15, 23, 42, 0.03);
  --surface-2: rgba(15, 23, 42, 0.05);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --accent-soft: rgba(124, 58, 237, 0.10);
  --shadow-lg: 0 30px 80px -20px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 12px 30px -10px rgba(15, 23, 42, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: rgba(167, 139, 250, 0.25); color: var(--text); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Background mesh + grid
   ============================================================ */

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(167, 139, 250, 0.14) 0%, transparent 60%),
    radial-gradient(50% 40% at 10% 20%, rgba(124, 58, 237, 0.16) 0%, transparent 60%),
    radial-gradient(40% 35% at 90% 80%, rgba(192, 132, 252, 0.12) 0%, transparent 60%),
    var(--bg);
  pointer-events: none;
}

html[data-theme="light"] .bg-mesh {
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(167, 139, 250, 0.10) 0%, transparent 60%),
    radial-gradient(50% 40% at 10% 20%, rgba(124, 58, 237, 0.10) 0%, transparent 60%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   Header
   ============================================================ */

#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, padding .25s;
}

#header.scrolled {
  padding: 10px 0;
  border-bottom-color: var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; color: var(--text); }
.logo img { height: 34px; width: auto; }
.logo .logo-l { display: none; }
html[data-theme="light"] .logo .logo-d { display: none; }
html[data-theme="light"] .logo .logo-l { display: block; }

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav-links a:hover::after { transform: scaleX(1); }

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

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }

.mobile-menu {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.mobile-menu span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.mobile-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu.active span:nth-child(2) { opacity: 0; }
.mobile-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .25s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}

.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

.btn-primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(124, 58, 237, 0.7); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-muted); }

.nav-cta { display: inline-flex; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 140px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 22px;
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

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

.stat-row {
  display: flex;
  gap: 36px;
  list-style: none;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat-row li { display: flex; flex-direction: column; gap: 2px; }
.stat-row strong {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'JetBrains Mono', monospace;
}
.stat-row span { font-size: 13px; color: var(--text-muted); }

/* Hero visual — terminal */
.hero-visual { position: relative; }

.terminal {
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

html[data-theme="light"] .terminal {
  background: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}

.term-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term-top .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.term-top .dot.r { background: #ff5f57; }
.term-top .dot.y { background: #febc2e; }
.term-top .dot.g { background: #28c840; }
.term-title {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #94a3b8;
}

.term-body {
  padding: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.85;
  color: #e2e8f0;
  overflow-x: auto;
}
.term-body .t-comment { color: #64748b; }
.term-body .t-prompt { color: #a78bfa; font-weight: 700; }
.term-body .t-cmd { color: #e6edf7; }
.term-body .t-str { color: #fbbf24; }
.term-body .t-flag { color: #c084fc; }
.term-body .t-ok { color: #34d399; }
.term-body .t-out { color: #93c5fd; }

.caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #a78bfa;
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
html[data-theme="light"] .floating-card { background: #ffffff; }
.floating-card strong { display: block; color: var(--text); font-size: 13px; }
.floating-card span { color: var(--text-muted); font-size: 12px; }
.fc-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent-1);
}
.f1 { top: 16%; left: -34px; animation-delay: -2s; }
.f2 { bottom: 14%; right: -28px; animation-delay: -4s; }

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

/* ============================================================
   Sections
   ============================================================ */

.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--surface) 30%, transparent); }

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

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-1);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.section-head h2,
section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

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

.service-card { display: flex; flex-direction: column; }
.service-card.highlight {
  border-color: rgba(167, 139, 250, 0.4);
  background:
    linear-gradient(180deg, rgba(167, 139, 250, 0.06) 0%, transparent 60%),
    var(--surface);
}
.service-card.highlight:hover { box-shadow: var(--shadow-glow); }

.ribbon {
  position: absolute;
  top: 18px; right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-1);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--accent-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.ticks li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--grad-soft);
  border-radius: 50%;
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent-1);
  border-bottom: 1.5px solid var(--accent-1);
  transform: rotate(-45deg);
}

.link {
  color: var(--accent-1);
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
}
.link:hover { color: var(--accent-2); }

/* ============================================================
   Produto (Contadex)
   ============================================================ */

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(10px);
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.product-logo {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-brand h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.product-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
  margin-bottom: 28px;
}
.feat-grid li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feat-grid li span {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.product-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Mock */
.product-mock { position: relative; }

.mock-window {
  background: #0f172a;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mock-top {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mock-top span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.mock-top span:first-child { background: #ff5f57; }
.mock-top span:nth-child(2) { background: #febc2e; }
.mock-top span:nth-child(3) { background: #28c840; }

.mock-body { display: grid; grid-template-columns: 80px 1fr; min-height: 280px; }

.mock-side {
  background: rgba(0, 0, 0, 0.25);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.mock-item {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
}
.mock-item.active { background: var(--grad); }

.mock-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-row {
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.mock-row-head { width: 40%; }

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-stat b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e6edf7;
}
.mock-stat span { font-size: 11px; color: #64748b; }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  margin-top: 4px;
}
.mock-chart div {
  flex: 1;
  height: var(--h, 50%);
  background: var(--grad);
  border-radius: 6px 6px 2px 2px;
  opacity: 0.85;
  animation: barRise 1.2s ease-out backwards;
}
.mock-chart div:nth-child(1) { animation-delay: .1s; }
.mock-chart div:nth-child(2) { animation-delay: .2s; }
.mock-chart div:nth-child(3) { animation-delay: .3s; }
.mock-chart div:nth-child(4) { animation-delay: .4s; }
.mock-chart div:nth-child(5) { animation-delay: .5s; }
.mock-chart div:nth-child(6) { animation-delay: .6s; }
.mock-chart div:nth-child(7) { animation-delay: .7s; }

@keyframes barRise { from { height: 0; opacity: 0; } }

/* ============================================================
   Sobre
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.about-grid h2 { margin-bottom: 18px; }
.about-grid p { color: var(--text-muted); margin-bottom: 16px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
}

.value-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.value-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .25s, transform .25s;
}
.value-list li:hover { border-color: var(--border-strong); transform: translateX(4px); }
.v-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.value-list h4 { font-size: 1.05rem; margin-bottom: 4px; }
.value-list p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ============================================================
   Contato
   ============================================================ */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.16), transparent 65%);
  pointer-events: none;
}

.contact-card h2 { margin-bottom: 16px; }
.contact-card .lead { margin-bottom: 26px; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.contact-list svg { color: var(--accent-1); flex-shrink: 0; }
.contact-list a { color: var(--text); font-weight: 500; transition: color .2s; }
.contact-list a:hover { color: var(--accent-1); }

.contact-form { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.contact-form input,
.contact-form textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  background: var(--bg);
}
.contact-form button { width: 100%; margin-top: 6px; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  min-height: 18px;
}
.form-note.is-ok { color: var(--success); }
.form-note.is-err { color: var(--danger); }

/* ============================================================
   Footer
   ============================================================ */

footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 60px;
  background: linear-gradient(180deg, transparent, var(--surface));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  margin-bottom: 40px;
}

.footer-grid .logo img { height: 30px; }
.footer-grid > div:first-child p { margin-top: 14px; font-size: 14px; max-width: 280px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-cols a:hover { color: var(--accent-1); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Reveal animations
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .floating-card, .caret, .badge .dot, .mock-chart div { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .hero { padding: 120px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 540px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; padding: 32px; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-card { grid-template-columns: 1fr; padding: 36px; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-cta { display: none; }
  .mobile-menu { display: flex; }
  .nav-links {
    position: fixed;
    inset: 70px 16px auto 16px;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }

  .stat-row { gap: 22px; flex-wrap: wrap; }
  .section { padding: 70px 0; }
  .f1, .f2 { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .term-body { font-size: 12px; padding: 16px; }
  .card { padding: 24px; }
  .contact-card { padding: 28px; }
  .product { padding: 24px; }
}
