/* ==========================================================================
   1. ROOT & THEME VARIABLES
   ========================================================================== */
:root {
  /* Your Original Dark Theme Colors */
  --bg-primary: #111;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #222;
  --bg-card: #1a1a1a;
  --text-primary: #e0e0e0;
  --text-secondary: #b3b3b3;
  --text-heading: #ffffff;
  --text-muted: #666666;
  --border-primary: #333;
  --border-secondary: #282828;

  /* Your Red Accent with Modern Extensions */
  --accent-primary: #ee000b;
  --accent-primary-hover: #ff3333;
  --accent-primary-transparent: rgba(238, 0, 11, 0.1);
  --accent-secondary: #ee000b; /* Using your red as secondary too */
  --accent-success: #00ff88;
  --accent-warning: #ffb800;
  --accent-danger: #ff4757;

  /* Gradients using your red */
  --gradient-primary: linear-gradient(135deg, #ee000b 0%, #ff3333 100%);
  --gradient-secondary: linear-gradient(135deg, #ee000b 0%, #ff6b35 100%);

  /* Shadows and Effects with your red tint */
  --shadow-color: rgba(238, 0, 11, 0.15);
  --shadow-strong-color: rgba(238, 0, 11, 0.25);
  --glow-color: rgba(238, 0, 11, 0.3);

  /* Your Original Variables */
  --card-border-light-trans: rgba(255, 255, 255, 0.1);
  --card-bg-trans: rgba(26, 26, 26, 0.7);
  --element-bg-hover: #3a3a3a;
  --transition-speed: 0.3s;
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --border-radius: 12px;
  --border-radius-lg: 16px;
}

/* Light Mode Support */
body.light-mode {
  --bg-primary: #f4f4f4;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e0e0e0;
  --bg-card: #ffffff;
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-heading: #111111;
  --text-muted: #888888;
  --border-primary: #cccccc;
  --border-secondary: #dddddd;

  /* Keep your red accent in light mode */
  --accent-primary: #ee000b;
  --accent-primary-hover: #cc0009;
  --accent-primary-transparent: rgba(238, 0, 11, 0.15);

  /* Adjusted gradients for light mode */
  --gradient-primary: linear-gradient(135deg, #ee000b 0%, #ff3333 100%);
  --gradient-secondary: linear-gradient(135deg, #ee000b 0%, #ff6b35 100%);

  /* Light mode shadows */
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-strong-color: rgba(0, 0, 0, 0.15);
  --glow-color: rgba(238, 0, 11, 0.2);

  /* Light mode specific */
  --card-border-light-trans: rgba(0, 0, 0, 0.1);
  --card-bg-trans: rgba(255, 255, 255, 0.8);
  --element-bg-hover: #e8e8e8;
}

/* ==========================================================================
   2. BASE & LAYOUT STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main.landing-content {
  margin-top: 0;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

section {
  padding: 120px 0;
  position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Gradient text using your red color scheme */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode specific gradient text */
body.light-mode .gradient-text {
  background: linear-gradient(135deg, #ee000b 0%, #cc0009 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   3. COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-speed) var(--transition-bounce);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow-strong-color);
  color: white;
}

.btn-primary.btn-glow {
  animation: pulse-glow 2s infinite;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-heading);
  border: 1px solid var(--border-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-heading);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.btn-arrow {
  transition: transform var(--transition-speed);
}

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

/* Badges */
.section-badge,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: var(--accent-primary-transparent);
  border: 1px solid rgba(238, 0, 11, 0.2);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge {
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

/* Status indicators */
.feature-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-live {
  background: var(--accent-success);
}

.status-beta {
  background: var(--accent-warning);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

/* Animated Background */
.hero-background-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  z-index: 1;
}

.grid-line {
  position: absolute;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.grid-line-1 {
  width: 2px;
  height: 100%;
  left: 25%;
  animation: grid-pulse 4s ease-in-out infinite;
}

.grid-line-2 {
  width: 100%;
  height: 2px;
  top: 30%;
  animation: grid-pulse 4s ease-in-out infinite 1s;
}

.grid-line-3 {
  width: 2px;
  height: 100%;
  right: 25%;
  animation: grid-pulse 4s ease-in-out infinite 2s;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

.floating-element-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element-3 {
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

/* Hero Content */
.hero {
  padding: 140px 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 212, 255, 0.03) 0%,
    transparent 70%
  );
  position: relative;
  overflow: hidden;
}

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

.hero-headline {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin: 1.5rem 0 2rem 0;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.trust-indicators {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.company-logos {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.company-logo {
  color: var(--text-secondary);
  font-weight: 600;
  opacity: 0.7;
  transition: opacity var(--transition-speed);
}

.company-logo:hover {
  opacity: 1;
}

/* Hero Image */
.hero-image-container {
  position: relative;
}

.dashboard-preview {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.terminal-header {
  background: var(--bg-secondary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-primary);
}

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

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.close {
  background: #ff5f57;
}
.control.minimize {
  background: #ffbd2e;
}
.control.maximize {
  background: #28ca42;
}

.terminal-title {
  color: var(--text-secondary);
  font-family: "Fira Code", monospace;
  font-size: 0.875rem;
}

.hero-image {
  width: 100%;
  display: block;
}

.dashboard-overlay {
  position: absolute;
  top: 100px;
  right: -20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-card {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-primary);
  text-align: center;
  animation: metric-float 3s ease-in-out infinite alternate;
}

.metric-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-success);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Typewriter Effect */
.typewriter-text {
  position: relative;
}

.typewriter-text::after {
  content: "|";
  animation: blink 1s infinite;
  color: var(--accent-primary);
}

/* ==========================================================================
   5. FEATURES SECTION
   ========================================================================== */
.features-section {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header p {
  max-width: 700px;
  margin: 1.5rem auto 0 auto;
  font-size: 1.2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-speed);
  z-index: -1;
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px var(--shadow-strong-color);
}

.feature-card.feature-primary {
  border-color: var(--accent-primary);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05) 0%,
    var(--bg-card) 100%
  );
}

.feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.5rem;
  transition: all var(--transition-speed);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: rgba(0, 212, 255, 0.2);
}

.feature-highlights {
  margin: 1.5rem 0;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.highlight i {
  color: var(--accent-primary);
  width: 16px;
  flex-shrink: 0;
}

.feature-cta {
  margin-top: 2rem;
}

/* ==========================================================================
   6. AI ADVANTAGE SECTION
   ========================================================================== */
.ai-advantage-section {
  background: var(--bg-primary);
  position: relative;
}

.ai-advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.ai-features {
  margin-top: 2rem;
}

.ai-feature {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-secondary);
  transition: all var(--transition-speed);
}

.ai-feature:hover {
  background: rgba(0, 212, 255, 0.03);
  border-color: var(--accent-primary);
}

.ai-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.ai-feature-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.ai-feature-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* AI Visual */
.ai-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-brain-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.ai-brain {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 70%
  );
  border: 2px solid rgba(0, 212, 255, 0.2);
  animation: brain-pulse 3s ease-in-out infinite;
}

.brain-node {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 20px var(--glow-color);
  animation: node-pulse 2s ease-in-out infinite;
}

.brain-node.node-1 {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.brain-node.node-2 {
  top: 30%;
  right: 25%;
  animation-delay: 0.5s;
}

.brain-node.node-3 {
  bottom: 30%;
  left: 25%;
  animation-delay: 1s;
}

.brain-node.node-4 {
  bottom: 20%;
  right: 30%;
  animation-delay: 1.5s;
}

.brain-connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-primary),
    transparent
  );
  animation: connection-flow 3s ease-in-out infinite;
}

.brain-connection.connection-1 {
  top: 25%;
  left: 35%;
  width: 30%;
  transform: rotate(15deg);
}

.brain-connection.connection-2 {
  top: 50%;
  left: 20%;
  width: 60%;
  transform: rotate(-10deg);
  animation-delay: 1s;
}

.brain-connection.connection-3 {
  bottom: 25%;
  left: 30%;
  width: 40%;
  transform: rotate(25deg);
  animation-delay: 2s;
}

.ai-metrics {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.metric-stream {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-family: "Fira Code", monospace;
  font-size: 0.875rem;
  color: var(--accent-primary);
}

.metric-stream span {
  opacity: 0;
  animation: metric-appear 0.8s ease-out forwards;
}

.metric-stream span:nth-child(1) {
  animation-delay: 0.5s;
}
.metric-stream span:nth-child(2) {
  animation-delay: 1s;
}
.metric-stream span:nth-child(3) {
  animation-delay: 1.5s;
}
.metric-stream span:nth-child(4) {
  animation-delay: 2s;
}

/* ==========================================================================
   7. TESTIMONIAL SECTION
   ========================================================================== */
.testimonial-section {
  background: var(--bg-secondary);
  text-align: center;
}

.testimonial-content {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  opacity: 0.3;
}

.testimonial-content blockquote {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-heading);
  margin-bottom: 3rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-primary);
}

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

.avatar-fallback {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.author-info {
  text-align: left;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.author-title {
  display: block;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.author-company {
  display: block;
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ==========================================================================
   8. FINAL CTA SECTION
   ========================================================================== */
.final-cta-section {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 212, 255, 0.05) 0%,
    var(--bg-primary) 70%
  );
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-badge {
  margin-bottom: 2rem;
}

.cta-buttons {
  margin-top: 2rem;
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   9. ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 4px 20px var(--shadow-color);
  }
  50% {
    box-shadow: 0 8px 40px var(--shadow-strong-color);
  }
}

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

@keyframes grid-pulse {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes metric-float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-5px) rotate(1deg);
  }
}

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

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

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

@keyframes connection-flow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes metric-appear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   10. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero .container,
  .ai-advantage-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image-container {
    order: -1;
  }

  .dashboard-overlay {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .hero {
    padding: 100px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .company-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ai-brain-container {
    width: 250px;
    height: 250px;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .author-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .btn-large {
    padding: 16px 24px;
    font-size: 1rem;
  }
}
