/* ==========================================================================
   ADSGENIX PRIME — PEAK B2B SAAS DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Core Palette — The "Trust & Infrastructure" foundation */
  --bg: #030509;         /* Void black */
  --bg-elevated: #090c14; /* Deep interface base */
  --bg-card: #10141f;    /* Interactive elements */
  
  --line: #1c2333;       /* Subtle borders */
  --line-bright: #2d3852;/* Active borders */
  
  --ink-1: #ffffff;      /* Primary text */
  --ink-2: #94a3b8;      /* Secondary copy */
  --ink-3: #64748b;      /* Tertiary / metadata */
  --ink-4: #334155;      /* Subdued tags */

  /* Semantic Brand Colors */
  --accent: #3b7ff5;     /* 'Adsgenix Blue' - Trust, Scale, Tech */
  --accent-glow: rgba(59, 127, 245, 0.25);
  --accent-soft: rgba(59, 127, 245, 0.1);
  
  --signal-ok: #10b981;  /* Positive ROI / Success */
  --signal-warn: #fbbf24;/* Pause / Draft */
  --signal-err: #ef4444; /* Kill switch */

  /* Typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --font-serif: 'Instrument Serif', serif;

  /* Physics */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

/* Reset & Base Scoped to Landing */
#page-landing { 
  background: var(--bg); color: var(--ink-1); font-family: var(--font-sans); 
  -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden;
}

/* Texture — Sub-perceptual grain for premium finish */
#page-landing::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04; mix-blend-mode: overlay;
}

/* Ambient Lighting — Professional, restrained glow */
.ambient { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; top: -20vh; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 60vh; background: radial-gradient(ellipse at center, rgba(59,127,245,0.08) 0%, transparent 70%); filter: blur(60px);
}

/* Layout Utilities Scopings */
#page-landing .wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 10; }
#page-landing .wrap-narrow { max-width: 840px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 10; }
#page-landing section { position: relative; padding: 120px 0; }

/* Buttons */
#page-landing .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  transition: all 0.3s var(--ease); cursor: pointer; text-decoration: none; border: 1px solid transparent;
}
#page-landing .btn-primary { 
  background: var(--ink-1); color: var(--bg); 
  box-shadow: 0 4px 14px rgba(255,255,255,0.1), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
#page-landing .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,255,255,0.15), 0 0 0 1px rgba(255,255,255,0.2) inset; }
#page-landing .btn-secondary { background: var(--bg-card); color: var(--ink-1); border-color: var(--line); }
#page-landing .btn-secondary:hover { background: var(--line); border-color: var(--line-bright); }

/* Typography Scale */
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; margin-bottom: 24px; display: block; }
h1.title { font-size: clamp(48px, 6vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 24px; }
h1.title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--ink-2); }
h2.heading { font-size: clamp(32px, 4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
h2.heading em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.lead { font-size: 20px; color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
.mono-tag { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 6px; background: var(--bg-card); border: 1px solid var(--line); color: var(--ink-2); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
#page-landing nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 20px 0; border-bottom: 1px solid transparent; transition: all 0.4s var(--ease);
}
#page-landing nav.scrolled { background: rgba(3,5,9,0.85); backdrop-filter: blur(16px); border-bottom-color: var(--line); padding: 14px 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.logomark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink-1); text-decoration: none; }
.logomark svg { width: 24px; height: 24px; color: var(--accent); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 8px 16px; text-decoration: none; border-radius: 8px; transition: 0.2s; }
.nav-links a:hover { color: var(--ink-1); background: rgba(255,255,255,0.05); }
.nav-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-right: 16px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; }
.pulse-dot { width: 6px; height: 6px; background: var(--signal-ok); border-radius: 50%; box-shadow: 0 0 8px var(--signal-ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 180px 0 80px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: var(--accent-soft); border: 1px solid rgba(59,127,245,0.2); border-radius: 99px; font-size: 13px; color: var(--accent); margin-bottom: 32px; font-weight: 500; }
.hero-badge span { background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; }
.hero .lead { margin: 0 auto 48px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; }

/* The Dashboard "Product Canvas" */
.product-frame {
  margin-top: 80px; padding: 12px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8), 0 0 0 1px var(--line);
  transform: perspective(2000px) rotateX(10deg); transition: transform 0.8s var(--ease);
}
.hero:hover .product-frame { transform: perspective(2000px) rotateX(0deg) translateY(-10px); }
.product-window { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; height: 500px; }
.window-chrome { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-card); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-bright); }
.address-bar { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); background: var(--bg); padding: 4px 120px; border-radius: 6px; border: 1px solid var(--line); }
.window-body { display: grid; grid-template-columns: 220px 1fr 300px; flex: 1; text-align: left; background: var(--bg); }
.w-side { border-right: 1px solid var(--line); padding: 24px 16px; }
.w-side-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--ink-2); border-radius: 8px; margin-bottom: 4px; }
.w-side-item.active { background: var(--bg-card); color: var(--ink-1); }
.w-main { padding: 32px; }
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.w-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--bg-card); }
.w-card-title { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; margin-bottom: 8px; }
.w-card-val { font-size: 24px; font-weight: 600; }
.w-card-delta { font-size: 12px; color: var(--signal-ok); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.w-right { border-left: 1px solid var(--line); padding: 24px; background: rgba(59,127,245,0.02); display: flex; flex-direction: column; gap: 16px; }
.ai-msg { background: rgba(59,127,245,0.1); border: 1px solid rgba(59,127,245,0.2); padding: 12px; border-radius: 8px; font-size: 12px; line-height: 1.5; color: var(--ink-1); }
.ai-msg strong { color: var(--accent); }

/* ==========================================================================
   LOGOS (Trust Layer)
   ========================================================================== */
.logos { padding: 60px 0; border-top: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; }
.logos-text { 
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; 
  padding: 0 40px; border-right: 1px solid var(--line); white-space: nowrap; font-weight: 500;
}
.track { display: flex; gap: 60px; padding-left: 40px; animation: slide 30s linear infinite; white-space: nowrap; }
.track span { font-size: 20px; font-weight: 600; color: var(--ink-2); }
.track span em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--ink-3); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   METRICS / ROI (The "Why")
   ========================================================================== */
.roi { border-top: 1px solid var(--line); background: var(--bg-elevated); padding: 100px 0; }
.roi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.roi-card { text-align: left; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); transition: 0.3s; }
.roi-card:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.roi-stat { font-family: var(--font-sans); font-weight: 600; font-size: 48px; letter-spacing: -0.03em; color: var(--ink-1); line-height: 1; margin-bottom: 12px; }
.roi-stat span { font-size: 24px; color: var(--signal-ok); vertical-align: middle; }
.roi-label { font-size: 15px; color: var(--ink-2); font-weight: 500; }

/* ==========================================================================
   THE PLATFORM (Bento Grid)
   ========================================================================== */
.platform { padding: 160px 0; border-top: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 60px; }
.b-card { 
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-lg); 
  padding: 40px; display: flex; flex-direction: column; overflow: hidden; position: relative;
  transition: all 0.4s var(--ease);
}
.b-card:hover { border-color: var(--line-bright); background: var(--bg-card); }
.b-card.wide { grid-column: span 12; }
.b-card.half { grid-column: span 6; }
.b-card.third { grid-column: span 4; }
.b-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.b-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.b-icon svg { width: 20px; height: 20px; color: var(--accent); }
.b-card h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.2; }
.b-card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 40ch; }
.b-viz { margin-top: auto; padding-top: 40px; }

/* Visuals inside Bento */
.viz-wa { background: #0a1118; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.viz-wa .msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.viz-wa .in { background: #121c29; color: var(--ink-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.viz-wa .out { background: rgba(59,127,245,0.15); border: 1px solid rgba(59,127,245,0.3); color: var(--ink-1); align-self: flex-end; border-bottom-right-radius: 4px; }

.viz-campaign { display: flex; gap: 12px; }
.v-col { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.v-col-title { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-bottom: 10px; }
.v-item { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 6px; padding: 10px; margin-bottom: 8px; }
.v-item.active { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }
.v-title { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.v-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.v-item.active .v-meta { color: var(--signal-ok); }

/* ==========================================================================
   PRICING (Transparent, B2B)
   ========================================================================== */
.pricing { padding: 160px 0; border-top: 1px solid var(--line); text-align: center; }
.pricing .lead { margin: 0 auto; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; text-align: left; }
.tier { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; background: var(--bg-elevated); display: flex; flex-direction: column; }
.tier.pro { border-color: var(--accent); background: linear-gradient(180deg, rgba(59,127,245,0.05) 0%, transparent 100%); position: relative; }
.pro-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; }
.t-name { font-size: 18px; font-weight: 600; }
.t-price { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; margin: 16px 0 8px; }
.t-price span { font-size: 15px; color: var(--ink-3); font-weight: 400; }
.t-desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; min-height: 80px; }
.tier ul { list-style: none; flex: 1; }
.tier li { font-size: 14px; color: var(--ink-1); margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; }
.tier li svg { fill: var(--accent); width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.btn-tier { width: 100%; margin-top: 32px; padding: 14px; text-align: center; border-radius: 10px; font-weight: 600; font-size: 14px; display: block; text-decoration: none; transition: 0.2s; }
.btn-tier.reg { background: var(--bg-card); color: var(--ink-1); border: 1px solid var(--line); }
.btn-tier.reg:hover { border-color: var(--ink-3); }
.btn-tier.primary { background: var(--ink-1); color: var(--bg); }
.btn-tier.primary:hover { box-shadow: 0 4px 14px rgba(255,255,255,0.2); }

/* ==========================================================================
   FOOTER (Meta Compliance Ready)
   ========================================================================== */
#page-landing footer { border-top: 1px solid var(--line); padding: 80px 0 40px; background: var(--bg); }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.f-brand p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 16px; max-width: 38ch; }
.f-brand .addr { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 24px; text-transform: uppercase; }
.f-col h4 { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.f-col a { display: block; font-size: 14px; color: var(--ink-2); text-decoration: none; margin-bottom: 12px; transition: 0.2s; }
.f-col a:hover { color: var(--ink-1); }
.f-bottom { border-top: 1px solid var(--line); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* Responsive basics */
@media (max-width: 1024px) {
  .bento, .roi-grid { grid-template-columns: repeat(2, 1fr); }
  .b-card.half, .b-card.third, .b-card.wide { grid-column: span 2; }
  .tier-grid { grid-template-columns: 1fr; max-width: 500px; margin: 60px auto 0; }
  .window-body { grid-template-columns: 1fr; }
  .w-side, .w-right { display: none; }
}
@media (max-width: 768px) {
  .f-grid { grid-template-columns: 1fr; gap: 40px; }
  h1.title { font-size: 40px; }
  h2.heading { font-size: 32px; }
  .hero { padding: 120px 0 60px; }
  .roi-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-status, .nav-cta { display: none; }
}
