/* Ainary Design System — shared/styles.css */

/* Design System Variables */
:root {
  /* Backgrounds */
  --bg-page:          #08080c;
  --bg-surface:       #111116;
  --bg-surface-hover: #18181f;
  --bg-input:         #0e0e13;
  
  /* Borders */
  --border-default:   rgba(255, 255, 255, 0.06);
  --border-hover:     rgba(255, 255, 255, 0.10);
  --border-active:    rgba(200, 170, 80, 0.30);
  
  /* Text */
  --text-primary:     #ededf0;
  --text-secondary:   #8b8b95;
  --text-muted:       #55555e;
  
  /* Primary Accent - Gold */
  --accent:           #c8aa50;
  --accent-hover:     #d4b85c;
  --accent-muted:     rgba(200, 170, 80, 0.15);
  --accent-border:    rgba(200, 170, 80, 0.25);
  
  /* Special Accent - Gold */
  --gold:             #c8aa50;
  --gold-hover:       #d4b85c;
  --gold-muted:       rgba(200, 170, 80, 0.12);
  --gold-border:      rgba(200, 170, 80, 0.20);
  
  /* Fonts */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-section: 120px;
}

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

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  height: 56px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

/* Buttons */
.btn-primary {
  background: #c8aa50;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #d4b85c;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}

/* Section Title */
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 64px;
  color: var(--text-primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-default);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px;
  margin-bottom: 64px;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-default);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Logo Glow Effect */
.logo-dot-wrap { position:relative; display:inline-block; width:10px; height:10px; margin-right:6px; vertical-align:middle; }
.logo-dot { width:10px; height:10px; border-radius:50%; background:#c8aa50; position:relative; z-index:3; display:block; }
.logo-dot-ring1 { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:18px; height:18px; border-radius:50%; background:rgba(200,170,80,0.20); z-index:2; }
.logo-dot-ring2 { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:26px; height:26px; border-radius:50%; background:rgba(200,170,80,0.05); z-index:1; animation: logo-pulse 3s ease-in-out infinite; }

@keyframes logo-pulse {
  0%, 100% { opacity:1; transform:translate(-50%,-50%) scale(1); }
  50% { opacity:0.5; transform:translate(-50%,-50%) scale(1.3); }
}

/* CTA Arrow Shine */
@keyframes arrow-shine {
  0%, 85%, 100% { opacity: 0.7; }
  90% { opacity: 1; text-shadow: 0 0 6px currentColor; }
}
.cta-arrow { display:inline-block; animation: arrow-shine 4s ease-in-out infinite; }

/* Pulse Dot Animation */
@keyframes pulse-dot {
  0%, 100% { opacity:0.4; }
  50% { opacity:1; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Badge */
.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--gold-muted);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* Tool Card */
.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s ease;
}

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

.tool-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.tool-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-link {
  color: #c8aa50;
  font-size: 0.875rem;
  text-decoration: none;
  transition: text-decoration 0.15s ease;
}

.tool-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop defaults — hide mobile elements */
.hamburger {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav-auth {
    display: none !important;
  }
  
  /* Hamburger button */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }
  .hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
  }
  
  /* Mobile menu overlay */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 8, 12, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 32px 24px;
    flex-direction: column;
    gap: 24px;
  }
  .mobile-menu.open {
    display: flex;
  }
  .mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-menu a:hover {
    color: var(--text-primary);
  }
  .mobile-menu .btn-primary {
    display: inline-block;
    text-align: center;
    margin-top: 8px;
    color: #fff !important;
    border-bottom: none;
  }
  
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }
  
  .section {
    padding: 48px 0 !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Subtle Pulse (CTA) */
@keyframes subtle-pulse { 0%,100% { opacity:1; } 50% { opacity:0.85; } }

/* Blockquote — consistent across all pages */
blockquote {
  border-left: 2px solid var(--accent, #c8aa50);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary, #8b8b95);
  line-height: 1.8;
  font-size: 1rem;
}
