/* ===== Variables ===== */
:root {
  /* Colors */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #64748b;
  --dark: #0f172a;
  --light: #f8fafc;
  --background: #020617;
  --surface: #1e293b;
  --error: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Typography */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition: all 0.2s ease-in-out;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  color: var(--light);
  background-color: var(--background);
  transition: var(--transition);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== Components ===== */
/* Global Notice */
.global-notice {
  background-color: var(--primary);
  color: white;
  padding: var(--space-sm);
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
}

.notice-close {
  background: none;
  border: none;
  color: white;
  font-size: var(--text-lg);
  cursor: pointer;
  padding: 0 var(--space-sm);
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-xl);
}

.logo svg {
  color: var(--primary);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: var(--space-lg);
}

.nav-list a {
  font-weight: 500;
  position: relative;
  padding: var(--space-sm) 0;
}

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

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

.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: #334155;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1px solid var(--light);
  color: var(--light);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-lg);
}

/* Hero Section */
.hero-section {
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.badge {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title .underline {
  position: relative;
}

.section-title .underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.card-icon svg {
  color: var(--primary);
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--secondary);
  margin-bottom: var(--space-md);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  font-weight: 500;
}

/* Footer */
.main-footer {
  background-color: var(--dark);
  padding: var(--space-2xl) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-xl);
}

.footer-logo svg {
  color: var(--primary);
}

.footer-description {
  color: var(--secondary);
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: white;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--secondary);
  transition: var(--transition);
}

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

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.newsletter-input {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
}

.footer-bottom {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  color: var(--secondary);
  margin-bottom: var(--space-md);
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.legal-links a {
  color: var(--secondary);
  transition: var(--transition);
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-section .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .tech-badges {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-brand {
    align-items: center;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .legal-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
}