/* ===== CSS Variables ===== */
:root {
  --color-primary: #7762F5;
  --color-primary-light: #7762f533;
  --color-bg: #020204;
  --color-text: #F4F0FF;
  --color-text-muted: rgba(244, 240, 255, 0.7);
  --color-border: rgba(255, 255, 255, 0.08);
  --font-family: 'Manrope', sans-serif;
  --gradient-text: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
  --gradient-badge: linear-gradient(90deg, #E59CFF 0%, #BA9CFF 50%, #9CB2FF 100%);
  --gradient-hover: linear-gradient(180deg, rgba(3, 0, 20, 0) 5.9%, #5F33B8 124.43%, #BF55F9 155.23%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(36px, 5vw, 55px);
  font-weight: 700;
  letter-spacing: -3px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -2px;
}

h3 {
  font-size: clamp(20px, 2.5vw, 24px);
}

h4 {
  font-size: 16px;
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-image: linear-gradient(270deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 100%);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 30px;
  font-weight: 600;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  font-size: 16px;
  font-weight: 300;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

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

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
}

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

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.7;
  margin-bottom: 30px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-media video {
  width: 100%;
  border-radius: 12px;
}

/* ===== Features ===== */
.features {
  padding: 60px 0;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-card {
  padding: 35px;
  background-color: #000002;
  border-left: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

.feature-card:first-child {
  border-left: none;
}

.feature-card:hover {
  background: var(--gradient-hover);
}

.feature-card img {
  width: 200px;
  height: 200px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.6;
}

/* ===== Sections Common ===== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

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

.section-subtitle {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.7;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 32px;
  background: linear-gradient(90deg, rgba(229, 156, 255, 0.24) 0%, rgba(186, 156, 255, 0.24) 50%, rgba(156, 178, 255, 0.24) 100%);
  margin-bottom: 20px;
}

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

/* ===== Services ===== */
.services {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.service-card {
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: border-color 0.3s ease;
}

.service-card:hover {
  border-color: var(--color-primary);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
}

.service-card h4 {
  font-size: 24px;
  margin-bottom: 16px;
}

.service-card p {
  opacity: 0.7;
}

.sub-features h3 {
  text-align: center;
  margin-bottom: 30px;
}

.sub-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.sub-feature {
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.sub-feature h4 {
  margin-bottom: 8px;
  color: var(--color-primary);
}

.sub-feature p {
  font-size: 14px;
  opacity: 0.6;
}

/* ===== Research ===== */
.research {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(119, 98, 245, 0.05) 100%);
}

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

.research-card {
  padding: 40px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.research-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.research-card p {
  opacity: 0.7;
}

/* ===== Innovation ===== */
.innovation {
  padding: 80px 0;
}

.innovation-content {
  text-align: center;
  padding: 60px;
  background: linear-gradient(135deg, rgba(119, 98, 245, 0.1) 0%, rgba(119, 98, 245, 0.02) 100%);
  border: 1px solid var(--color-border);
  border-radius: 24px;
}

.innovation-content h4 {
  color: var(--color-primary);
  margin-bottom: 8px;
}

.innovation-content h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.innovation-content p {
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
}

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

.contact-content h2 {
  margin-bottom: 8px;
}

.contact-content h3 {
  font-size: 32px;
  margin-bottom: 16px;
}

.contact-content p {
  opacity: 0.7;
  margin-bottom: 30px;
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 20px;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  opacity: 0.6;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: space-around;
}

.footer-section h4 {
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-section a {
  display: block;
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 8px;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  flex-direction: column;
}

.footer-newsletter h4 {
  margin-bottom: 16px;
}

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

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-family);
}

.newsletter-form input::placeholder {
  color: rgba(244, 240, 255, 0.4);
}

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

.footer-bottom p {
  font-size: 14px;
  opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .feature-card:first-child {
    border-top: none;
  }

  .services-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

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

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .nav a {
    padding: 8px 12px;
    font-size: 14px;
  }

  h1 {
    letter-spacing: -1px;
  }

  .hero {
    padding: 120px 0 60px;
  }
}
