:root {
  --bg-color: #020203;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  
  --primary: #ff0000;
  --secondary: #ff5e00;
  --tertiary: #3b82f6;
  
  --glass-bg: rgba(30, 30, 34, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --noise: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.05"/></svg>');
}

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

body {
  background-color: var(--bg-color);
  background-image: var(--noise), radial-gradient(circle at 50% 0%, #1a1a2e 0%, #020203 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Blobs */
.blob-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

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

.blob-1 {
  width: 500px;
  height: 500px;
  background: #ff0000;
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #ff5e00;
  bottom: 20%;
  right: -5%;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #3b82f6;
  top: 40%;
  left: 30%;
  opacity: 0.2;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Layout & Typography */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  position: relative;
  z-index: 1;
}

/* Glass Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 0, 20, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

.logo img {
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* Buttons */
.nav-btn-pill, .btn-primary, .btn-secondary, .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn-primary, .nav-btn-pill.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4); }
  100% { box-shadow: 0 8px 36px rgba(255, 0, 0, 0.8); }
}

.btn-primary:hover, .nav-btn-pill.primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 0, 0, 0.6);
  filter: brightness(1.1);
}

.btn-secondary, .nav-btn-pill.support {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover, .nav-btn-pill.support:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
}

.version-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual-wrapper {
  margin-top: 5rem;
  perspective: 1000px;
}

.hero-visual {
  transform: rotateX(5deg);
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

/* Glass Cards & Mockups */
.browser-mockup, .card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.browser-header {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--glass-border);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

/* Features Grid */
.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 4rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.card {
  padding: 2.5rem;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(25, 25, 35, 0.95);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(255, 0, 0, 0.15);
}

.card-icon-wrapper {
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--primary);
}

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

.card p {
  color: var(--text-secondary);
}

/* Split Layouts (Alternating Sections) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 100px 2rem;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.split-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.marquee-content span {
  margin: 0 2rem;
}

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

/* FAQ */
.faq-section {
  padding: 100px 0;
  max-width: 800px;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--glass-border);
  color: var(--primary);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--text-secondary);
}

/* Compliance Pages */
.page-container {
  padding-top: 150px;
  padding-bottom: 100px;
  max-width: 800px;
  margin: 0 auto;
}

.page-container h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.content-block {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
}

.content-block h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--tertiary);
}

.content-block p, .content-block li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content-block ul {
  padding-left: 2rem;
  margin-bottom: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 0;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Animations Trigger Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
