/* ===== CSS Variables ===== */
:root {
  --primary: #E63946;
  --primary-dark: #C1121F;
  --primary-light: #FF6B6B;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --black: #0D0D0D;
  
  --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(230, 57, 70, 0.3);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
  bottom: 20%;
  left: -150px;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

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

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

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--gray-600);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Links & Buttons ===== */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gray-800);
  border: 2px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

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

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.logo-icon {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
}

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

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

/* Hero Animation */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mixer-animation {
  position: relative;
  width: 400px;
  height: 400px;
}

.mixer-ring {
  position: absolute;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.3;
}

.ring-1 {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation: rotate 20s linear infinite;
}

.ring-2 {
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.5%;
  animation: rotate 15s linear infinite reverse;
  border-style: dashed;
}

.ring-3 {
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  animation: rotate 10s linear infinite;
  opacity: 0.5;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mixer-core {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.mixer-core svg {
  width: 80px;
  height: 80px;
}

.particle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  animation: orbit 4s linear infinite;
}

.p1 { animation-delay: 0s; }
.p2 { animation-delay: 1s; }
.p3 { animation-delay: 2s; }
.p4 { animation-delay: 3s; }

@keyframes orbit {
  0% { 
      transform: rotate(0deg) translateX(180px) rotate(0deg);
      opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { 
      transform: rotate(360deg) translateX(180px) rotate(-360deg);
      opacity: 0;
  }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(230, 57, 70, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--gray-50);
}

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

.step-card {
  position: relative;
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-100);
  font-family: var(--font-mono);
  line-height: 1;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

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

.step-card h3 {
  margin-bottom: 12px;
  color: var(--gray-900);
}

.step-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Technology Section ===== */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-content .section-tag {
  margin-bottom: 16px;
}

.tech-content h2 {
  margin-bottom: 20px;
}

.tech-content > p {
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.tech-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tech-features svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.tech-features span {
  font-size: 1rem;
  color: var(--gray-700);
}

/* Tech Diagram */
.tech-visual {
  display: flex;
  justify-content: center;
}

.mixing-diagram {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--gray-200);
}

.tech-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 40px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.input-node {
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}

.mixer-node {
  background: rgba(230, 57, 70, 0.1);
  border: 2px solid var(--primary);
  color: var(--primary);
}

.mixer-node svg {
  width: 50px;
  height: 50px;
}

.output-node {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.diagram-flow {
  height: 60px;
}

.flow-line {
  width: 60px;
  height: 60px;
  animation: flowDash 1s linear infinite;
}

@keyframes flowDash {
  to { stroke-dashoffset: -10; }
}

/* ===== Security Section ===== */
.security {
  background: var(--gray-50);
}

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

.security-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.security-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.security-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
}

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

.security-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.security-card p {
  line-height: 1.7;
}

/* ===== Features Banner ===== */
.features-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
}

.banner-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

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

.banner-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.banner-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.banner-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
}

/* ===== FAQ Section ===== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item summary {
  padding: 24px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 32px 24px;
  line-height: 1.8;
}

/* ===== CTA Section ===== */
.cta {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--black) 100%);
  text-align: center;
}

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

.cta h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta p {
  color: var(--gray-400);
  font-size: 1.125rem;
  margin-bottom: 40px;
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo span {
  color: var(--white);
}

.footer-brand p {
  color: var(--gray-500);
  max-width: 360px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: var(--gray-500);
  font-size: 0.95rem;
}

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

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--gray-800);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero .container {
      grid-template-columns: 1fr;
      text-align: center;
  }
  
  .hero-description {
      margin: 0 auto 40px;
  }
  
  .hero-stats {
      justify-content: center;
  }
  
  .hero-actions {
      justify-content: center;
  }
  
  .hero-visual {
      order: -1;
  }
  
  .mixer-animation {
      width: 300px;
      height: 300px;
  }
  
  .tech-grid {
      grid-template-columns: 1fr;
      gap: 60px;
  }
  
  .tech-visual {
      order: -1;
  }
  
  .steps-grid {
      grid-template-columns: 1fr;
      max-width: 500px;
      margin: 0 auto;
  }
  
  .security-grid {
      grid-template-columns: 1fr;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
      gap: 60px;
  }
}

@media (max-width: 768px) {
  .nav-links {
      display: none;
  }
  
  .nav .btn-primary {
      display: none;
  }
  
  .mobile-menu-btn {
      display: flex;
  }
  
  .hero {
      padding: 100px 0 60px;
  }
  
  .hero-stats {
      flex-direction: column;
      gap: 24px;
  }
  
  .hero-actions {
      flex-direction: column;
  }
  
  .btn-lg {
      width: 100%;
  }
  
  .section {
      padding: 60px 0;
  }
  
  .banner-content {
      flex-direction: column;
      gap: 32px;
  }
  
  .banner-divider {
      width: 60px;
      height: 1px;
  }
  
  .footer-links {
      flex-direction: column;
      gap: 40px;
  }
  
  .faq-item summary {
      padding: 20px 24px;
      font-size: 1rem;
  }
  
  .faq-item p {
      padding: 0 24px 20px;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 16px;
  }
  
  h1 {
      font-size: 2rem;
  }
  
  h2 {
      font-size: 1.75rem;
  }
  
  .mixer-animation {
      width: 250px;
      height: 250px;
  }
  
  .step-card,
  .security-card {
      padding: 28px 24px;
  }
}