/* HoneyPi.io - Main Stylesheet */
/* Part of the iHBV (Invoke HoneyBadger Vanguard) Ecosystem */

:root {
  --gold: #d4af37;
  --gold-light: #f4d03f;
  --gold-dark: #c5a028;
  --bg: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-hover: #1a1a1a;
  --fg: #e8e8e8;
  --fg-muted: #999;
  --border: #222;
  --border-hover: #333;
  --focus-ring: rgba(212, 175, 55, 0.5);
  --transition-speed: 0.2s;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--gold-light);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Layout */
.hero {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  margin: 4rem 0;
}

/* Branding */
.brand {
  color: var(--gold);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--gold);
  border-radius: 12px;
  text-decoration: none;
  color: var(--gold);
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 175, 55, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--bg-card);
  transition: all var(--transition-speed) ease;
  color: var(--fg);
  display: block;
}

.card:hover {
  border-color: var(--gold);
  background: var(--bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.1);
}

.card h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.card li {
  padding: 0.25rem 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.card li::before {
  content: '▸ ';
  color: var(--gold);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Text Utilities */
.small {
  opacity: 0.7;
  font-size: 0.9rem;
}

.muted {
  color: var(--fg-muted);
}

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

/* Products Section */
.products {
  padding: 3rem 0;
}

.product-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* Features Section */
.features {
  padding: 3rem 0;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Skip to Content (Accessibility) */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* Focus Indicators */
*:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  .card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .btn,
  .card {
    border-color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border: #fff;
    --gold: #ffd700;
  }
}

/* Dark Mode (Explicit) */
@media (prefers-color-scheme: dark) {
  /* Already optimized for dark mode */
}
