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

:root {
  /* Black & White Theme */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-glass-strong: rgba(255, 255, 255, 0.12);
  --bg-glass-light: rgba(255, 255, 255, 0.02);
  
  /* Accent Color */
  --accent: #9feb47;
  --accent-hover: #b0f05a;
  --accent-light: rgba(159, 235, 71, 0.1);
  --accent-medium: rgba(159, 235, 71, 0.2);
  --accent-glow: rgba(159, 235, 71, 0.3);
  
  /* Text Colors - Grayscale */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #808080;
  --text-quaternary: #4d4d4d;
  
  /* Borders - Subtle */
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(159, 235, 71, 0.3);
  
  /* Shadows - Minimal */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.1);
  --shadow-accent: 0 0 30px rgba(159, 235, 71, 0.2);
  
  /* Blur - Strong */
  --blur-sm: blur(12px);
  --blur-md: blur(20px);
  --blur-lg: blur(32px);
  --blur-xl: blur(48px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Fustat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(159, 235, 71, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 300;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Navbar - Floating Glass */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1400px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--blur-xl);
  -webkit-backdrop-filter: var(--blur-xl);
  border: 1px solid var(--border);
  border-radius: 24px;
  z-index: 1000;
  padding: 16px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.navbar:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-xl), var(--shadow-accent);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.5px;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  padding: 4px;
  overflow: hidden;
}

.navbar-brand:hover {
  opacity: 0.9;
}

.brand-logo {
  height: 32px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(159, 235, 71, 0.2));
}

.brand-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(159, 235, 71, 0.4));
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

.navbar-links a:hover {
  color: var(--accent);
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Active nav link styling */
.navbar-links a.nav-link--active {
  color: var(--accent) !important;
}

.navbar-links a.nav-link--active::after {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Navbar buttons - styled as links (no circular effect) */
.navbar-links button {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 8px 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  position: relative !important;
  transition: color 0.3s ease !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.navbar-links button::before {
  display: none !important;
}

.navbar-links button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

.navbar-links button:hover {
  color: var(--accent) !important;
  background: transparent !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.navbar-links button:hover::after {
  width: 100%;
}

.navbar-links button:focus {
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.navbar-links button:active {
  background: transparent !important;
  transform: none !important;
}

/* Buttons - Glass Style */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
}

.btn-primary:hover {
  background: var(--accent-medium);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-accent);
}

.btn-outline {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
}

.btn-outline:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
}

.btn-danger:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
  font-weight: 300;
}

.btn-no-circle::before {
  display: none !important;
}

/* Hero - Minimal */
.hero {
  background: transparent;
  color: var(--text-primary);
  padding: 200px 0 140px;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(159, 235, 71, 0.03) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.1;
  letter-spacing: -3px;
  color: var(--text-primary);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typewriter cursor animation */
@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes fadeInText {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  animation: blink 1s infinite;
  margin-left: 2px;
}

.typewriting {
  animation: fadeInText 0.5s ease-out;
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 56px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.hero-title, .hero-subtitle {
  min-height: 1.2em;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Features - Glass Cards */
.features {
  padding: 140px 0;
  background: transparent;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 80px;
  color: var(--text-primary);
  letter-spacing: -2px;
  line-height: 1.2;
}

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

.feature-card {
  text-align: center;
  padding: 48px 40px;
  border-radius: 32px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-xl);
  -webkit-backdrop-filter: var(--blur-xl);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  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), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-12px);
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border);
  color: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  margin: 0 auto 28px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-light);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 300;
}

/* Info - Minimal */
.info {
  padding: 140px 0;
  background: transparent;
  position: relative;
}

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

.info-content h2 {
  font-size: 52px;
  margin-bottom: 32px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.2;
}

.info-content p {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-weight: 300;
}

/* Forms - Glass */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  margin-top: 0;
}

.auth-container {
  width: 100%;
  max-width: 520px;
}

.auth-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-xl);
  -webkit-backdrop-filter: var(--blur-xl);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 56px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.auth-card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-accent);
  border-color: var(--border-accent);
}

.auth-card h1 {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-align: center;
  font-weight: 700;
  letter-spacing: -1px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 16px;
  font-weight: 300;
}

.input-group {
  margin-bottom: 28px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
  color: var(--text-primary);
  font-weight: 300;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: var(--text-tertiary);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px var(--accent-light), 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 16px 20px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 300;
}

.success {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 300;
}

.loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 300;
}

/* Badges - Glass */
.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border);
}

.badge-success {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.badge-danger {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.badge-warning {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.badge-info {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

/* Card - Glass */
.card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-xl);
  -webkit-backdrop-filter: var(--blur-xl);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  margin-bottom: 32px;
  transition: all 0.4s ease;
}

.card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.card h2 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    transform: none;
    padding: 14px 20px;
    border-radius: 20px;
  }

  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 36px;
  }

  .navbar-links {
    gap: 16px;
  }
  
  .navbar-links a {
    font-size: 14px;
  }

  .auth-card {
    padding: 40px 28px;
    border-radius: 28px;
  }

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

  .container {
    padding: 0 20px;
  }
}
