/**
 * Crownstone Marketing Site - Shared Styles
 *
 * Common styles for all crownstone.io marketing pages.
 * See docs/marketing/BRAND_DESIGN_GUIDE.md for the full design system.
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Brand */
  --gold: #C9A962;
  --gold-light: #D4B978;
  --gold-dark: #B8984F;

  /* Backgrounds */
  --bg-primary: #1A2B38;
  --bg-secondary: #223444;
  --bg-tertiary: #2A3E4E;
  --bg-hover: #2E4A5E;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #8A9BAA;
  --text-muted: #5A6B7A;

  /* Status */
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
  --info: #2196F3;

  /* Lens Questions */
  --q1-color: #C9A962;
  --q2-color: #6BA3BE;
  --q3-color: #BE6B8A;
  --q4-color: #8A6BBE;
  --q5-color: #6BBE8A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(26, 43, 56, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-tertiary);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background-color: rgba(26, 43, 56, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .company {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-text .tagline {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  display: none;
  background-color: var(--gold);
  color: var(--bg-primary);
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.nav-cta:hover {
  background-color: var(--gold-light);
  transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--gold);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--bg-tertiary);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

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

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-tertiary);
}

/* ============================================
   Hero
   ============================================ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.2);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--gold);
  color: var(--bg-primary);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--gold-light);
  gap: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--text-muted);
  color: var(--text-secondary);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ============================================
   Section Layout
   ============================================ */
.section {
  padding: 6rem 1.5rem;
}

.section-alt {
  padding: 6rem 1.5rem;
  background-color: var(--bg-secondary);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--bg-tertiary);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--bg-tertiary);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-social:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-social i {
  width: 18px;
  height: 18px;
}

/* ============================================
   Animations
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--gold);
  color: var(--bg-primary);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
