/*
  Cursor AI Pakistan Community – Styles
  - Clean, modern layout
  - Poppins/Inter typography
  - Responsive grid utilities
  - Subtle hover & motion effects
*/

/* CSS Reset (Josh Comeau inspired minimal reset) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html:focus-within { scroll-behavior: smooth; }
html, body { 
  height: 100%; 
  overflow-x: hidden; /* Prevent horizontal scroll */
}
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

/* Theme */
:root {
  /* Color System */
  --bg: #0b1020;
  --surface: #0f1530;
  --elev-1: #141b3d;
  --text: #e7ecff;
  --text-dim: #b7c0e6;
  --brand-1: #7C5CFF;  /* purple */
  --brand-2: #5A8DFF;  /* blue */
  --brand-3: #4B5DFF;  /* indigo */
  --accent: #70F0FF;   /* aqua */
  --shadow: 0 10px 30px rgba(24, 36, 84, 0.35);
  --glass: rgba(255,255,255,0.06);

  /* Layout */
  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 18px;
  --gap: 1.25rem;
  --gap-lg: 2rem;
}

/* Typography */
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #090d1c, #0b1020 35%, #0b1020 65%, #090d1c);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo-icon { 
  width: 28px; 
  height: 28px; 
  border-radius: 6px; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.35); 
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo-icon:hover {
  filter: drop-shadow(0 6px 16px rgba(112,240,255,0.2));
  transform: scale(1.02);
}
.logo-wordmark { 
  height: 18px; 
  width: auto; 
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: filter 0.3s ease;
}
.logo:hover .logo-wordmark {
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(112,240,255,0.4));
}

.small { font-size: 0.875rem; color: var(--text-dim); }
.lead { font-size: 1.125rem; color: var(--text); opacity: 0.92; }
.subtitle { font-size: 1.25rem; color: var(--text-dim); margin-top: 0.5rem; }

h1, h2, h3 { line-height: 1.2; }
h1 { font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
  overflow-x: hidden; /* Prevent container overflow */
}

.section {
  padding: 72px 0;
}

.section-title { margin-bottom: 1rem; }

/* Innovative Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.95), rgba(11, 16, 32, 0.85));
  border-bottom: 1px solid rgba(124, 92, 255, 0.2);
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.98), rgba(11, 16, 32, 0.95));
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(90, 141, 255, 0.2));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 280ms ease;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(90, 141, 255, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.3);
  transform: translateY(-1px);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(90, 141, 255, 0.15));
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.2);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(180deg, rgba(15, 21, 48, 0.95), rgba(20, 27, 61, 0.95));
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  list-style: none;
  margin: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.dropdown-link:hover {
  color: var(--text);
  background: rgba(124, 92, 255, 0.1);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dim);
}

.theme-toggle:hover {
  background: rgba(124, 92, 255, 0.1);
  border-color: rgba(124, 92, 255, 0.3);
  transform: scale(1.05);
}

.cta-btn {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(124, 92, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.4);
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-btn:hover::before {
  left: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px; /* Match width to prevent overflow */
  width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(15, 21, 48, 0.98), rgba(20, 27, 61, 0.98));
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(124, 92, 255, 0.2);
  transition: right 0.4s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-header h3 {
  color: var(--text);
  margin: 0;
  font-size: 1.1rem;
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-list {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-item {
  margin: 0.25rem 1rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.mobile-nav-link:hover {
  color: var(--text);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(90, 141, 255, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.3);
  transform: translateX(4px);
}

.nav-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.mobile-nav-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-cta-btn {
  display: block;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.mobile-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.4);
}

.mobile-social {
  text-align: center;
}

.mobile-social span {
  color: var(--text-dim);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-links a {
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: rgba(124, 92, 255, 0.1);
  transform: scale(1.1);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section - Cursor.com Inspired */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1117 0%, #0b1020 50%, #0d1117 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(124, 92, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(90, 141, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  padding: 60px 0;
}

.hero-text {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #7C5CFF, #5A8DFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: 0 0 30px rgba(124, 92, 255, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #8b949e;
  line-height: 1.6;
  margin-bottom: 3rem;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.5s both;
}

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

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 1s both;
}

.hero-actions .btn {
  animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-actions .btn:nth-child(2) {
  animation-delay: 1.4s;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #7C5CFF, #5A8DFF);
  color: white;
  border-color: rgba(124, 92, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

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

/* Cursor UI Demo */
.hero-visual {
  position: relative;
  z-index: 2;
}

.cursor-ui {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
  height: 700px;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-10px);
  }
}

.cursor-ui:hover {
  transform: perspective(1000px) rotateY(-3deg) rotateX(3deg);
}

/* Top Bar */
.top-bar {
  background: #161b22;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #30363d;
  height: 40px;
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.close {
  background: #ff5f56;
}

.minimize {
  background: #ffbd2e;
}

.maximize {
  background: #27ca3f;
}

.menu-bar {
  display: flex;
  gap: 1rem;
  color: #8b949e;
  font-size: 0.8rem;
  flex: 1;
}

.menu-bar span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-bar span:hover {
  color: #ffffff;
}

.search-bar {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  color: #8b949e;
  font-size: 0.8rem;
  min-width: 150px;
}

.system-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #8b949e;
  font-size: 0.8rem;
}

/* Main Interface */
.main-interface {
  display: flex;
  flex: 1;
  height: calc(100% - 80px); /* Subtract top bar and status bar */
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #0d1117;
  border-right: 1px solid #30363d;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  background: #161b22;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #30363d;
}

.project-name {
  color: #8b949e;
  font-size: 0.8rem;
  font-weight: 600;
}

.file-explorer {
  flex: 1;
  padding: 0.5rem 0;
}

.folder, .file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  color: #8b949e;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.folder:hover, .file:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.file.active {
  background: rgba(124, 92, 255, 0.2);
  color: #7C5CFF;
}

.folder-icon, .file-icon {
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}

.sidebar-footer {
  border-top: 1px solid #30363d;
  padding: 0.5rem 0;
}

.section-icon {
  font-size: 0.7rem;
  width: 16px;
  text-align: center;
}

/* Editor Panel */
.editor-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0d1117;
}

.editor-tabs {
  background: #161b22;
  padding: 0.5rem 0.5rem 0;
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid #30363d;
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px 6px 0 0;
  font-size: 0.8rem;
  color: #8b949e;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab.active {
  background: #0d1117;
  color: #ffffff;
  border-bottom-color: #7C5CFF;
}

.tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

.tab-icon {
  font-size: 0.7rem;
  color: #8b949e;
}

.tab-close {
  font-size: 0.8rem;
  color: #8b949e;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tab-close:hover {
  color: #ffffff;
}

.editor-content {
  flex: 1;
  display: flex;
  background: #0d1117;
}

.line-numbers {
  padding: 1rem 0.75rem;
  border-right: 1px solid #30363d;
  text-align: right;
  color: #484f58;
  font-size: 0.8rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  min-width: 50px;
  background: #0d1117;
}

.line-numbers span {
  display: block;
  padding: 0.125rem 0;
}

.code-content {
  flex: 1;
  padding: 1rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #c9d1d9;
}

.code-line {
  padding: 0.125rem 0;
}

.code-line.comment {
  color: #8b949e;
}

.comment-start, .comment-end {
  color: #8b949e;
}

.comment-text {
  color: #8b949e;
}

.comment {
  color: #8b949e;
}

.selector {
  color: #ff7b72;
}

.property {
  color: #79c0ff;
}

.value {
  color: #a5d6ff;
}

/* AI Panel */
.ai-panel {
  width: 350px;
  background: #161b22;
  border-left: 1px solid #30363d;
  display: flex;
  flex-direction: column;
}

.ai-header {
  background: #21262d;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #30363d;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C5CFF, #5A8DFF);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.ai-status {
  color: #8b949e;
  font-size: 0.9rem;
  font-weight: 500;
}

.ai-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ai-message {
  padding: 1rem;
  color: #c9d1d9;
  font-size: 0.9rem;
  line-height: 1.5;
  border-bottom: 1px solid #30363d;
}

.ai-message p {
  margin: 0 0 0.5rem 0;
}

.ai-message strong {
  color: #ffffff;
}

.ai-sections {
  flex: 1;
  padding: 1rem;
}

.ai-sections > .section { margin-bottom: 1.5rem; }
.ai-sections > .section h4 { color: #ffffff; font-size: 0.9rem; margin: 0 0 0.5rem 0; font-weight: 600; }
.ai-sections > .section ul { margin: 0; padding-left: 1rem; color: #8b949e; font-size: 0.8rem; line-height: 1.4; }
.ai-sections > .section li { margin-bottom: 0.25rem; }

.ai-footer {
  border-top: 1px solid #30363d;
  padding: 1rem;
}

.ai-footer p {
  color: #8b949e;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

.ai-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-btn {
  background: #7C5CFF;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.review-btn:hover {
  background: #6b4ce6;
}

.percentage {
  color: #8b949e;
  font-size: 0.8rem;
  font-weight: 600;
}

.ai-input {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.input-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt {
  color: #7C5CFF;
  font-weight: 700;
  font-size: 1rem;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}

.ai-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #c9d1d9;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.ai-input input::placeholder {
  color: #484f58;
}

.send-btn {
  background: #7C5CFF;
  border: none;
  border-radius: 6px;
  color: white;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}

.send-btn:hover {
  background: #6b4ce6;
}

.ai-input .ai-controls {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #8b949e;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent, .auto, .shortcut, .compose {
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
}

.agent:hover, .auto:hover, .shortcut:hover, .compose:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

.agent-icon, .auto-icon {
  font-size: 0.8rem;
}

.agent-text, .auto-text {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Status Bar */
.status-bar {
  background: #161b22;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #30363d;
  height: 40px;
}

.status-item {
  color: #8b949e;
  font-size: 0.8rem;
}

/* Preview Section */
.preview-section {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  overflow: hidden;
  transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.preview-section:hover {
  transform: perspective(1000px) rotateY(3deg) rotateX(3deg);
}

.preview-header {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.preview-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
}

.preview-content {
  padding: 1.5rem;
  background: #ffffff;
}

.dashboard-preview {
  background: #ffffff;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.nav-brand {
  font-weight: 700;
  color: #333;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  font-size: 1rem;
  color: #666;
}

.nav-menu span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-menu span:hover {
  color: #333;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.card-header {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.card-trend {
  font-size: 0.9rem;
  color: #666;
}

.card-trend.up {
  color: #10b981;
}

.revenue-card {
  border-left: 4px solid #3b82f6;
}

.users-card {
  border-left: 4px solid #10b981;
}

.reports-card {
  border-left: 4px solid #f59e0b;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding: 40px 0;
  }
  
  .hero-text {
    max-width: none;
  }
  
  .cursor-ui {
    transform: none;
    max-width: 900px;
    margin-inline: auto;
    height: 600px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  
  .hero-inner {
    padding: 40px 0;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .main-interface {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #30363d;
    height: 150px;
  }
  
  .ai-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid #30363d;
    height: 200px;
  }
  
  .cursor-ui {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .code-content {
    font-size: 0.75rem;
  }
  
  .ai-message {
    font-size: 0.85rem;
  }
  
  .menu-bar {
    display: none;
  }
  
  .system-icons {
    display: none;
  }
}


/* Cards & Surfaces */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(112,240,255,0.35); box-shadow: 0 12px 40px rgba(112,240,255,0.12); }

/* Feature Grid */
.features .feature-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--gap-lg);
}
.feature .icon {
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(180deg, rgba(112,240,255,0.15), rgba(112,240,255,0.06));
  border: 1px solid rgba(112,240,255,0.35);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.feature h3 { margin-bottom: 0.25rem; }
.feature p { color: var(--text-dim); }

/* Benefits */
.benefits .benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap-lg);
}
.benefit-block ul { margin-top: 0.5rem; padding-left: 1.25rem; }
.benefit-block li { margin: 0.35rem 0; color: var(--text-dim); }

/* Community checklist */
.checklist {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  padding-left: 0;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-1));
  box-shadow: 0 2px 10px rgba(90,141,255,0.45);
}

/* Projects */
.projects .project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--gap-lg);
}
.project header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.tag {
  font-size: 0.75rem;
  color: #0b1020;
  background: linear-gradient(180deg, var(--accent), #9cf7ff);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-weight: 600;
}
.project p { color: var(--text-dim); }

/* Testimonials */
.testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--gap-lg);
}
.testimonial-content {
  margin-bottom: 1rem;
}
.testimonial-content p {
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  font-size: 1.1rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}
.author-info h4 {
  color: var(--text);
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}
.author-info span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* FAQ */
.faq .faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
}
.faq-question:hover {
  background: rgba(255,255,255,0.03);
}
.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}
.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 200px;
  padding: 0 1.25rem 1.25rem;
}
.faq-answer p {
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* CTA */
.cta {
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(124, 92, 255, 0.2), transparent 55%),
    radial-gradient(900px 500px at 80% 30%, rgba(90, 141, 255, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(12,18,48,0.7), rgba(12,18,48,0.5));
  border-block: 1px solid rgba(255,255,255,0.06);
}
.cta-inner { text-align: center; }
.cta-title { max-width: 850px; margin: 0 auto 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 180ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #061020;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-1));
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 10px 30px rgba(90,141,255,0.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(90,141,255,0.45); }
.btn-accent {
  color: #061020;
  background: linear-gradient(180deg, var(--accent), #9cf7ff);
  border-color: rgba(112, 240, 255, 0.7);
  box-shadow: 0 10px 30px rgba(112,240,255,0.35);
}
.btn-outline {
  color: var(--text);
  background: transparent;
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }

.btn-secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(112, 240, 255, 0.15), rgba(90, 141, 255, 0.1));
  border-color: rgba(112, 240, 255, 0.4);
  box-shadow: 0 4px 16px rgba(112, 240, 255, 0.15);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(112, 240, 255, 0.25), rgba(90, 141, 255, 0.15));
  box-shadow: 0 8px 25px rgba(112, 240, 255, 0.3);
}

.btn-outline-light {
  color: var(--text);
  background: transparent;
  border-color: rgba(255,255,255,0.3);
}

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

.btn-icon {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

/* CTA Sections */
.about-cta,
.community-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Mobile CTA */
.mobile-cta-btn.secondary {
  background: linear-gradient(135deg, rgba(112, 240, 255, 0.2), rgba(90, 141, 255, 0.15));
  border: 1px solid rgba(112, 240, 255, 0.3);
  margin-bottom: 0.5rem;
}

.mobile-cta-btn.secondary:hover {
  background: linear-gradient(135deg, rgba(112, 240, 255, 0.3), rgba(90, 141, 255, 0.2));
  box-shadow: 0 8px 25px rgba(112, 240, 255, 0.3);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.98), rgba(15, 21, 48, 0.98));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(124, 92, 255, 0.2);
  z-index: 999;
  max-width: 320px;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.floating-cta.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.floating-cta-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.floating-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.floating-subtitle {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.floating-cta-actions {
  display: flex;
  gap: 0.75rem;
}

.floating-btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.floating-btn.primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  border: 1px solid rgba(124, 92, 255, 0.3);
}

.floating-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4);
}

.floating-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.floating-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* Contact */
.contact .contact-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* Enhanced Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  margin-top: 2rem;
}

.contact-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form-inner {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h3 {
  color: var(--text);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item strong {
  color: var(--text);
  font-size: 0.9rem;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--text);
}

.event-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.event-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 60px;
  height: 60px;
}

.event-date .day {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.event-date .month {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.event-details {
  flex: 1;
}

.event-details h4 {
  color: var(--text);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.event-details p {
  color: var(--text-dim);
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.event-location {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  background: linear-gradient(180deg, #0a0f23, #0a0f23);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--gap-lg); align-items: start; }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.socials { display: flex; gap: 0.75rem; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); transition: transform 180ms ease, background-color 200ms ease; }
.socials a:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* Personal Branding Section */
.personal-branding {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.branding-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.branding-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.branding-label {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.branding-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.branding-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(112, 240, 255, 0.2);
}

.branding-name {
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
}

.branding-site {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.75rem;
}

.branding-socials {
  display: flex;
  gap: 0.75rem;
}

.branding-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.branding-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.branding-socials svg {
  width: 18px;
  height: 18px;
}

/* Community Lead in Footer */
.community-lead {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.lead-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.lead-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lead-name {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.lead-site {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.lead-link:hover .lead-name {
  color: var(--accent);
}

.lead-link:hover .lead-site {
  color: var(--text);
}

/* Skip link (visually hidden until focused) */
.skip-link { position: fixed; bottom: 16px; right: 16px; background: var(--glass); border: 1px solid rgba(255,255,255,0.2); color: var(--text); padding: 0.5rem 0.75rem; border-radius: 10px; text-decoration: none; opacity: 0.35; transition: opacity 200ms ease; }
.skip-link:hover, .skip-link:focus-visible { opacity: 1; }

/* Utilities */
/* Responsive Navigation */
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .cta-btn { display: none; }
  
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .ai-orb { margin: 16px auto 0; }
  .features .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .projects .project-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .testimonials .testimonials-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lab-panels { grid-template-columns: 1fr; }
  .lab-left { text-align: left; }
}

@media (max-width: 768px) {
  .header-inner { min-height: 64px; }
  .logo-badge { display: none; }
  .theme-toggle { width: 36px; height: 36px; }
  .mobile-nav { 
    width: 100%; 
    right: -100%; /* Use percentage for mobile */
  }
  
  .section { padding: 56px 0; }
  .benefits .benefits-grid { grid-template-columns: 1fr; }
  .features .feature-grid { grid-template-columns: 1fr; }
  .projects .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .testimonials .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .prompt-bar { flex-direction: column; align-items: stretch; }
  .play-btn { width: 100%; }
  .timeline { grid-auto-flow: row; grid-template-columns: 1fr; justify-items: start; }
  
  /* CTA Responsive */
  .hero-actions { flex-direction: column; align-items: center; }
  .about-cta, .community-cta, .cta-actions { flex-direction: column; align-items: center; }
  .cta-stats { flex-direction: column; gap: 1.5rem; }
  .floating-cta { 
    bottom: 10px; 
    right: 10px; 
    left: 10px; 
    max-width: none; 
    padding: 1rem; 
  }
  .floating-cta-actions { flex-direction: column; }
}

@media (max-width: 520px) {
  .header-inner { flex-wrap: wrap; gap: 0.5rem; }
  .site-nav .nav-list { flex-wrap: wrap; gap: 0.5rem; }
  .projects .project-grid { grid-template-columns: 1fr; }
  .testimonials .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .code-diff pre { font-size: 0.8rem; }
  .testimonial-content p { font-size: 1rem; }
  .faq-question h3 { font-size: 1rem; }
}


/* Tips list inside feature cards */
.tips-list {
  margin-top: 0.75rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.prompt-chip {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.feature-note a { color: var(--accent); }

/* Benefits steps */
.steps {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}
.kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  font-size: 0.85em;
}

/* Playbooks */
.playbooks-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--gap-lg);
}
.playbook ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}
.playbook li { color: var(--text-dim); margin: 0.25rem 0; }

/* Prompt patterns */
.prompt-patterns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--gap-lg);
  margin-top: 1rem;
}
.prompt-block {
  margin-top: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.75rem;
  color: var(--text-dim);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.85rem;
}

/* Shortcuts */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--gap-lg);
}
.kbd-list { padding-left: 1rem; margin-top: 0.5rem; }
.kbd-list li { color: var(--text-dim); margin: 0.25rem 0; }

/* Responsive tweaks for new sections */
@media (max-width: 1024px) {
  .playbooks-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .prompt-patterns { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shortcuts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .playbooks-grid { grid-template-columns: 1fr; }
  .prompt-patterns { grid-template-columns: 1fr; }
  .shortcuts-grid { grid-template-columns: 1fr; }
}

/* Setup Section */
.setup {
  background: linear-gradient(180deg, rgba(112, 240, 255, 0.03), rgba(124, 92, 255, 0.02));
  position: relative;
}

.setup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(112, 240, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(124, 92, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.setup-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.setup-subtitle {
  font-size: 1.125rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.setup .step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--elev-1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-1);
  box-shadow: 0 20px 40px rgba(24, 36, 84, 0.3);
}

.step-card:hover::before {
  opacity: 1;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
  flex-shrink: 0;
}

.step-icon {
  font-size: 2rem;
  filter: grayscale(0.3);
  transition: filter 0.3s ease;
}

.step-card:hover .step-icon {
  filter: grayscale(0);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.step-content p {
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.step-actions {
  margin-top: auto;
}

.step-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-tag {
  background: var(--elev-1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(112, 240, 255, 0.2);
}

.step-shortcuts {
  margin-top: 1rem;
}

.shortcut-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.shortcut-hint kbd {
  background: var(--elev-1);
  border: 1px solid var(--brand-1);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .setup .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .step-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .setup .step-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .setup-header {
    margin-bottom: 2rem;
  }
  
  .setup-subtitle {
    font-size: 1rem;
  }
  
  .step-card {
    padding: 1.25rem;
  }
  
  .step-header {
    margin-bottom: 1rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .step-icon {
    font-size: 1.5rem;
  }
  
  .step-content h3 {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .setup {
    padding: 3rem 0;
  }
  
  .step-card {
    padding: 1rem;
  }
  
  .step-features {
    flex-direction: column;
  }
  
  .feature-tag {
    text-align: center;
  }
}

/* AI Code Flow Section */
.predictive {
  background: linear-gradient(135deg, rgba(112, 240, 255, 0.03), rgba(124, 92, 255, 0.03));
  position: relative;
  overflow: hidden;
}

.predictive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(112, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(124, 92, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.predictive-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.flow-text {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-1), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  animation: flowGlow 3s ease-in-out infinite;
}

.flow-text:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes flowGlow {
  0%, 100% { 
    transform: scale(1);
    filter: brightness(1);
  }
  50% { 
    transform: scale(1.02);
    filter: brightness(1.2);
  }
}

.predictive-subtitle {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Code Flow Demo */
.code-flow-demo {
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.flow-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--elev-1);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(24, 36, 84, 0.3);
}

/* Code Stream */
.code-stream {
  background: #1a1a1a;
  border-radius: var(--radius);
  padding: 2rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  position: relative;
}

.stream-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  opacity: 0.3;
  transition: all 0.5s ease;
}

.stream-line.active {
  opacity: 1;
  transform: translateX(10px);
}

.line-number {
  color: #666;
  font-size: 0.875rem;
  min-width: 2rem;
  text-align: right;
}

.code-text {
  color: #d4d4d4;
  font-size: 1rem;
}

.prediction-bubble {
  background: linear-gradient(135deg, var(--brand-1), var(--accent));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
  cursor: pointer;
}

.prediction-bubble.active {
  opacity: 1;
  transform: scale(1);
  animation: bubblePulse 2s ease-in-out infinite;
}

@keyframes bubblePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* AI Brain */
.ai-brain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brain-core {
  position: relative;
  width: 120px;
  height: 120px;
}

.neural-network {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.5rem;
}

.neuron {
  width: 20px;
  height: 20px;
  background: var(--elev-1);
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
}

.neuron.active {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(112, 240, 255, 0.6);
  animation: neuronPulse 1s ease-in-out infinite;
}

@keyframes neuronPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.brain-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.brain-label {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Prediction Flow */
.prediction-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-arrow {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-1), var(--accent));
  position: relative;
  margin: 1rem 0;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: -10px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.prediction-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prediction-card {
  background: var(--elev-1);
  border: 1px solid var(--elev-1);
  border-radius: var(--radius);
  padding: 1rem;
  transition: all 0.3s ease;
  opacity: 0.5;
  transform: translateX(-20px);
}

.prediction-card.active {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--accent);
  background: rgba(112, 240, 255, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.prediction-icon {
  font-size: 1.25rem;
}

.prediction-title {
  font-weight: 600;
  color: var(--text);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

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

.confidence {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Flow Controls */
.flow-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--elev-1);
  border-radius: var(--radius-lg);
}

.control-panel {
  display: flex;
  gap: 1rem;
}

.flow-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.flow-btn.primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}

.flow-btn.secondary {
  background: var(--elev-1);
  color: var(--text);
  border: 1px solid var(--elev-1);
}

.flow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.4);
}

.flow-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Flow Features */
.flow-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--elev-1);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-1);
  box-shadow: 0 20px 40px rgba(24, 36, 84, 0.3);
}

.feature-visual {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Flow Animation */
.flow-animation {
  display: flex;
  gap: 0.5rem;
}

.flow-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  animation: flowDot 2s ease-in-out infinite;
}

.flow-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.flow-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes flowDot {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1; }
}

/* Context Visual */
.context-visual {
  position: relative;
  width: 60px;
  height: 60px;
}

.context-layer {
  position: absolute;
  border: 2px solid var(--brand-1);
  border-radius: 50%;
  animation: contextLayer 3s ease-in-out infinite;
}

.context-layer:nth-child(1) {
  width: 40px;
  height: 40px;
  top: 10px;
  left: 10px;
  animation-delay: 0s;
}

.context-layer:nth-child(2) {
  width: 50px;
  height: 50px;
  top: 5px;
  left: 5px;
  animation-delay: 1s;
}

.context-layer:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 0;
  left: 0;
  animation-delay: 2s;
}

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

/* Speed Visual */
.speed-visual {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.speed-line {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-1), var(--accent));
  border-radius: 2px;
  animation: speedLine 1.5s ease-in-out infinite;
}

.speed-line:nth-child(2) {
  animation-delay: 0.3s;
}

.speed-line:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes speedLine {
  0% { width: 20px; opacity: 0.5; }
  50% { width: 60px; opacity: 1; }
  100% { width: 20px; opacity: 0.5; }
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-dim);
  line-height: 1.6;
}

/* Responsive Design for AI Code Flow */
@media (max-width: 1024px) {
  .flow-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .flow-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .flow-controls {
    flex-direction: column;
    gap: 2rem;
  }
  
  .flow-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .predictive-header {
    margin-bottom: 3rem;
  }
  
  .predictive-subtitle {
    font-size: 1.125rem;
  }
  
  .flow-container {
    padding: 1.5rem;
  }
  
  .code-stream {
    padding: 1.5rem;
  }
  
  .brain-core {
    width: 100px;
    height: 100px;
  }
  
  .neuron {
    width: 16px;
    height: 16px;
  }
  
  .flow-features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .flow-stats {
    gap: 1rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .predictive {
    padding: 3rem 0;
  }
  
  .flow-container {
    padding: 1rem;
  }
  
  .code-stream {
    padding: 1rem;
  }
  
  .stream-line {
    gap: 0.5rem;
  }
  
  .prediction-bubble {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .brain-core {
    width: 80px;
    height: 80px;
  }
  
  .neuron {
    width: 12px;
    height: 12px;
  }
  
  .prediction-card {
    padding: 0.75rem;
  }
  
  .flow-controls {
    padding: 1.5rem;
  }
  
  .control-panel {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .flow-btn {
    padding: 0.5rem 1rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
}

/* Events Section */
.events {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.03), rgba(112, 240, 255, 0.02));
  position: relative;
}

.events::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(124, 92, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(112, 240, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.events-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.events-subtitle {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.events-section {
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.events-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.section-icon {
  font-size: 1.75rem;
}

.events-grid {
  display: grid;
  gap: 2rem;
}

.upcoming-events {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.past-events {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--elev-1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-1);
  box-shadow: 0 20px 40px rgba(24, 36, 84, 0.3);
}

.event-card:hover::before {
  opacity: 1;
}

.event-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface), rgba(112, 240, 255, 0.05));
}

.event-card.featured::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--accent), var(--brand-1));
}

.event-card.past {
  opacity: 0.8;
  background: var(--elev-1);
}

.event-card.past:hover {
  opacity: 1;
}

.event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #061020;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-radius: var(--radius);
  color: white;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.date-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.event-description {
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.event-meta span {
  color: var(--text-dim);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stat {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--elev-1);
  color: var(--text-dim);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-card .btn {
  width: 100%;
  justify-content: center;
}

/* Community Stats */
.community-stats {
  background: var(--surface);
  border: 1px solid var(--elev-1);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-1), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Events CTA */
.events-cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--elev-1);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.events-cta h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.events-cta p {
  color: var(--text-dim);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design for Events */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .upcoming-events {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .past-events {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .events-header {
    margin-bottom: 3rem;
  }
  
  .events-subtitle {
    font-size: 1.125rem;
  }
  
  .events-section {
    margin-bottom: 3rem;
  }
  
  .events-section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .event-card {
    padding: 1.5rem;
  }
  
  .event-date {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }
  
  .date-day {
    font-size: 1.25rem;
  }
  
  .date-month {
    font-size: 0.75rem;
  }
  
  .event-content h4 {
    font-size: 1.125rem;
  }
  
  .community-stats {
    padding: 2rem 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .events-cta {
    padding: 2rem 1.5rem;
  }
  
  .events-cta h3 {
    font-size: 1.5rem;
  }
  
  .events-cta p {
    font-size: 1rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .events {
    padding: 3rem 0;
  }
  
  .event-card {
    padding: 1.25rem;
  }
  
  .event-meta {
    gap: 0.25rem;
  }
  
  .event-tags {
    gap: 0.25rem;
  }
  
  .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .community-stats {
    padding: 1.5rem 1rem;
  }
  
  .events-cta {
    padding: 1.5rem 1rem;
  }
}

/* Starter Kits tweaks */
.projects .project-grid { gap: var(--gap-lg); }
.projects .tag { background: linear-gradient(180deg, var(--brand-2), var(--brand-1)); color: #061020; }

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--gap-lg);
}
@media (max-width: 1024px) { .highlights-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .highlights-grid { grid-template-columns: 1fr; } }

/* Tighter global spacing since page is simplified */
/* was: .section { padding: 56px 0; } */
main > .section { padding: 56px 0; }
@media (max-width: 768px) { main > .section { padding: 44px 0; } }

/* Sidebar footer items (scoped) */
.sidebar-footer .section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  color: #8b949e;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.sidebar-footer .section:hover { color: #ffffff; }

/* AI panel sections (scoped) */
.ai-sections > .section { margin-bottom: 1.5rem; }
.ai-sections > .section h4 {
  color: #ffffff;
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}
.ai-sections > .section ul {
  margin: 0;
  padding-left: 1rem;
  color: #8b949e;
  font-size: 0.8rem;
  line-height: 1.4;
}
.ai-sections > .section li { margin-bottom: 0.25rem; }

/* Remove unintended late global override of section spacing */
.section.spacing-compact { padding: 56px 0; }


