:root {
  --bg-primary: #050505;
  --bg-secondary: #0f0f0f;
  --bg-tertiary: #1a1a1a;
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  --accent-glow: #00f2ff;
  --accent-border: #333333;
  --accent-gradient: linear-gradient(135deg, #00f2ff 0%, #7000ff 100%);
  
  --font-display: 'Syncopate', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4rem);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-border);
  padding: var(--space-md) 0;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--accent-glow);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, #111 0%, #050505 100%);
}

.hero-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: 
    linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg);
  animation: grid-move 20s linear infinite;
  z-index: -1;
}

@keyframes grid-move {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.hero-content {
  max-width: 800px;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: var(--space-md);
  display: block;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: var(--space-lg);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

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

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Cards Section */
section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-label {
  color: var(--accent-glow);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title {
  font-size: 3rem;
  margin-top: var(--space-sm);
}

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

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: var(--accent-glow);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  color: var(--accent-glow);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Dashboard Specific Styles */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--accent-border);
  padding: var(--space-xl) var(--space-md);
}

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

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
}

.sidebar-item.active {
  background: var(--bg-tertiary);
  color: var(--accent-glow);
}

.main-content {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--bg-tertiary);
  padding: var(--space-lg);
  border-left: 4px solid var(--accent-glow);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: var(--space-xs);
}

/* Chat Interface */
.chat-container {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  height: 600px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
}

.chat-messages {
  flex: 1;
  padding: var(--space-xl);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.message {
  max-width: 80%;
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.message.ai {
  background: var(--bg-tertiary);
  align-self: flex-start;
  border-left: 2px solid var(--accent-glow);
}

.message.user {
  background: var(--accent-glow);
  color: var(--bg-primary);
  align-self: flex-end;
}

.chat-input-area {
  padding: var(--space-lg);
  border-top: 1px solid var(--accent-border);
  display: flex;
  gap: var(--space-md);
}

.chat-input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-border);
  padding: var(--space-md);
  color: var(--text-primary);
  border-radius: var(--radius-md);
}

/* Utilities */
.placeholder-image {
  width: 100%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-image::after {
  content: attr(data-label);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.placeholder-image.hero-img {
  aspect-ratio: 16/9;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-glow {
  background: rgba(0, 242, 255, 0.1);
  color: var(--accent-glow);
  border: 1px solid var(--accent-glow);
}

footer {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--accent-border);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}
