/* Variables */
:root {
  --color-bg: #0a0f2e;
  --color-bg-secondary: #13183f;
  --color-primary: #00d8ff;
  --color-secondary: #0091ff;
  --color-accent: #ff3e8e;
  --color-white: #ffffff;
  --color-gray: #8b8b9e;
  --font-sans: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

/* Reset */
* {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-sans);
  color: var(--color-white);
  background: var(--color-bg);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
h1, h2, h3 { font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  box-shadow: 0 4px 10px rgba(0, 216, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 216, 255, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: rgba(0, 216, 255, 0.1);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Layouts */
header.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0f2e 0%, #13183f 100%);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23ffffff" fill-opacity="0.03" width="20" height="20" x="0" y="0"/></svg>');
  z-index: 1;
}

header.hero > * {
  position: relative;
  z-index: 2;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-links a:not(.btn):hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 10;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  position: absolute;
  transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
  bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* Hero content */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--color-gray);
  max-width: 600px;
}

.hero-content .btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Sections */
section {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.features .feature {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.features .feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: translateY(-100%);
  transition: var(--transition);
}

.features .feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.1);
}

.features .feature:hover::before {
  transform: translateY(0);
}

.features .feature h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.features .feature p {
  color: var(--color-gray);
  line-height: 1.7;
}

/* Download */
.download {
  text-align: center;
  background: rgba(255,255,255,0.02);
  border-radius: 24px;
  padding: 4rem 2rem;
  margin: 8rem auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 216, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
  border-radius: 24px;
}

.download .btn {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
}

.download .small-text {
  font-size: 0.875rem;
  margin-top: 1rem;
  color: var(--color-gray);
  font-style: italic;
}

/* About */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about ul {
  list-style: none;
  margin-top: 2rem;
  max-width: 700px;
  width: 100%;
}

.about ul li {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  position: relative;
  padding-left: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about ul li::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Footer */
.footer {
  background: #05071f;
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo p {
  margin-top: 1rem;
  color: var(--color-gray);
  max-width: 300px;
}

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

.footer-column {
  min-width: 150px;
}

.footer-column h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.footer-column a {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-gray);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--color-gray);
  font-size: 0.875rem;
}

/* 404 Page */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background: var(--color-bg);
}
.page-404 .centered h1 {
  font-size: 6rem;
  margin-bottom: 1rem;
}
.page-404 .centered p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Global smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Animations */
.feature, .download, .about ul li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature.animate, .download.animate, .about ul li.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature:nth-child(1) { transition-delay: 0.1s; }
.feature:nth-child(2) { transition-delay: 0.2s; }
.feature:nth-child(3) { transition-delay: 0.3s; }
.feature:nth-child(4) { transition-delay: 0.4s; }

.about ul li:nth-child(1) { transition-delay: 0.1s; }
.about ul li:nth-child(2) { transition-delay: 0.2s; }
.about ul li:nth-child(3) { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  section { margin: 4rem auto; padding: 0 1.5rem; }
  section h2 { font-size: 2rem; }
  .footer-content { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 2rem; }
  
  .mobile-menu-btn { display: block; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--color-bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 9;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    margin: 1rem 0;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .features .feature-grid { grid-template-columns: 1fr; }
  .download { padding: 3rem 1.5rem; }
}
