/* ========================
   CSS Variables & Reset
   ======================== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --accent: #f59e0b;
  --background: #0f172a;
  --surface: #1e293b;
  --surface-light: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #475569;
  --success: #10b981;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-dark);
}

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

/* ========================
   Utilities
   ======================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  color: white;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* ========================
   Navigation
   ======================== */
.navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.theme-toggle,
.mobile-menu-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
  background: var(--surface-light);
}

.mobile-menu {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu a {
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
}

/* ========================
   Main Content
   ======================== */
.main-content {
  min-height: calc(100vh - 200px);
}

/* ========================
   Hero Section
   ======================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--surface);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.code-block {
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
  margin-left: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}

.code-block code {
  font-family: 'Fira Code', 'Monaco', monospace;
}

.code-block .keyword { color: #ff7b72; }
.code-block .string { color: #a5d6ff; }
.code-block .function { color: #d2a8ff; }
.code-block .method { color: #79c0ff; }
.code-block .comment { color: #8b949e; }

/* ========================
   Stats Bar
   ======================== */
.stats-bar {
  background: var(--surface);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--background);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-icon {
  font-size: 2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================
   Section Headers
   ======================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.view-all {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  font-weight: 600;
}

/* ========================
   Products Grid
   ======================== */
.featured-products,
.products-section {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: block;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--surface);
  color: var(--text);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
}

.product-rating {
  color: var(--accent);
  font-weight: 600;
}

/* ========================
   Dynamic Features Section
   ======================== */
.dynamic-features {
  padding: 80px 0;
  background: var(--surface);
}

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

.feature-card {
  background: var(--background);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.feature-demo {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
}

.feature-demo input {
  width: 100%;
  padding: 12px 15px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

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

.search-results {
  margin-top: 15px;
  max-height: 200px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--background);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.demo-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.demo-btn:hover {
  background: var(--primary-dark);
}

.demo-btn.secondary {
  background: var(--surface-light);
  margin-top: 10px;
}

.api-result {
  margin-top: 15px;
  padding: 15px;
  background: var(--background);
  border-radius: 8px;
  font-size: 0.85rem;
  min-height: 80px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-stat {
  text-align: center;
  padding: 10px;
  background: var(--background);
  border-radius: 8px;
}

.mini-stat span:first-child {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.time-display {
  text-align: center;
}

.time-display p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.time-display code {
  display: block;
  padding: 15px;
  background: var(--background);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--secondary);
}

.time-display .small {
  font-size: 0.8rem;
  margin-top: 10px;
}

/* ========================
   CTA Section
   ======================== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: var(--gradient);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

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

.cta-section .btn-outline {
  border-color: white;
  color: white;
}

.cta-section .btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* ========================
   Page Header
   ======================== */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ========================
   Filters
   ======================== */
.filters-bar {
  background: var(--surface);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 12px 15px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.filter-btn {
  padding: 12px 25px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: var(--primary-dark);
}

.results-info {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.no-results {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ========================
   Product Detail
   ======================== */
.product-detail {
  padding: 40px 0 80px;
}

.breadcrumb {
  margin-bottom: 30px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.main-image {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-info-detail {
  padding: 20px 0;
}

.product-category {
  display: inline-block;
  background: var(--surface);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.product-info-detail h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.product-rating-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.stars {
  letter-spacing: 2px;
}

.product-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.product-price-detail {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 15px;
}

.product-stock {
  margin-bottom: 30px;
}

.in-stock { color: var(--success); }
.low-stock { color: var(--accent); }
.out-stock { color: var(--error); }

.review-form {
  background: var(--surface);
  padding: 25px;
  border-radius: 12px;
  margin-top: 30px;
}

.review-form h3 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.related-products {
  margin-top: 60px;
}

.related-products h2 {
  margin-bottom: 30px;
}

.product-card.small .product-image {
  height: 150px;
}

/* ========================
   Users Grid
   ======================== */
.users-section {
  padding: 60px 0;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.user-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  transition: all 0.3s;
  color: inherit;
}

.user-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.user-avatar {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.user-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.user-username {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 8px;
}

.user-role {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.user-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.user-join {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================
   User Profile
   ======================== */
.user-profile-page {
  padding: 40px 0 80px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  font-size: 5rem;
}

.profile-info h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.profile-username {
  color: var(--text-muted);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 10px;
}

.profile-role {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.profile-card {
  background: var(--surface);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.profile-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.profile-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.profile-details {
  list-style: none;
}

.profile-details li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.profile-details li:last-child {
  border-bottom: none;
}

.profile-card pre {
  background: var(--background);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
}

/* ========================
   About Page
   ======================== */
.about-content {
  padding: 60px 0;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.about-intro h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.about-intro ul {
  text-align: left;
  list-style: none;
  display: inline-block;
}

.about-intro li {
  padding: 10px 0;
  color: var(--text-muted);
}

.about-intro li strong {
  color: var(--primary);
}

.about-features {
  margin-bottom: 60px;
}

.about-features h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 30px;
}

.feature-item {
  background: var(--surface);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.feature-item .feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tech-stack-section {
  text-align: center;
}

.tech-stack-section h2 {
  margin-bottom: 30px;
}

.tech-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tech-item {
  background: var(--surface);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.tech-item h4 {
  margin-bottom: 15px;
  color: var(--primary);
}

.tech-item ul {
  list-style: none;
  text-align: left;
}

.tech-item li {
  padding: 8px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.tech-item li:last-child {
  border-bottom: none;
}

/* ========================
   Contact Page
   ======================== */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-wrapper {
  background: var(--surface);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.contact-form-wrapper h2 {
  margin-bottom: 30px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-info h2 {
  margin-bottom: 30px;
}

.info-card {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.info-icon {
  font-size: 2rem;
}

.info-card h4 {
  margin-bottom: 5px;
}

.info-card p {
  color: var(--text-muted);
}

.success-message {
  text-align: center;
  padding: 60px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.success-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
}

.success-message h2 {
  margin-bottom: 15px;
}

.success-message p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ========================
   Error Page
   ======================== */
.error-page {
  padding: 100px 0;
  text-align: center;
}

.error-content {
  max-width: 500px;
  margin: 0 auto;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 20px;
}

.error-content h1 {
  margin-bottom: 15px;
}

.error-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ========================
   Footer
   ======================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.footer-section p {
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-muted);
}

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

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.api-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
}

.live-stats {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-visual {
    order: 2;
  }
  
  .hero-subtitle {
    margin: 0 auto 30px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .tech-stack {
    justify-content: center;
  }
  
  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .tech-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .stats-bar .container {
    grid-template-columns: 1fr;
  }
  
  .products-grid,
  .users-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .filters-form {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
}
