/* ==========================================================================
   NexiVIBE Brand Stylesheet
   AI-Enabled Creative Studio
   ========================================================================== */

:root {
  --bg-base: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #222233;
  --border: #2a2a3a;
  --border-light: #333346;
  --text: #e8e8ec;
  --text-muted: #8888a0;
  --text-dim: #55556a;
  --accent-primary: #8b5cf6;
  --accent-secondary: #22d3ee;
  --accent-warm: #f97316;
  --accent-gradient: linear-gradient(135deg, #8b5cf6, #22d3ee);
  --accent-gradient-warm: linear-gradient(135deg, #f97316, #f43f5e);
  --glow-primary: rgba(139, 92, 246, 0.15);
  --glow-secondary: rgba(34, 211, 238, 0.15);
  --nav-height: 64px;
  --max-width: 1140px;
  --radius: 8px;
  --radius-lg: 12px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #67e8f9; }

img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--accent-primary);
  background: var(--glow-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-badge a {
  color: var(--accent-secondary);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.05rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 0 24px var(--glow-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-warm {
  background: var(--accent-warm);
  color: #fff;
}

.btn-warm:hover {
  background: #ea580c;
  color: #fff;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.3);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Category Pillars (Landing Page)
   ========================================================================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.pillar:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-primary);
  color: var(--text);
}

.pillar-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.pillar p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Product Cards (Category Listing - Alternating Layout)
   ========================================================================== */

.product-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 24px var(--glow-primary);
}

.product-card:nth-child(even) {
  flex-direction: row-reverse;
}

.product-card-image {
  flex: 0 0 280px;
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-image .placeholder-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.product-card-content {
  flex: 1;
  min-width: 0;
}

.product-card-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.status-available { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-coming-soon { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.status-beta { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.status-in-development { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }

.product-card-content h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.product-card-content h2 a {
  color: var(--text);
  text-decoration: none;
}

.product-card-content h2 a:hover {
  color: var(--accent-secondary);
}

.product-card-tagline {
  color: var(--accent-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.product-card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-card .btn-group {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .product-card,
  .product-card:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  .product-card-image { flex: none; width: 100%; max-width: 320px; }
  .product-card .btn-group { justify-content: center; }
}

/* ==========================================================================
   Product Landing Page
   ========================================================================== */

.product-hero {
  padding: 60px 0 48px;
}

.product-hero-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.product-hero-image {
  flex: 0 0 400px;
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-content {
  flex: 1;
}

.product-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.product-hero-content .tagline {
  font-size: 1.15rem;
  color: var(--accent-secondary);
  margin-bottom: 20px;
}

.product-hero-content .description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.product-features {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.product-features h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .product-hero-inner {
    flex-direction: column;
  }
  .product-hero-image { flex: none; width: 100%; max-width: 480px; }
  .product-hero-content h1 { font-size: 1.8rem; }
}

/* ==========================================================================
   Staff Cards
   ========================================================================== */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.staff-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 24px var(--glow-primary);
}

.staff-card-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 3px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card-photo .placeholder {
  font-size: 3rem;
  opacity: 0.3;
}

.staff-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.staff-card .staff-title {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.staff-card .staff-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.staff-card .staff-links {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.staff-card .staff-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.staff-card .staff-links a:hover {
  color: var(--accent-secondary);
}

/* ==========================================================================
   Category Page Header
   ========================================================================== */

.page-header {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header .page-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-text a {
  color: var(--text-muted);
}

.footer-text a:hover {
  color: var(--accent-secondary);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Blog Integration (overrides for post/listing pages)
   ========================================================================== */

.blog-body {
  background: var(--bg-base);
  color: var(--text);
}

.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.blog-container h1 {
  color: var(--text);
  font-size: 2.2em;
  margin-bottom: 0.3em;
}

.blog-container .meta {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.blog-container .content {
  font-size: 1.1em;
  line-height: 1.75;
}

.blog-container .content h2 { margin-top: 1.8em; color: var(--text); }
.blog-container .content h3 { margin-top: 1.5em; color: var(--text-muted); }
.blog-container .content p { margin: 1em 0; }
.blog-container .content ul,
.blog-container .content ol { margin: 1em 0; padding-left: 2em; }
.blog-container .content li { margin: 0.5em 0; }

.blog-container .content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-card);
  font-style: italic;
  color: var(--text-muted);
}

.blog-container .content code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  color: var(--accent-secondary);
}

.blog-container .content pre {
  background: var(--bg-card);
  padding: 15px;
  border-radius: var(--radius);
  overflow-x: auto;
  border: 1px solid var(--border);
}

.blog-container .content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.blog-container .content img { border-radius: var(--radius); }

.blog-container .content a { color: var(--accent-secondary); }
.blog-container .content a:hover { color: #67e8f9; }

.blog-container .tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.blog-container .tag {
  display: inline-block;
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.85em;
  text-decoration: none;
  border: 1px solid var(--border);
}

.blog-container .tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Blog Listing */
.blog-container .post-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.blog-container .post-item:last-child { border-bottom: none; }
.blog-container .post-item h2 { margin: 0 0 8px 0; font-size: 1.4em; }
.blog-container .post-item h2 a { color: var(--accent-secondary); text-decoration: none; }
.blog-container .post-item h2 a:hover { text-decoration: underline; }
.blog-container .post-meta { color: var(--text-muted); font-size: 0.9em; margin-bottom: 10px; }
.blog-container .post-meta span { margin-right: 15px; }
.blog-container .post-excerpt { color: var(--text-muted); }
.blog-container .post-tags { margin-top: 10px; }
.blog-container .post-tags a {
  display: inline-block;
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 15px;
  margin-right: 5px;
  font-size: 0.8em;
  text-decoration: none;
  border: 1px solid var(--border);
}

.blog-container .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.blog-container .pagination a,
.blog-container .pagination span {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-muted);
}

.blog-container .pagination a:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
}

.blog-container .pagination .current {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.blog-container .pagination .disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}

/* Tag Index */
.blog-container .tag-section { margin-bottom: 40px; }
.blog-container .tag-section h2 {
  color: var(--text);
  font-size: 1.4em;
  margin-bottom: 15px;
  padding: 8px 15px;
  background: var(--bg-card);
  border-radius: var(--radius);
}
.blog-container .tag-section h2 .count { color: var(--text-muted); font-weight: normal; font-size: 0.8em; }
.blog-container .post-list { list-style: none; padding: 0; }
.blog-container .post-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.blog-container .post-list li:last-child { border-bottom: none; }
.blog-container .post-list a { color: var(--accent-secondary); }
.blog-container .post-date { color: var(--text-muted); font-size: 0.85em; margin-left: 10px; }

/* ==========================================================================
   Utility
   ========================================================================== */

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
