/* ============================================
   HermesCentral.ai — Marketplace Storefront
   Design system for HermesCentral
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --bg-card-hover: #1f2847;
  --gold: #d4a844;
  --gold-light: #e8c96a;
  --gold-dim: #a07d30;
  --white: #f0f0f0;
  --white-dim: #b0b8c8;
  --text-body: #c8cdd8;
  --accent-blue: #4a9eff;
  --accent-green: #4ade80;
  --accent-red: #ff6b6b;
  --accent-purple: #a78bfa;
  --border: rgba(212, 168, 68, 0.15);
  --border-strong: rgba(212, 168, 68, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 40px rgba(212, 168, 68, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--gold-light);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.gold { color: var(--gold); }
.dim { color: var(--white-dim); }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav-logo .nav-logo-mark {
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--white-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--bg-primary) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--gold-light);
  color: var(--bg-primary) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 120px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(212, 168, 68, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(74, 158, 255, 0.03) 0%, transparent 50%);
  animation: heroGlow 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3%, -3%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 168, 68, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--white-dim);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 68, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:active { transform: scale(0.97); }
.btn-primary:active { background: var(--gold-dark, #b8942e); }

/* ============================================
   Page Header (for inner pages)
   ============================================ */
.page-header {
  padding: 136px 0 76px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 68, 0.06) 0%, transparent 60%);
}

.page-header h1 {
  position: relative;
}

.page-header .subtitle {
  position: relative;
  color: var(--white-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 16px auto 0;
}

/* ============================================
   Product Cards — Marketplace Grid
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.product-card.featured {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-gold);
}

.product-header {
  padding: 24px 24px 0;
  min-width: 0;
}

.product-header .product-badge {
  position: static !important;
  display: inline-flex !important;
  margin-bottom: 16px;
  align-self: flex-start;
}

.support-highlight {
  border-color: var(--border-strong) !important;
  background: var(--bg-card) !important;
  box-shadow: 0 0 0 1px rgba(212, 168, 68, 0.08), 0 0 28px rgba(212, 168, 68, 0.14), 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

.support-highlight:hover {
  border-color: var(--gold-dim) !important;
  box-shadow: 0 0 0 1px rgba(212, 168, 68, 0.12), 0 0 34px rgba(212, 168, 68, 0.18), 0 22px 48px rgba(0, 0, 0, 0.34) !important;
}


.product-card .product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-card .product-badge.coming-soon {
  background: var(--accent-blue);
  color: var(--white);
}

.product-card .product-badge.popular {
  background: var(--gold);
}

.product-card .product-badge.new {
  background: var(--accent-green);
  color: var(--bg-primary);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 168, 68, 0.06) 0%, transparent 70%);
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.product-card .product-tagline {
  color: var(--gold-dim);
  font-style: italic;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.product-card .product-desc {
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.product-meta > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.product-meta .btn {
  min-height: 40px;
}

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

.product-price .price-period {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--white-dim);
}

.product-price .price-tbd {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-dim);
}

/* ============================================
   Category Pills / Filters
   ============================================ */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(212, 168, 68, 0.1);
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail-hero {
  padding: 120px 0 76px;
  position: relative;
}

.product-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(212, 168, 68, 0.06) 0%, transparent 60%);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}

.product-detail-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 168, 68, 0.08) 0%, transparent 70%);
}

.product-detail-info .breadcrumb {
  font-size: 0.8rem;
  color: var(--white-dim);
  margin-bottom: 16px;
}

.product-detail-info .breadcrumb a {
  color: var(--white-dim);
}
.product-detail-info .breadcrumb a:hover {
  color: var(--gold);
}

.product-detail-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.product-detail-info .tagline {
  color: var(--gold);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.product-detail-info .description {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.product-detail-info .price-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.price-box .price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}

.price-box .btn {
  width: 100%;
  max-width: 100%;
}

.price-box .price-note {
  color: var(--white-dim);
  font-size: 0.85rem;
  margin-top: 4px;
}

.feature-list {
  list-style: none;
  margin: 24px 0;
}

.feature-list li {
  padding: 8px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   Tabs (for product detail sections)
   ============================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 14px 24px;
  background: none;
  border: none;
  color: var(--white-dim);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--white);
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   Detection Example Cards
   ============================================ */
.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
}

.example-card .example-header {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
}

.example-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-body);
}

/* ============================================
   Stats Row
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

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

.stat-item .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 8px;
}

/* ============================================
   Category Section (Homepage)
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.category-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.category-card .cat-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.category-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.category-card p {
  color: var(--white-dim);
  font-size: 0.85rem;
}

.category-card .cat-count {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Trust/Social Proof
   ============================================ */
.trust-bar {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 32px 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white-dim);
  font-size: 0.9rem;
}

.trust-item .trust-icon {
  font-size: 1.3rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--gold);
  cursor: pointer;
}

.faq-item p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================
   About Page
   ============================================ */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin: 28px 0;
  background: rgba(212, 168, 68, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card p {
  color: var(--white-dim);
  font-size: 0.9rem;
}

/* ============================================
   Layers Table
   ============================================ */
.layers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
}

.layers-table th {
  background: var(--bg-card);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-strong);
}

.layers-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.layers-table tr:hover td {
  background: rgba(212, 168, 68, 0.03);
}

.layers-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.layers-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, rgba(212, 168, 68, 0.08) 0%, rgba(74, 158, 255, 0.04) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 40px 0;
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--white-dim);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
  max-width: 520px;
  margin: 32px auto 0;
}

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

.form-group label {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

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

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

/* Email signup */
.signup-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin: 40px 0;
}

.signup-box h3 { margin-bottom: 8px; }

.signup-box p {
  color: var(--white-dim);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.signup-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.signup-form input:focus { border-color: var(--gold); }
.signup-form input::placeholder { color: var(--white-dim); }

@media (max-width: 500px) {
  .signup-form { flex-direction: column; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 16px;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--white-dim);
  font-size: 0.9rem;
}
.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-col p {
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-bottom p {
  color: var(--white-dim);
  font-size: 0.8rem;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 1;
  transform: none;
}

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================
   Skip to Content (Accessibility)
   ============================================ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg-primary);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* ============================================
   Focus Visible (Accessibility)
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button:focus-visible,
.btn:focus-visible,
.filter-pill:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(212, 168, 68, 0.15);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   Nav Scroll Effect
   ============================================ */
.nav.scrolled {
  background: rgba(10, 14, 26, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(212, 168, 68, 0.25);
}

.nav.scrolled .nav-inner {
  height: 56px;
}

/* ============================================
   Mobile Nav Animation
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 0 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.3s ease;
  }

  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    padding: 20px 24px;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.open li:nth-child(6) { transition-delay: 0.3s; }

  .nav-links a {
    display: block;
    padding: 10px 0;
  }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 68, 0.25);
}

/* ============================================
   Prefers Reduced Motion (Accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .back-to-top {
    transition: none;
  }
}

/* ============================================
   Prefers Color Scheme — High Contrast
   ============================================ */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(212, 168, 68, 0.35);
    --border-strong: rgba(212, 168, 68, 0.55);
    --white-dim: #d0d8e8;
    --text-body: #dce0ea;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-sm { padding: 48px 0; }
  .hero { min-height: auto; padding: 104px 0 68px; }
  .page-header { padding: 118px 0 60px; }
  .product-detail-hero { padding: 108px 0 64px; }
  .cta-banner { padding: 32px 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .products-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .product-meta { align-items: stretch; }
  .product-meta > div:last-child { width: 100%; justify-content: stretch; }
  .product-meta > div:last-child .btn { flex: 1 1 140px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-btn { white-space: nowrap; }
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* Mobile storefront hardening */
@media (max-width: 768px) {
  body,
  .nav,
  .hero,
  .section,
  .section-sm,
  .page-header,
  .footer {
    max-width: 100vw;
  }

  .nav-inner {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-logo {
    min-width: 0;
  }

  .nav-logo span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .container,
  .hero-content,
  .text-center,
  .products-grid,
  .product-card,
  .sql-spotlight-grid,
  .sql-flow,
  .sql-flow-node {
    min-width: 0;
  }

  .hero-content,
  .text-center,
  .products-grid,
  .sql-spotlight-grid,
  .sql-flow,
  .product-card,
  .cta-banner,
  .promise-card,
  div[style*="max-width: 900px"],
  div[style*="max-width: 820px"],
  div[style*="max-width: 720px"],
  p[style*="max-width: 720px"],
  p[style*="max-width: 680px"],
  p[style*="max-width: 640px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
  }

  .hero-actions .btn,
  .btn-lg {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    white-space: normal;
  }

  div[style*="display: flex"][style*="flex-wrap: wrap"][style*="max-width: 900px"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  div[style*="display: flex"][style*="flex-wrap: wrap"][style*="max-width: 900px"] > div {
    min-width: 0 !important;
    width: 100% !important;
    border-right: 1px solid var(--border) !important;
  }

  div[style*="display: flex"][style*="flex-wrap: wrap"][style*="max-width: 900px"] > div:nth-child(2n) {
    border-right: 0 !important;
  }

  .products-grid {
    max-width: none;
  }

  .sql-flow {
    padding: 20px;
  }

  .sql-table-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 { font-size: 2.15rem !important; }
  h2 { font-size: 1.55rem; }

  div[style*="display: flex"][style*="flex-wrap: wrap"][style*="max-width: 900px"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="display: flex"][style*="flex-wrap: wrap"][style*="max-width: 900px"] > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
  }

  div[style*="display: flex"][style*="flex-wrap: wrap"][style*="max-width: 900px"] > div:last-child {
    border-bottom: 0;
  }

  .sql-table-stack {
    grid-template-columns: 1fr;
  }
}


.free-updates-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 255, 176, 0.28);
  background: rgba(74, 222, 128, 0.08);
  color: var(--accent-green);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.free-updates-note {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(99, 179, 255, 0.22);
  background: linear-gradient(180deg, rgba(20, 40, 70, 0.92), rgba(12, 24, 43, 0.98));
}

.free-updates-note h3,
.promise-card h3 {
  margin-bottom: 10px;
}

.free-updates-note p,
.promise-card p {
  margin: 0;
  color: var(--white-dim);
  line-height: 1.7;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.promise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}


/* SQL Database single-product spotlight */
.nav-logo-mark { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid var(--gold-dim); border-radius:10px; color:var(--gold); font-weight:900; letter-spacing:-0.06em; background:rgba(212,168,68,0.08); }
.sql-spotlight-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr); gap:32px; align-items:center; }
.sql-single-card { max-width:620px; margin:0 auto; border-color:var(--gold); border-width:2px; background:linear-gradient(135deg,var(--bg-card),rgba(212,168,68,.08)); }
.sql-flow { position:relative; padding:28px; border:1px solid var(--border-strong); border-radius:var(--radius-lg); background:radial-gradient(circle at 20% 20%,rgba(212,168,68,.12),transparent 35%),var(--bg-card); box-shadow:var(--shadow-gold); overflow:hidden; }
.sql-flow::before { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 0%,rgba(212,168,68,.08) 48%,transparent 56%); transform:translateX(-100%); animation:sqlScan 4s ease-in-out infinite; }
.sql-flow-title,.sql-flow-row,.sql-table-stack { position:relative; z-index:1; }
.sql-flow-title { margin-bottom:18px; }
.sql-flow-title h3 { margin-bottom:6px; }
.sql-flow-row { display:grid; grid-template-columns:1fr auto 1fr; gap:12px; align-items:center; margin:12px 0; }
.sql-flow-node { padding:14px 16px; border:1px solid var(--border); border-radius:var(--radius-sm); background:rgba(10,14,26,.72); color:var(--white); font-weight:700; }
.sql-flow-node span { display:block; margin-top:3px; color:var(--white-dim); font-size:.8rem; font-weight:500; }
.sql-flow-arrow { color:var(--gold); font-size:1.4rem; animation:sqlPulse 1.8s ease-in-out infinite; }
.sql-table-stack { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:18px; }
.sql-table-stack div { padding:10px 8px; text-align:center; border-radius:8px; background:rgba(212,168,68,.1); border:1px solid rgba(212,168,68,.18); color:var(--gold-light); font-size:.82rem; font-weight:700; }
@keyframes sqlScan { 0%,45%{transform:translateX(-100%)} 75%,100%{transform:translateX(100%)} }
@keyframes sqlPulse { 0%,100%{opacity:.45; transform:translateX(0)} 50%{opacity:1; transform:translateX(3px)} }
@media (max-width:860px){ .sql-spotlight-grid{grid-template-columns:1fr;} .sql-flow-row{grid-template-columns:1fr;} .sql-flow-arrow{transform:rotate(90deg); text-align:center;} .sql-table-stack{grid-template-columns:repeat(2,1fr);} }

/* Single SQL product card refinement */
.sql-single-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  overflow: hidden;
}
.sql-single-card .product-image {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,168,68,0.07);
}
.sql-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.sql-feature-pills span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--white-dim);
  font-size: 0.82rem;
  background: rgba(10,14,26,0.35);
}
@media (max-width: 680px) {
  .sql-single-card { grid-template-columns: 1fr; }
  .sql-single-card .product-image { min-height: 160px; }
}
@media (max-width: 1100px) {
  div[style*="grid-template-columns: repeat(4, minmax(0, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  div[style*="grid-template-columns: repeat(4, minmax(0, 1fr))"] { grid-template-columns: 1fr !important; }
}

/* SQL Agent mobile QA hardening — 2026-05-10 */
@media (max-width: 520px) {
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  h1, h2, h3, p, li, a, strong {
    overflow-wrap: anywhere;
  }
  .btn,
  .btn-lg,
  a[style*="padding:16px 28px"] {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  main[style*="max-width:640px"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px 20px !important;
  }
  div[style*="display:flex"][style*="gap:14px"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  div[style*="display: flex"][style*="align-items: flex-start"] {
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  div[style*="display: flex"][style*="align-items: flex-start"] > div:last-child {
    min-width: 0 !important;
  }
}

@media (max-width: 760px) {
  .autonomy-home-card {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .autonomy-home-card > div:last-child {
    justify-content: center !important;
  }
}

/* Product catalog mobile QA hardening — 2026-05-16 */
@media (max-width: 760px) {
  body.products-page .container,
  body.products-page .hero-content,
  body.products-page .text-center,
  body.products-page .products-grid,
  body.products-page .product-card,
  body.products-page .cta-banner {
    width: 100% !important;
    max-width: min(326px, calc(100vw - 64px)) !important;
    min-width: 0 !important;
    margin-left: 32px !important;
    margin-right: auto !important;
  }

  body.products-page .section,
  body.products-page .section-sm,
  body.products-page .hero {
    overflow-x: hidden;
  }

  body.products-page .products-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px;
    margin-left: 32px !important;
    margin-right: auto !important;
  }

  body.products-page .products-grid .product-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: min(326px, calc(100vw - 64px)) !important;
  }

  body.products-page .product-card .product-badge {
    position: static;
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 14px;
    white-space: normal;
  }

  body.products-page .product-header,
  body.products-page .product-body {
    padding-left: 20px !important;
    padding-right: 20px !important;
    min-width: 0 !important;
  }

  body.products-page .product-body div[style*="display: flex"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  body.products-page .btn,
  body.products-page .btn-lg {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  body.products-page .hero-subtitle,
  body.products-page .product-desc,
  body.products-page p,
  body.products-page h1,
  body.products-page h2,
  body.products-page h3 {
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }

  body.products-page h1 {
    font-size: 2.05rem !important;
  }
}

@media (max-width: 430px) {
  body.products-page .container,
  body.products-page .hero-content,
  body.products-page .text-center,
  body.products-page .products-grid,
  body.products-page .product-card,
  body.products-page .cta-banner {
    max-width: min(300px, calc(100vw - 64px)) !important;
  }

  body.products-page .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Hermes Autonomy Commands mobile QA hardening — 2026-05-16 */
@media (max-width: 760px) {
  body.autonomy-page .container,
  body.autonomy-page .hero-content,
  body.autonomy-page .text-center,
  body.autonomy-page .products-grid,
  body.autonomy-page .product-card,
  body.autonomy-page .cta-banner {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.autonomy-page .section,
  body.autonomy-page .section-sm,
  body.autonomy-page .hero {
    overflow-x: hidden;
  }

  body.autonomy-page .hero-subtitle,
  body.autonomy-page .product-desc,
  body.autonomy-page p,
  body.autonomy-page h1,
  body.autonomy-page h2,
  body.autonomy-page h3 {
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  body.autonomy-page .hero-actions {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: stretch;
  }

  body.autonomy-page .hero-actions .btn,
  body.autonomy-page .cta-banner .btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.autonomy-page .products-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 520px) {
  body.autonomy-page .container,
  body.autonomy-page .hero-content,
  body.autonomy-page .text-center,
  body.autonomy-page .products-grid,
  body.autonomy-page .product-card,
  body.autonomy-page .cta-banner,
  body.autonomy-page .hero-actions {
    max-width: 260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.autonomy-page .hero-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}
