/* ===== RESET & CUSTOM PROPERTIES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #09090b; --bg2: #0d0d10; --bg3: #111116; --bg4: #1a1a1f;
  --accent: #E8A924; --accent2: #F0C04A; --accent-dark: #D4941A;
  --purple: #6366f1;
  --white: #F5F5F5; --gray: #888; --gray2: #555; --gray3: #2a2a2f; --gray4: #1e1e23;
  --radius: 16px; --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: all .25s var(--ease); }
a:hover { opacity: .85; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO TEXT SHIMMER ===== */
@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.hero-headline-shimmer {
  background: linear-gradient(90deg, var(--white) 0%, var(--white) 40%, var(--accent2) 50%, var(--white) 60%, var(--white) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
}

/* ===== BUTTON GLOW ===== */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(232,169,36,.5) 0%, transparent 60%);
  transition: opacity .3s; pointer-events: none; z-index: 0;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent)); width: 0%; z-index: 9999; transition: none; }

/* ===== NOISE OVERLAY ===== */
.hero-noise {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
}

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .3s var(--ease); border: none; font-family: inherit; position: relative; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 40px rgba(232,169,36,.35); }
.btn-outline { background: rgba(255,255,255,.03); color: var(--white); border: 1.5px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); background: rgba(232,169,36,.05); }
.btn-sm { padding: 8px 20px; font-size: .85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-nav { border-radius: 8px; background: rgba(232,169,36,.1); color: var(--accent); border: 1px solid rgba(232,169,36,.2); }
.btn-nav:hover { background: var(--accent); color: #000; }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: all .4s var(--ease); }
.nav.scrolled { background: rgba(9,9,11,.6); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); border-bottom: 1px solid rgba(255,255,255,.05); padding: 10px 0; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--white); letter-spacing: -1px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: var(--gray); font-size: .88rem; font-weight: 500; letter-spacing: -.01em; }
.nav-links a:hover { color: var(--white); opacity: 1; }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: all .3s var(--ease); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 80px; position: relative; overflow: hidden; }

.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(100px);
}
.hero-orb-1 {
  width: 700px; height: 700px; top: -200px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232,169,36,.15) 0%, rgba(99,102,241,.05) 50%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px; bottom: 10%; right: -10%;
  background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 70%);
  animation: orbFloat2 10s ease-in-out infinite;
}
@keyframes orbFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-30px); } }
@keyframes orbFloat2 { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(20px) scale(1.05); } }

.hero-spotlight { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(232,169,36,.06) 0%, transparent 70%); pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s; }

.hero-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-content { position: relative; z-index: 2; max-width: 860px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
  background: rgba(232,169,36,.06); border: 1px solid rgba(232,169,36,.15);
  border-radius: 100px; font-size: .82rem; font-weight: 500; color: var(--accent);
  margin-bottom: 32px; backdrop-filter: blur(10px);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.5); } }

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.02;
  letter-spacing: -2.5px; margin-bottom: 24px; word-spacing: 2px;
}
.hero-line {
  display: block;
  background: linear-gradient(180deg, var(--white) 0%, rgba(255,255,255,.4) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-line .gradient-text { -webkit-text-fill-color: transparent; }

.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--gray); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FLOATING BADGES ===== */
.floating-badge {
  position: absolute; z-index: 10; display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  background: rgba(17,17,22,.7); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; font-weight: 600; color: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  animation: floatBadge 4s ease-in-out infinite;
}
.fb-icon { font-size: 1rem; }
.fb-1 { top: 15%; left: -5%; animation-delay: 0s; }
.fb-2 { top: 5%; right: -3%; animation-delay: 1.3s; }
.fb-3 { bottom: 15%; right: -8%; animation-delay: 2.6s; }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== DASHBOARD MOCK ===== */
.hero-visual { margin-top: 72px; width: 100%; max-width: 960px; position: relative; z-index: 2; }
.dashboard-mock {
  background: var(--bg3); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 60px 120px rgba(0,0,0,.6), 0 0 80px rgba(232,169,36,.04), inset 0 1px 0 rgba(255,255,255,.05);
}
.mock-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(0,0,0,.3); border-bottom: 1px solid rgba(255,255,255,.04);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #ffbd2e; }
.mock-dots span:nth-child(3) { background: #28c840; }
.mock-url { flex: 1; text-align: center; font-size: .7rem; color: var(--gray2); background: rgba(255,255,255,.03); padding: 4px 12px; border-radius: 6px; }
.mock-bar-spacer { width: 48px; }

.mock-body { display: flex; min-height: 340px; }

.mock-sidebar {
  width: 56px; background: rgba(0,0,0,.2); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border-right: 1px solid rgba(255,255,255,.04);
}
.mock-logo-icon { margin-bottom: 12px; }
.mock-nav-item { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gray2); transition: all .2s; cursor: default; }
.mock-nav-item.active { background: rgba(232,169,36,.12); color: var(--accent); }
.mock-sidebar-spacer { flex: 1; }
.mock-avatar-small { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); font-size: .6rem; font-weight: 700; color: #000; display: flex; align-items: center; justify-content: center; }

.mock-main { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.mock-header-row { display: flex; justify-content: space-between; align-items: flex-start; }
.mock-greeting { font-size: .9rem; font-weight: 700; color: var(--white); }
.mock-date-text { font-size: .7rem; color: var(--gray2); margin-top: 2px; }
.mock-header-actions { display: flex; align-items: center; gap: 8px; }
.mock-search-bar { font-size: .65rem; color: var(--gray2); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 6px; padding: 5px 12px; }
.mock-notif-icon { font-size: .8rem; }

.mock-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-stat-card { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 10px; padding: 14px; }
.mock-stat-label { font-size: .6rem; color: var(--gray2); text-transform: uppercase; letter-spacing: .5px; }
.mock-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--white); margin: 4px 0 2px; }
.mock-stat-value.accent-text { color: var(--accent); }
.mock-stat-change { font-size: .55rem; color: var(--gray2); }
.mock-stat-change.up { color: #22c55e; }

.mock-content-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; flex: 1; }
.mock-chart-card, .mock-clients-card { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 10px; padding: 14px; }
.mock-chart-title { font-size: .65rem; color: var(--gray); font-weight: 600; margin-bottom: 12px; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.mock-chart-bar { flex: 1; background: rgba(255,255,255,.06); border-radius: 4px 4px 0 0; transition: all .3s; }
.mock-chart-bar.active { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }

.mock-client-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mock-client-avatar { width: 28px; height: 28px; border-radius: 8px; font-size: .6rem; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mock-client-info { min-width: 0; }
.mock-client-name { font-size: .7rem; font-weight: 600; color: var(--white); }
.mock-client-status { font-size: .55rem; color: var(--gray2); }

/* ===== PORTAL FLIP SHOWCASE ===== */
.portal-showcase {
  padding: 140px 0 120px;
  position: relative;
  background: var(--bg2);
  overflow: hidden;
}

.portal-flip-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

/* Connection line */
.connection-line {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: rgba(255,255,255,.06);
  z-index: 5;
}
.connection-pulse {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(232,169,36,.5);
  animation: pulseDown 2s ease-in-out infinite;
}
@keyframes pulseDown {
  0% { top: -4px; opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

/* Labels */
.portal-labels {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}
.portal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray2);
  transition: all .5s var(--ease);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid transparent;
}
.portal-label.active {
  color: var(--white);
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.agency-label.active { color: var(--accent); border-color: rgba(232,169,36,.2); background: rgba(232,169,36,.05); }
.client-label.active { color: var(--purple); border-color: rgba(99,102,241,.2); background: rgba(99,102,241,.05); }
.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  transition: opacity .5s;
}
.portal-label.active .label-dot { opacity: 1; }

/* Flip wrapper */
.flip-wrapper {
  perspective: 2000px;
  width: 100%;
}
.flip-card {
  position: relative;
  width: 100%;
  transition: transform .8s cubic-bezier(0.4, 0, 0.15, 1);
  transform-style: preserve-3d;
}
.flip-card.flipped {
  transform: rotateY(180deg);
}
/* Glow burst on flip */
.flip-wrapper::after {
  content: ''; position: absolute; inset: -20px; border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, rgba(232,169,36,.15) 0%, transparent 70%);
  opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 10;
}
.flip-wrapper.glow-burst::after {
  animation: flipGlowBurst .7s ease-out forwards;
}
@keyframes flipGlowBurst {
  0% { opacity: 0; transform: scale(0.95); }
  30% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.05); }
}
.flip-face {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-front {
  position: relative;
}
.flip-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

/* Portal mock styling */
.portal-mock {
  background: var(--bg3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 60px 120px rgba(0,0,0,.6), 0 0 80px rgba(232,169,36,.04), inset 0 1px 0 rgba(255,255,255,.05);
}
.client-mock {
  box-shadow: 0 60px 120px rgba(0,0,0,.6), 0 0 80px rgba(99,102,241,.06), inset 0 1px 0 rgba(255,255,255,.05);
  border-color: rgba(99,102,241,.1);
}

/* Activity items */
.agency-activity, .client-activity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 10px;
  transition: all .4s var(--ease);
}
.activity-item.highlight {
  background: rgba(232,169,36,.04);
  border-color: rgba(232,169,36,.15);
  box-shadow: 0 0 20px rgba(232,169,36,.08);
}

.activity-status {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.activity-status.editing { background: rgba(232,169,36,.1); color: var(--accent); }
.activity-status.review { background: rgba(99,102,241,.1); color: var(--purple); }
.activity-status.approved { background: rgba(34,197,94,.1); color: #22c55e; }
.activity-status.scheduled { background: rgba(255,255,255,.05); color: var(--gray); }
.activity-status.client-review { background: rgba(99,102,241,.12); color: var(--purple); }
.activity-status.client-approved { background: rgba(34,197,94,.1); color: #22c55e; }
.activity-status.client-scheduled { background: rgba(255,255,255,.05); color: var(--gray); }

.activity-info { flex: 1; min-width: 0; }
.activity-title { font-size: .78rem; font-weight: 600; color: var(--white); }
.activity-meta { font-size: .6rem; color: var(--gray2); margin-top: 2px; }

/* Animated status change */
.activity-status.changing {
  animation: statusPop .5s var(--ease);
}
@keyframes statusPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Client-specific styles */
.client-sidebar .mock-nav-item.active { background: rgba(99,102,241,.12); color: #6366f1; }
.client-notif { position: relative; }
.notif-badge {
  font-size: .6rem;
  font-weight: 700;
  color: #fff;
  background: var(--purple);
  padding: 4px 10px;
  border-radius: 50px;
  animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.4); }
  50% { box-shadow: 0 0 0 8px rgba(99,102,241,0); }
}

.client-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.client-btn {
  font-size: .6rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: default;
  font-family: inherit;
}
.client-btn.approve {
  background: rgba(34,197,94,.12);
  color: #22c55e;
}
.client-btn.reject {
  background: rgba(255,255,255,.05);
  color: var(--gray);
}

/* Scroll hint */
.flip-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  opacity: .5;
  transition: opacity .5s;
}
.flip-scroll-hint.hidden { opacity: 0; pointer-events: none; }
.flip-scroll-hint span { font-size: .75rem; color: var(--gray2); }
.scroll-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  animation: bounceArrow 1.5s ease-in-out infinite;
}
@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* (glow burst now on .flip-wrapper) */

@media (max-width: 768px) {
  .portal-labels { gap: 16px; }
  .portal-label { font-size: .75rem; padding: 6px 14px; }
  .activity-item { flex-wrap: wrap; gap: 8px; }
  .client-actions { width: 100%; }
  .client-btn { flex: 1; text-align: center; }
}

/* ===== LOGO SCROLL ===== */
.logo-scroll-section { padding: 80px 0; overflow: hidden; position: relative; }
.trusted-label { text-align: center; font-size: 1rem; color: var(--gray); margin-bottom: 36px; font-weight: 500; }
.logo-scroll-wrapper { overflow: hidden; position: relative; }
.logo-scroll-wrapper::before, .logo-scroll-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; pointer-events: none; }
.logo-scroll-wrapper::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.logo-scroll-wrapper::after { right: 0; background: linear-gradient(90deg, transparent, var(--bg)); }
.logo-scroll-track { display: flex; gap: 72px; animation: logoScroll 35s linear infinite; width: max-content; }
.logo-scroll-track:hover { animation-play-state: paused; }
.logo-item {
  color: var(--gray2); font-size: 1.3rem; font-weight: 800; letter-spacing: .5px; white-space: nowrap; flex-shrink: 0;
  transition: all .4s var(--ease); position: relative;
}
.logo-item:hover { color: var(--accent); text-shadow: 0 0 30px rgba(232,169,36,.3); }
@keyframes logoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== STATS ===== */
.stats-section { padding: 100px 0; position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item { padding: 32px; }
.stat-number {
  font-size: clamp(3.5rem, 7vw, 6.5rem); font-weight: 900; line-height: 1; margin-bottom: 12px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-variant-numeric: tabular-nums;
}
.stat-underline { width: 40px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); margin: 0 auto 16px; }
.stat-label { font-size: .8rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 20px; position: relative; padding-left: 20px;
}
.section-tag::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.section-header h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 16px; }
.section-header p { color: var(--gray); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features { padding: 140px 0; position: relative; background: var(--bg2); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card {
  position: relative; padding: 40px; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(17,17,22,.6); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.05);
  transition: all .4s var(--ease);
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(232,169,36,.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { transform: translateY(-6px) scale(1.01); background: rgba(17,17,22,.8); box-shadow: 0 24px 64px rgba(0,0,0,.4), 0 0 60px rgba(232,169,36,.06); }
.feature-card .feature-icon-wrap { transition: all .4s var(--ease); }
.feature-card:hover .feature-icon-wrap { box-shadow: 0 0 30px rgba(232,169,36,.2); transform: scale(1.08); }

.feature-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(232,169,36,.12), rgba(99,102,241,.06));
  margin-bottom: 20px; font-size: 1.5rem;
}
.feature-text h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; }
.feature-text p { color: var(--gray); font-size: .92rem; line-height: 1.7; }

.feature-mockup {
  margin-top: 24px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.04); border-radius: 10px; padding: 12px; overflow: hidden;
}
.fm-bar { height: 4px; width: 30%; border-radius: 2px; background: rgba(255,255,255,.06); margin-bottom: 10px; }
.fm-row { height: 6px; border-radius: 3px; background: rgba(255,255,255,.05); margin-bottom: 6px; }
.fm-row.short { width: 55%; }
.fm-grid { display: flex; gap: 6px; margin-top: 8px; }
.fm-box { flex: 1; height: 28px; border-radius: 6px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.04); }
.fm-box.accent { background: rgba(232,169,36,.08); border-color: rgba(232,169,36,.12); }
.fm-avatar-row { display: flex; gap: 6px; margin-bottom: 10px; }
.fm-mini-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--gray3), var(--gray2)); }
.fm-mini-avatar.plus { background: rgba(232,169,36,.15); color: var(--accent); font-size: .6rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.fm-check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fm-check { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.1); flex-shrink: 0; }
.fm-check.done { background: var(--accent); border-color: var(--accent); }
.fm-check-label { height: 6px; border-radius: 3px; background: rgba(255,255,255,.05); flex: 1; }
.fm-check-label.short { width: 60%; flex: none; }
.fm-mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 50px; }
.fm-mini-bar { flex: 1; background: rgba(255,255,255,.06); border-radius: 3px 3px 0 0; }
.fm-mini-bar.accent { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 140px 0; position: relative; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-line { position: absolute; top: 24px; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.06); }
.timeline-line-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .1s linear; border-radius: 2px; }
.timeline-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.timeline-step { text-align: center; padding-top: 56px; }
.timeline-dot {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(255,255,255,.1);
  transition: all .4s var(--ease); z-index: 2;
}
.timeline-step.active .timeline-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 20px rgba(232,169,36,.4); }
.timeline-content { position: relative; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font-size: 1rem; font-weight: 800; color: #000; margin-bottom: 16px;
}
.timeline-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.timeline-step p { color: var(--gray); font-size: .9rem; line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 140px 0; overflow: hidden; background: var(--bg2); }
.carousel-wrapper { overflow: hidden; position: relative; margin-top: -20px; }
.carousel-wrapper::before, .carousel-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; pointer-events: none; }
.carousel-wrapper::before { left: 0; background: linear-gradient(90deg, var(--bg2), transparent); }
.carousel-wrapper::after { right: 0; background: linear-gradient(90deg, transparent, var(--bg2)); }
.carousel-track { display: flex; gap: 24px; animation: carouselScroll 50s linear infinite; width: max-content; padding: 24px 0; }
.carousel-track:hover { animation-play-state: paused; }
@keyframes carouselScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.testimonial-card {
  position: relative; min-width: 420px; max-width: 420px; flex-shrink: 0;
  background: rgba(17,17,22,.6); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius-lg);
  padding: 40px; transition: all .4s var(--ease);
}
.testimonial-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(232,169,36,.15), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.testimonial-card:hover::before { opacity: 1; }
.testimonial-card:hover { transform: translateY(-4px); }

.stars { color: var(--accent); font-size: 1rem; margin-bottom: 20px; letter-spacing: 3px; }
.testimonial-card > p { color: var(--gray); font-size: .95rem; line-height: 1.8; margin-bottom: 28px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.avatar-ring {
  padding: 2px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
}
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: #000; }
.testimonial-author strong { font-size: .9rem; display: block; }
.testimonial-company { display: block; color: var(--accent); font-size: .78rem; font-weight: 600; }
.testimonial-author > div > span:last-child { color: var(--gray2); font-size: .75rem; }

/* ===== PRICING ===== */
.pricing { padding: 140px 0; }

.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.toggle-label { font-size: .88rem; color: var(--gray2); font-weight: 500; transition: color .3s; cursor: pointer; }
.toggle-label.active { color: var(--white); }
.toggle-save { font-size: .7rem; color: var(--accent); font-weight: 700; background: rgba(232,169,36,.1); padding: 2px 8px; border-radius: 50px; }
.toggle-switch {
  width: 44px; height: 24px; border-radius: 50px; border: none; cursor: pointer; position: relative;
  background: var(--gray3); transition: background .3s;
}
.toggle-switch.annual { background: var(--accent); }
.toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); transition: transform .3s var(--ease);
}
.toggle-switch.annual .toggle-knob { transform: translateX(20px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
  position: relative; background: var(--bg3); border-radius: var(--radius-lg);
  padding: 44px 36px; text-align: center; transition: all .4s var(--ease);
  border: 1px solid rgba(255,255,255,.05);
}
.pricing-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 32px 64px rgba(0,0,0,.4), 0 0 40px rgba(232,169,36,.05); }
.pricing-card { transition: all .4s var(--ease); }
.pricing-card.popular:hover { box-shadow: 0 32px 80px rgba(232,169,36,.12); }

.pricing-card.popular {
  border: none; z-index: 2;
  background: var(--bg3);
}
.pricing-card.popular::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, var(--accent), var(--purple), var(--accent));
  background-size: 200% 200%;
  animation: borderShift 3s ease-in-out infinite;
}
.pricing-card.popular::after {
  content: ''; position: absolute; inset: 1px; border-radius: calc(var(--radius-lg) - 1px); z-index: -1;
  background: var(--bg3);
}
@keyframes borderShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #000;
  padding: 6px 20px; border-radius: 50px; font-size: .75rem; font-weight: 800;
  overflow: hidden; z-index: 5;
}
.shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.pricing-tier { font-size: .85rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.pricing-price { font-size: 3.5rem; font-weight: 900; margin-bottom: 4px; letter-spacing: -2px; }
.pricing-price span { font-size: .95rem; font-weight: 400; color: var(--gray); letter-spacing: 0; }
.pricing-desc { font-size: .85rem; color: var(--gray2); margin-bottom: 28px; }
.pricing-card ul { list-style: none; margin-bottom: 36px; text-align: left; }
.pricing-card li { padding: 10px 0; color: var(--gray); font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.04); display: flex; align-items: center; gap: 10px; }
.pricing-card li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-section { padding: 140px 0; background: var(--bg2); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-left: 2px solid transparent; transition: border-color .3s; padding-left: 24px; margin-bottom: 4px; }
.faq-item.active { border-left-color: var(--accent); }
.faq-question {
  width: 100%; padding: 24px 0; background: none; border: none; border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--white); font-family: inherit; font-size: 1.05rem; font-weight: 600;
  text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .3s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon { flex-shrink: 0; transition: transform .4s var(--ease), color .3s; color: var(--gray2); }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--accent); }
.faq-item.active .faq-question { color: var(--accent); border-bottom-color: transparent; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-answer p { padding: 0 0 24px; color: var(--gray); font-size: .95rem; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 300px; }

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 160px 0; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #0f0f14 50%, var(--bg) 100%);
}
.cta-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-gradient-mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 20% 50%, rgba(232,169,36,.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(99,102,241,.04) 0%, transparent 70%);
  animation: meshShift 6s ease-in-out infinite;
}
@keyframes meshShift { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 16px; line-height: 1.15; letter-spacing: -1px; }
.final-cta p { color: var(--gray); font-size: 1.15rem; margin-bottom: 0; }

/* ===== FOOTER ===== */
.footer { padding: 72px 0 36px; border-top: 1px solid rgba(255,255,255,.04); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--gray); font-size: .9rem; margin-top: 16px; max-width: 280px; line-height: 1.6; }
.footer-links h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gray2); margin-bottom: 20px; }
.footer-links a { display: block; color: var(--gray); font-size: .88rem; padding: 5px 0; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.04); }
.footer-bottom p { color: var(--gray2); font-size: .82rem; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  color: var(--gray); font-size: .85rem; font-weight: 700; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06); transition: all .3s var(--ease);
  background: rgba(255,255,255,.02);
}
.social-icons a:hover { border-color: var(--accent); color: var(--accent); background: rgba(232,169,36,.05); }

/* ===== LOGIN PAGES (kept for compatibility) ===== */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-container { width: 100%; max-width: 420px; padding: 24px; text-align: center; }
.login-container .logo { font-size: 1.6rem; display: block; margin-bottom: 40px; }
.login-card { background: var(--bg3); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-lg); padding: 40px 32px; text-align: left; }
.login-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; text-align: center; }
.login-card > p { color: var(--gray); text-align: center; margin-bottom: 28px; font-size: .9rem; }
.login-card label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray); margin-bottom: 6px; margin-top: 16px; }
.login-card input { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; color: var(--white); font-size: .95rem; font-family: inherit; outline: none; transition: border-color .3s; }
.login-card input:focus { border-color: var(--accent); }
.login-card .btn { margin-top: 24px; }
.login-alt { text-align: center; margin-top: 16px; font-size: .85rem; color: var(--gray); }
.login-alt a { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { position: fixed; top: 0; right: -100%; width: 75%; height: 100vh; background: rgba(9,9,11,.95); backdrop-filter: blur(24px); flex-direction: column; justify-content: center; gap: 28px; transition: right .4s var(--ease); padding: 0 40px; }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .timeline-steps { grid-template-columns: 1fr; gap: 48px; }
  .timeline-line { display: none; }
  .timeline-step { text-align: left; padding-top: 0; }
  .timeline-dot { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .testimonial-card { min-width: 320px; max-width: 320px; padding: 28px; }
  .floating-badge { display: none; }
  .mock-content-row { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -2px; }
  .feature-card { padding: 28px; }
  .feature-card:hover { transform: none; box-shadow: none; }
  .pricing-card:hover { transform: none; }
  .section-header { margin-bottom: 48px; }
  .section-header h2 { letter-spacing: -1px; }
  .hero-sub { font-size: .95rem; }
  .portal-showcase { padding: 100px 0 80px; }
  .features { padding: 100px 0; }
  .how-it-works { padding: 100px 0; }
  .testimonials { padding: 100px 0; }
  .pricing { padding: 100px 0; }
  .faq-section { padding: 100px 0; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .testimonial-card { min-width: 280px; max-width: 280px; }
  .mock-stats-row { grid-template-columns: 1fr; }
}

/* ===== LIGHT THEME ===== */
html[data-theme="light"] {
  --bg: #f4f4f8; --bg2: #ffffff; --bg3: #eeeef2; --bg4: #e2e2e8;
  --accent: #2563EB; --accent2: #0EA5E9; --accent-dark: #1d4ed8;
  --purple: #4f46e5;
  --white: #1c1c21; --gray: #6b7280; --gray2: #9ca3af; --gray3: #e5e7eb; --gray4: #f3f4f6;
}
html[data-theme="light"] body { background: var(--bg); color: var(--white); }
html[data-theme="light"] a { color: var(--accent); }
html[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563EB 50%, #0EA5E9 100%);
  -webkit-background-clip: text; background-clip: text;
}
