:root {
  --bg-primary: #060913;
  --bg-secondary: #0B1120;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(0, 242, 234, 0.35);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --meta-blue: #1877F2;
  --tt-cyan: #00F2EA;
  --tt-pink: #FF0050;
  --google-amber: #FBBC04;
  --emerald: #10B981;
  --grad-brand: linear-gradient(135deg, #1877F2 0%, #00F2EA 52%, #FF0050 100%);
  --grad-cyan-blue: linear-gradient(135deg, #00F2EA 0%, #1877F2 100%);
  --shadow-glow: 0 20px 50px -12px rgba(24, 119, 242, 0.28);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.025em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Ambient Background & Cursor Spotlight */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(115px);
  opacity: 0.26;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: var(--meta-blue);
  top: -140px;
  left: -100px;
}

.orb-2 {
  width: 440px;
  height: 440px;
  background: var(--tt-cyan);
  top: 22%;
  right: -120px;
  animation-delay: -5s;
}

.orb-3 {
  width: 480px;
  height: 480px;
  background: var(--tt-pink);
  bottom: 8%;
  left: 18%;
  opacity: 0.16;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(45px, 35px) scale(1.1); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(0, 242, 234, 0.4);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}

.nav-links li {
  white-space: nowrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--tt-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-cyan-blue);
  color: #040814;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0, 242, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 242, 234, 0.48);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 242, 234, 0.45);
}

/* Hero Section */
.hero {
  padding: 148px 0 84px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.14);
  border: 1px solid rgba(0, 242, 234, 0.35);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tt-cyan);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tt-cyan);
  box-shadow: 0 0 12px var(--tt-cyan);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.45; }
}

.hero h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.25rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 22px;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 610px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.04);
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

/* Hero Command Center Mockup */
.hero-visual {
  position: relative;
}

.command-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(9, 14, 28, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  position: relative;
}

.cmd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.channel-pills {
  display: flex;
  gap: 8px;
}

.ch-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 600;
}

.ch-meta { background: rgba(24, 119, 242, 0.2); color: #60A5FA; border: 1px solid rgba(24, 119, 242, 0.4); }
.ch-tt { background: rgba(0, 242, 234, 0.15); color: var(--tt-cyan); border: 1px solid rgba(0, 242, 234, 0.35); }
.ch-google { background: rgba(251, 188, 4, 0.16); color: #FBBF24; border: 1px solid rgba(251, 188, 4, 0.35); }

.kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-mini {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
}

.kpi-mini .label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.kpi-mini .val {
  font-size: 1.32rem;
  font-weight: 800;
  margin-top: 2px;
}

.kpi-mini .delta {
  font-size: 0.72rem;
  color: var(--emerald);
  font-weight: 600;
}

/* TikTok Ad Preview + AI Radar inside Hero Card */
.cmd-body-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
}

.tt-phone-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 230px;
  border: 1px solid rgba(0, 242, 234, 0.35);
  background: #000;
}

.tt-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.tt-overlay-ui {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 45%, rgba(0,0,0,0.86) 100%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tt-hook-score {
  align-self: flex-start;
  background: rgba(255, 0, 80, 0.88);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}

.tt-caption {
  font-size: 0.76rem;
  color: #fff;
  line-height: 1.35;
}

.ai-log-box {
  background: rgba(6, 9, 19, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-log-item {
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--tt-cyan);
  margin-bottom: 8px;
}

.floating-badge {
  position: absolute;
  bottom: -18px;
  left: -24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(0, 242, 234, 0.45);
  padding: 12px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

/* Marquee Ticker */
.marquee-wrap {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 17, 32, 0.65);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scrollMarquee 32s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.marquee-item strong {
  color: var(--text-main);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section Generic */
section {
  padding: 96px 0;
  position: relative;
  z-index: 2;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tt-cyan);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}

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

/* Bento Grid (AI Engine) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
  background: rgba(0, 242, 234, 0.12);
  color: var(--tt-cyan);
}

.bento-card h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 20px;
}

.bento-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(6, 9, 19, 0.8);
}

.bento-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* Interactive Channel Switcher (Meta / TikTok / Google / Cross-Border) */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 13px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.tab-btn.active {
  background: rgba(24, 119, 242, 0.2);
  color: var(--text-main);
  border-color: var(--tt-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 234, 0.25);
}

.tab-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 26px;
  padding: 40px;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.tab-panel.active {
  display: grid;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-list {
  list-style: none;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: #E2E8F0;
}

.check-icon {
  color: var(--tt-cyan);
  font-weight: 800;
}

.panel-showcase {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.panel-showcase img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.panel-metric-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(6, 9, 19, 0.92);
  border-top: 1px solid var(--border-subtle);
}

/* Creator & UGC Video Wall (TikTok / WotoHub style) */
.ugc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ugc-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 390px;
  border: 1px solid var(--border-subtle);
  background: #000;
  group: true;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.ugc-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--tt-cyan);
}

.ugc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  transition: transform 0.5s ease;
}

.ugc-card:hover img {
  transform: scale(1.06);
}

.ugc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 45%, rgba(6,9,19,0.95) 100%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ugc-top-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ugc-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ugc-roas {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10B981;
  color: #6EE7B7;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}

/* Interactive AI ROAS Calculator */
.calc-wrapper {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(24, 119, 242, 0.12) 100%);
  border: 1px solid rgba(0, 242, 234, 0.3);
  border-radius: 28px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.slider-group {
  margin-bottom: 22px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--tt-cyan);
  cursor: pointer;
  height: 6px;
  border-radius: 99px;
}

.calc-output-card {
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: 22px;
  padding: 30px;
}

.calc-big-num {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--tt-cyan);
  line-height: 1.1;
  margin: 8px 0 18px;
}

/* Case Studies */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--meta-blue);
}

.case-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  padding: 26px;
}

.case-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* Lead Capture & Audit Modal / Section */
.cta-banner {
  background: radial-gradient(circle at 85% 20%, rgba(255, 0, 80, 0.22), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(0, 242, 234, 0.22), transparent 50%),
              linear-gradient(180deg, #0D1528 0%, #070B16 100%);
  border: 1px solid rgba(0, 242, 234, 0.35);
  border-radius: 30px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.audit-form {
  background: rgba(6, 9, 19, 0.82);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  border-radius: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #0B1120;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300F2EA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
  color-scheme: dark;
}

select.form-control option {
  background-color: #0B1120;
  color: #F8FAFC;
  padding: 12px;
}

.form-control:focus {
  outline: none;
  border-color: var(--tt-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.18);
  background-color: rgba(15, 23, 42, 0.95);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 40px;
  background: #04060E;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--tt-cyan);
}

@media (max-width: 1024px) {
  .hero-grid, .tab-panel.active, .calc-wrapper, .cta-banner {
    grid-template-columns: 1fr;
  }
  .span-7, .span-5, .span-4, .span-8 {
    grid-column: span 12;
  }
  .ugc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
