/* ============================================
   BearTown AI — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,800;9..144,900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --black: #000000;
  --black-soft: #161616;
  --black-elevated: #1F1F1F;
  --red: #C8102E;
  --red-bright: #E31837;
  --gold: #C49A2A;
  --gold-bright: #D4A820;
  --cream: #F5F1E8;
  --white: #FFFFFF;
  --text-muted: rgba(245, 241, 232, 0.65);
  --text-dim: rgba(245, 241, 232, 0.45);
  --border: rgba(245, 241, 232, 0.12);
  --border-strong: rgba(245, 241, 232, 0.22);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.brand-logo {
  width: 38px;
  height: 38px;
  color: var(--red);
  flex-shrink: 0;
}

.brand-name { line-height: 1; }
.brand-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.brand-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1;
}
@media (max-width: 600px) {
  .brand-tagline { display: none; }
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: 0.2s var(--ease);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--black-soft);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem var(--gutter);
    gap: 1.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { font-size: 1.05rem; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(200, 16, 46, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================
   Typography
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cream);
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1rem;
}
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 60ch;
}

p { color: var(--text-muted); }

/* ============================================
   Sections
   ============================================ */
section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; z-index: 2; }

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 720px;
}
.section-head .eyebrow { margin-bottom: 1.25rem; }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-tagline::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 { margin-bottom: 1.75rem; }

.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}

.hero-visual-logo {
  width: 100%;
  height: 100%;
  color: var(--red);
  filter: drop-shadow(0 30px 60px rgba(200, 16, 46, 0.35));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 3%;
  left: 10%;
  right: 10%;
  bottom: 17%;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-visual::after {
  content: '';
  position: absolute;
  top: -7%;
  left: 0;
  right: 0;
  bottom: 7%;
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: spin 60s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Stats Strip
   ============================================ */
.stats-strip {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============================================
   Cards / Service Tiles
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  padding: 2.25rem;
  position: relative;
  transition: 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.4s var(--ease-out);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::before { width: 100%; }

.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; }

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: 0.3s var(--ease);
}
.pricing-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }

.pricing-card.featured {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.08) 0%, var(--black-soft) 60%);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.pricing-price-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.pricing-features li {
  padding: 0.55rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   Testimonial / Quote callout
   ============================================ */
.callout {
  background: var(--black-soft);
  border-left: 3px solid var(--red);
  padding: clamp(2rem, 4vw, 3rem);
  margin: 2rem 0;
}
.callout-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 1rem;
}

/* ============================================
   Two-column content
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.prose p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.7; }
.prose p strong { color: var(--cream); font-weight: 600; }

/* ============================================
   Contact Page Specific
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: 0.2s var(--ease);
}
.contact-method:last-child { border-bottom: none; }
.contact-method:hover { padding-left: 0.5rem; }

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  word-break: break-word;
}
.contact-value:hover { color: var(--gold); }

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--black-soft) 0%, var(--black) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(200, 16, 46, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content { max-width: 720px; margin: 0 auto; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.footer-bottom .practice-master-win {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================
   Page hero (smaller, for inner pages)
   ============================================ */
.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  margin-bottom: 1.25rem;
}

/* ============================================
   Animations on load
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}
.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }
.fade-up.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Utility
   ============================================ */
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.divider {
  height: 1px;
  background: var(--border);
  margin: 4rem 0;
}
