:root {
  --primary: #0f0f0f;
  --primary-light: #1a1a2e;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-hot: #f472b6;
  --bg: #0a0a0a;
  --bg-dark: #050505;
  --bg-card: #141414;
  --text: #f0f0f0;
  --text-light: #9ca3af;
  --white: #ffffff;
  --border: #1f1f1f;
  --glow: rgba(124, 58, 237, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.nav-brand svg {
  width: 36px;
  height: 36px;
}

.nav-brand span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--white);
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(244, 114, 182, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
  animation: drift 20s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 0 30px var(--glow));
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-light) 50%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--glow);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow);
}

/* Sections */
.section {
  padding: 7rem 2rem;
}

.section-dark {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px var(--glow);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Newsletter */
.newsletter {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
  border: 1px solid var(--border);
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hot), transparent);
}

.newsletter h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.newsletter p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder {
  color: var(--text-light);
}

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

.newsletter-form button {
  padding: 0.9rem 1.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--glow);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  font-size: 0.85rem;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.85rem;
}

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

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

/* Page Header (for sub-pages) */
.page-header {
  background: var(--bg);
  color: var(--white);
  padding: 10rem 2rem 4rem;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  position: relative;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto;
  position: relative;
}

/* Content sections for sub-pages */
.content-section {
  padding: 4rem 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.content-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 2.2;
  color: var(--text-light);
}

.highlight-box {
  background: rgba(124, 58, 237, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--text);
}

.highlight-box strong {
  color: var(--accent-light);
}

/* Research page specific */
.research-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s;
}

.info-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.info-card h3 {
  margin-top: 0;
  color: var(--white);
  font-size: 1.05rem;
}

.info-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Contact info */
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  text-align: center;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-info a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--accent-hot);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter {
    padding: 2.5rem 1.5rem;
  }

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