/* ========================================
   Favly — Next-Generation Design System
   ======================================== */

:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #0F0F15;
  --bg-tertiary: #15151D;

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.3);

  --accent-coral: #E8725A;
  --accent-rose: #C9956C;
  --accent-purple: #7C6FCD;
  --accent-blue: #6B8AFD;
  --accent-green: #22C55E;

  --gradient-primary: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-rose) 50%, var(--accent-purple) 100%);
  --gradient-text: linear-gradient(90deg, var(--accent-coral) 0%, var(--accent-purple) 100%);

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(232, 114, 90, 0.4);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* Custom Cursor */
.cursor, .cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transition: transform 0.15s var(--ease-out-expo), opacity 0.15s;
}

.cursor {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
}

.cursor.hover {
  width: 64px;
  height: 64px;
  border-color: var(--accent-coral);
  background: rgba(232, 114, 90, 0.1);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--text-primary);
  transform: translate(-50%, -50%);
}

@media (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* Holographic Mesh */
.holo-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.mesh-svg {
  width: 100%;
  height: 100%;
}

.mesh-lines {
  animation: mesh-shift 20s ease-in-out infinite;
}

@keyframes mesh-shift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(2%, 2%) rotate(1deg); }
}

/* Gradient Orbs */
.orb-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: orb-float 20s ease-in-out infinite;
}

.orb-coral {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 114, 90, 0.4) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.orb-purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 111, 205, 0.35) 0%, transparent 70%);
  bottom: 10%;
  left: -10%;
  animation-delay: -7s;
}

.orb-rose {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 149, 108, 0.3) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(30px, -20px) scale(1.05); opacity: 0.8; }
  50% { transform: translate(-20px, 30px) scale(0.95); opacity: 0.7; }
  75% { transform: translate(20px, 10px) scale(1.02); opacity: 0.75; }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Glass Card System */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  -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 0.4s;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(232, 114, 90, 0.1);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card-mini {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 24px rgba(232, 114, 90, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(232, 114, 90, 0.6);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--glass-bg);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links .nav-cta {
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
}

.nav-links .nav-cta:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-coral);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.nav-mobile-content a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-mobile-content .nav-cta {
  font-size: 18px;
  padding: 16px 32px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 0;
  position: relative;
}

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

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--accent-green);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title span { display: block; }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Phone Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-wrapper {
  position: relative;
  animation: phone-float 4s ease-in-out infinite;
}

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

.floating-stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  animation: stat-float 3s ease-in-out infinite;
  z-index: 10;
}

.stat-rating {
  top: 10%;
  right: -30%;
  animation-delay: 0s;
}

.stat-earnings {
  top: 45%;
  left: -35%;
  animation-delay: -1s;
}

.stat-clients {
  bottom: 15%;
  right: -25%;
  animation-delay: -2s;
}

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

.stat-icon { font-size: 16px; }

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(232, 114, 90, 0.3) 0%, rgba(124, 111, 205, 0.2) 50%, transparent 70%);
  filter: blur(60px);
  transform: translate(-50%, -50%);
}

.phone-frame {
  width: 280px;
  background: linear-gradient(145deg, #2A2A38 0%, #1A1A24 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

.phone-screen {
  background: var(--bg-secondary);
  border-radius: 36px;
  overflow: hidden;
  min-height: 540px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.screen-notch {
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
}

.screen-icons {
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--text-tertiary);
}

.app-ui { padding: 20px; }

.app-greeting {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.app-earnings {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.earnings-label {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.earnings-value {
  display: block;
  font-size: 40px;
  font-weight: 700;
  margin: 4px 0;
  letter-spacing: -1px;
}

.earnings-change {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.app-next {
  padding: 16px;
  margin-bottom: 16px;
}

.next-label {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.next-client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-purple));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.client-info { display: flex; flex-direction: column; }
.client-name { font-weight: 600; font-size: 15px; }
.client-service { font-size: 13px; color: var(--text-tertiary); }

.app-ai-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(124, 111, 205, 0.15);
  border: 1px solid rgba(124, 111, 205, 0.3);
  border-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--accent-purple);
  font-weight: 500;
}

.ai-pulse {
  width: 10px;
  height: 10px;
  background: var(--accent-purple);
  border-radius: 50%;
  animation: ai-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--accent-purple);
}

@keyframes ai-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

/* Marquee */
.hero-marquee {
  margin-top: 80px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.marquee-row {
  padding: 20px 0;
}

.marquee-row:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-left {
  animation: marquee-scroll-left 40s linear infinite;
}

.marquee-right {
  animation: marquee-scroll-right 45s linear infinite;
}

@keyframes marquee-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.marquee-dot { color: var(--accent-coral); }

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-ctas { justify-content: center; }
  .hero-visual { margin-top: 48px; }
  .floating-stat { display: none; }
  .phone-wrapper { animation: none; }
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
}

/* Stats Bar */
.stats-bar {
  padding: 60px 0;
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-value, .stat-prefix, .stat-suffix {
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--glass-border);
}

@media (max-width: 768px) {
  .stats-grid { gap: 32px; }
  .stat-number { font-size: 36px; }
  .stat-divider { display: none; }
}

/* Problem Section */
.problem-section {
  padding: 140px 0;
}

.problem-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.typewriter-container {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.typewriter {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--text-primary);
  display: inline;
}

.typewriter-cursor {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--accent-coral);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.solution-card {
  padding: 48px;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.solution-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 114, 90, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.solution-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-coral);
}

.solution-icon svg {
  width: 100%;
  height: 100%;
}

.solution-header span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-coral);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-secondary);
}

.solution-item em {
  color: var(--accent-coral);
  font-style: normal;
  font-weight: 600;
}

.solution-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-coral);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { padding: 32px; }
}

/* Professionals Section */
.professionals-section {
  padding: 140px 0;
  background: var(--bg-secondary);
}

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

.role-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.role-card.featured {
  border-color: var(--accent-coral);
  background: linear-gradient(180deg, rgba(232, 114, 90, 0.08) 0%, transparent 40%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.role-ui {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
}

.ui-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.ui-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

.ui-stat { margin-bottom: 12px; }
.ui-stat-label { display: block; font-size: 11px; color: var(--text-tertiary); }
.ui-stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-coral);
}

.ui-clients { display: flex; align-items: center; }

.ui-client-avatar {
  width: 28px;
  height: 28px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  margin-left: -8px;
  border: 2px solid var(--bg-tertiary);
}

.ui-client-avatar:first-child { margin-left: 0; }
.ui-client-count { margin-left: 10px; font-size: 12px; color: var(--text-tertiary); }

.ui-team, .ui-locations { display: flex; flex-direction: column; gap: 8px; }

.ui-team-member, .ui-location {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.member-name, .loc-name { color: var(--text-secondary); }
.member-cut, .loc-rev { color: var(--accent-coral); font-weight: 600; }

.role-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.role-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.role-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.role-features li {
  font-size: 14px;
  color: var(--text-tertiary);
  padding-left: 24px;
  position: relative;
}

.role-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-coral);
  font-weight: 600;
}

.role-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}

.price-note { font-size: 14px; color: var(--text-tertiary); }

@media (max-width: 968px) {
  .roles-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .role-card.featured { order: -1; }
}

/* AI Section */
.ai-section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.ai-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 30%, transparent 70%);
}

.ai-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-text .section-subtitle { margin-bottom: 32px; }

.ai-stats { margin-bottom: 32px; }

.ai-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
}

.ai-stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-stat-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  font-size: 15px;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
}

.ai-feature:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateX(8px);
}

.ai-feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent-coral);
}

.ai-feature-icon svg {
  width: 100%;
  height: 100%;
}

/* Terminal Chat */
.terminal-window {
  padding: 0;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
}

.terminal-dots span:first-child { background: #FF5F56; }
.terminal-dots span:nth-child(2) { background: #FFBD2E; }
.terminal-dots span:last-child { background: #27CA40; }

.terminal-title {
  font-size: 12px;
  color: var(--text-tertiary);
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent-green);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.terminal-body {
  padding: 20px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg {
  max-width: 90%;
  padding: 12px 16px;
  border-radius: 16px;
  animation: msg-in 0.4s var(--ease-out-expo);
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.user {
  background: var(--bg-tertiary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.ai {
  background: var(--gradient-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg .time {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 6px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 16px;
  align-self: flex-end;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--accent-coral);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.terminal-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.input-prompt {
  color: var(--accent-coral);
  font-weight: 600;
}

.terminal-input input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-secondary);
  outline: none;
}

@media (max-width: 968px) {
  .ai-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ai-text { text-align: center; }
  .ai-features { max-width: 400px; margin: 0 auto; }
  .ai-feature { text-align: left; }
}

/* How Section */
.how-section {
  padding: 140px 0;
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--glass-border);
  transform: translateX(-50%);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gradient-primary);
  transition: height 0.05s linear;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 40px;
}

.timeline-step:nth-child(even) { flex-direction: row-reverse; }
.timeline-step:nth-child(even) .step-content { text-align: right; }

.step-marker {
  width: 52px;
  height: 52px;
  background: var(--bg-primary);
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-coral);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.timeline-step:hover .step-marker {
  border-color: var(--accent-coral);
  box-shadow: 0 0 20px rgba(232, 114, 90, 0.3);
}

.step-content {
  flex: 1;
  padding: 32px;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--accent-coral);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-track { left: 26px; }
  .timeline-step, .timeline-step:nth-child(even) {
    flex-direction: row;
    gap: 24px;
  }
  .timeline-step:nth-child(even) .step-content { text-align: left; }
  .step-marker { width: 44px; height: 44px; font-size: 16px; }
  .step-content { padding: 24px; }
}

/* Testimonials */
.testimonials-section {
  padding: 140px 0 100px;
  overflow: hidden;
}

.testimonials-marquee {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-track-left, .testimonial-track-right {
  display: flex;
  width: max-content;
}

.testimonial-track-left {
  animation: testimonial-left 50s linear infinite;
}

.testimonial-track-right {
  animation: testimonial-right 55s linear infinite;
}

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

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

.testimonial-track-left:hover,
.testimonial-track-right:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: 380px;
  padding: 28px;
  margin: 0 12px;
  flex-shrink: 0;
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.testimonial-rating {
  color: #F59E0B;
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-badge {
  font-size: 11px;
  padding: 6px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
}

.testimonial-card > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.gradient-avatar {
  background: var(--gradient-primary);
}

.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: 600; font-size: 15px; }
.author-role { font-size: 13px; color: var(--text-tertiary); }

/* Final CTA */
.final-cta {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232, 114, 90, 0.2) 0%, rgba(124, 111, 205, 0.15) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(80px);
}

.cta-content {
  text-align: center;
  position: relative;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-tertiary);
}

.cta-note a {
  color: var(--accent-coral);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .cta-buttons { flex-direction: column; max-width: 320px; margin: 0 auto; }
  .cta-buttons .btn { width: 100%; }
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  position: relative;
}

.footer-gradient-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--glass-border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo .logo-mark { width: 32px; height: 32px; font-size: 18px; }
.footer-logo .logo-text { font-size: 20px; }

.footer-tagline {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--accent-coral);
}

.newsletter-btn {
  padding: 12px 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s;
}

.newsletter-btn:hover {
  box-shadow: 0 4px 20px rgba(232, 114, 90, 0.4);
}

.footer-links { display: contents; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-tertiary);
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-legal a {
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--text-primary); }

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-coral);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

@media (max-width: 968px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { grid-column: 1; }
  .footer-logo { justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 20px; }
  .footer-legal { flex-direction: column; gap: 12px; }
}

/* Animations */
.reveal-up, .reveal-left, .reveal-scale {
  opacity: 0;
  transition: all 0.8s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-scale { transform: scale(0.95); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up, .reveal-left, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
