/* ═══════════════════════════════════════════════════════════════
   ALLIANTRA — Landing Page Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --text: #030213;
  --text-muted: #717182;
  --border: rgba(0, 0, 0, 0.08);
  --surface: #f7f7f9;
  --card: #ffffff;

  --purple: #6C5CE7;
  --purple-light: #EBE8FD;
  --cyan: #00B4D8;
  --cyan-light: #D6F0FF;
  --green: #00C48C;
  --orange: #E17055;
  --orange-light: #FFE0D6;

  --gradient: linear-gradient(135deg, #6C5CE7, #00B4D8);
  --gradient-dark: linear-gradient(135deg, #0B0D1F 0%, #141535 40%, #0F1A3A 100%);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --container: 1140px;
  --nav-h: 68px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Utility ─────────────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.positive { color: var(--green); }
.negative { color: #E74C3C; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.938rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 12px 24px;
  line-height: 1.2;
}
.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover {
  background: #1a1a2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(3,2,19,0.18);
}
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text);
}
.btn-white {
  background: #fff;
  color: var(--text);
}
.btn-white:hover {
  background: #f0f0f3;
  transform: translateY(-1px);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ─── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
}
.badge-ai {
  background: linear-gradient(135deg, #6C5CE7, #00B4D8);
  color: #fff;
}
.badge-ai-dark {
  background: rgba(108, 92, 231, 0.1);
  color: var(--purple);
  font-size: 0.8rem;
  padding: 6px 14px;
}
.badge-ai-sm {
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
}

/* ═══════════════════════════ NAVBAR ═══════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
}
.logo-icon { flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 80px;
  overflow: hidden;
  min-height: 620px;
}
.hero-bg-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -120px; right: -60px;
  opacity: 0.12;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  top: 200px; right: 200px;
  opacity: 0.08;
  animation-delay: -4s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: var(--purple);
  bottom: -100px; left: 10%;
  opacity: 0.06;
  animation-delay: -8s;
}
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Hero Dashboard ──────────────────────────────────────────── */
.hero-visual {
  position: relative;
}
.dashboard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.06);
}
.dashboard-main {
  position: relative;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.dashboard-title {
  font-size: 0.85rem;
  font-weight: 600;
}
.dashboard-body {
  padding: 0;
}

/* Chart */
.chart-section {
  padding: 16px 20px 8px;
  border-bottom: 1px solid var(--border);
}
.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.chart-label { font-size: 0.75rem; color: var(--text-muted); }
.chart-value { font-size: 1.1rem; font-weight: 700; }
.chart-area { height: 80px; }
.line-chart { width: 100%; height: 100%; }
.chart-months {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 4px 0 8px;
}

/* Partners list */
.partners-section { padding: 14px 20px 16px; }
.partners-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.partner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.partner-row + .partner-row { border-top: 1px solid var(--border); }
.partner-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.partner-info { flex: 1; min-width: 0; }
.partner-name { font-size: 0.8rem; font-weight: 500; display: block; }
.partner-sub { font-size: 0.68rem; color: var(--text-muted); }
.partner-change { font-size: 0.78rem; font-weight: 600; }

/* Floating metric */
.dashboard-float {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-size: 0.78rem;
  font-weight: 600;
  animation: floatUp 4s ease-in-out infinite alternate;
}
.float-metric {
  top: -12px;
  right: 24px;
  color: var(--green);
}
@keyframes floatUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ═══════════════════════════ TRUST BAR ═══════════════════════════ */
.trust-bar {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9da3b0;
  letter-spacing: -0.01em;
}
.trust-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ═══════════════════════════ BENEFITS ═══════════════════════════ */
.benefits {
  padding: 80px 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.benefit-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.benefit-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════ METRICS ═══════════════════════════ */
.metrics-strip {
  background: var(--gradient-dark);
  padding: 56px 0;
}
.metrics-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.metric-item {}
.metric-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.metric-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
}
.metric-sub {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ═══════════════════════════ CORE MESSAGE ═══════════════════════════ */
.core-message {
  padding: 96px 0;
  text-align: center;
}
.section-headline {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* ═══════════════════════════ PRODUCT PREVIEW ═══════════════════════════ */
.product-preview {
  padding: 80px 0 96px;
  background: var(--surface);
}
.product-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.product-feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.pf-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.product-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Dashboard Table */
.dashboard-table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.dt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.dt-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dt-icon {
  width: 36px; height: 36px;
  background: #E8FBF3;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-title-group strong { font-size: 0.95rem; display: block; }
.dt-subtitle { font-size: 0.75rem; color: var(--text-muted); display: block; }
.dt-link {
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 500;
}
.dt-link:hover { text-decoration: underline; }

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.analytics-table th {
  text-align: left;
  padding: 12px 24px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.analytics-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.analytics-table tbody tr:last-child td { border-bottom: none; }
.analytics-table strong { font-weight: 600; font-size: 0.85rem; }
.table-sub { font-size: 0.72rem; color: var(--text-muted); }

.status-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
}
.status-up {
  background: #E8FBF3;
  color: var(--green);
}
.status-grow {
  background: var(--cyan-light);
  color: var(--cyan);
}

/* ═══════════════════════════ AI SECTION ═══════════════════════════ */
.ai-section {
  padding: 96px 0;
}
.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ai-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 16px 0 16px;
}
.ai-content > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}
.ai-features { display: flex; flex-direction: column; gap: 20px; }
.ai-feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ai-feat-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-feat strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 3px;
}
.ai-feat p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* AI Visual Card */
.ai-visual-card {
  background: linear-gradient(145deg, #0B0D1F, #141535);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.ai-visual-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ai-visual-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.ai-network {
  position: relative;
  height: 180px;
  margin-bottom: 16px;
}
.ai-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ai-node {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  animation: nodePulse 3s ease-in-out infinite;
}
.node-center {
  width: 24px; height: 24px;
  background: var(--purple);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(108,92,231,0.5);
}
.node-1 { background: var(--cyan); top: 10%; left: 15%; animation-delay: 0.5s; }
.node-2 { background: var(--purple); top: 10%; right: 15%; animation-delay: 1s; }
.node-3 { background: var(--green); bottom: 15%; left: 10%; animation-delay: 1.5s; }
.node-4 { background: var(--orange); bottom: 15%; right: 10%; animation-delay: 2s; }
.node-5 { background: var(--cyan); bottom: 0%; left: 48%; animation-delay: 0.8s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
.node-center { animation: nodePulse 3s ease-in-out infinite; }

.ai-recommend-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}
.ai-rec-label {
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 4px;
}
.ai-recommend-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.ai-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.ai-stat {
  text-align: center;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.ai-stat-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}
.ai-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* ═══════════════════════════ FINAL CTA ═══════════════════════════ */
.final-cta {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--gradient-dark);
  text-align: center;
}
.final-cta-inner {
  position: relative;
  z-index: 1;
}
.final-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.final-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.final-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.final-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
.footer {
  background: #0B0D1F;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 16px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: 0.2s;
}
.footer-socials a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.75rem;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a { transition: color 0.2s; }
.footer-bottom-links a:hover { color: #fff; }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .product-features { grid-template-columns: 1fr 1fr; }
  .ai-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .mobile-toggle { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 40px); min-height: auto; }
  .hero-title { font-size: 1.8rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: 1fr; gap: 24px; }
  .product-features { grid-template-columns: 1fr; }

  .analytics-table th,
  .analytics-table td {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .final-trust { flex-direction: column; align-items: center; gap: 8px; }
}
