/* MadPixel Theme — main.css
   Tokens mirror the React design system (HSL).
*/
:root {
  --background: 222 47% 11%;
  --foreground: 210 40% 98%;
  --card: 222 47% 14%;
  --primary: 217 91% 60%;
  --primary-foreground: 222 47% 11%;
  --secondary: 217 33% 17%;
  --muted: 217 33% 20%;
  --muted-foreground: 215 20% 55%;
  --accent: 173 58% 39%;
  --border: 217 33% 22%;
  --radius: 0.5rem;
  --gradient-hero: linear-gradient(135deg, hsl(217 91% 60%) 0%, hsl(173 58% 39%) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 1rem; }
h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 600; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; color: hsl(var(--muted-foreground)); }
a { color: hsl(var(--primary)); text-decoration: none; transition: color .2s; }
a:hover { color: hsl(var(--accent)); }
img { max-width: 100%; height: auto; display: block; }

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

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gradient-hero); color: white; box-shadow: 0 10px 30px hsl(var(--primary) / .25); }
.btn-primary:hover { transform: translateY(-2px); color: white; }
.btn-outline { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.btn-outline:hover { background: hsl(var(--secondary)); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.25rem 0;
  background: hsl(var(--background) / .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / .5);
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: .5rem;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
}
.logo {max-height: 60px; width: auto;}
.logo-brand-text { display: flex; flex-direction: row; line-height: 1;}
.brand-text { display: flex; flex-direction: column; line-height: 1; margin-top: 10px;}
.brand-text strong { color: hsl(var(--foreground)); font-size: 1.05rem; }
.brand-text small { color: hsl(var(--muted-foreground)); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; margin-top: 3px; }

.primary-menu { display: none; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: hsl(var(--muted-foreground)); font-size: .9rem; }
.primary-menu a:hover { color: hsl(var(--foreground)); }
@media (min-width: 992px) { .primary-menu { display: flex; } .menu-toggle { display: none; } }

.menu-toggle {
  background: transparent; border: 0; color: hsl(var(--foreground));
  font-size: 1.5rem; cursor: pointer;
}

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 6rem; }
.hero-video { position: absolute; inset: 0; z-index: 0; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-video::after { content: ''; position: absolute; inset: 0; background: hsl(var(--background) / .82); }
.hero-inner { position: relative; z-index: 1; max-width: 1000px; padding: 4rem 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 2rem; color: hsl(var(--primary)); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 600; }
.eyebrow::before { content: ''; width: 3rem; height: 1px; background: hsl(var(--primary)); }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
.hero .lead { font-size: 1.15rem; max-width: 640px; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }

.hero-stats { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2.5rem; border-top: 1px solid hsl(var(--border)); }
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; gap: 1rem; align-items: flex-start; }
.stat-icon { width: 44px; height: 44px; border-radius: .5rem; background: hsl(var(--primary) / .12); display: flex; align-items: center; justify-content: center; color: hsl(var(--primary)); font-size: 1.25rem; flex-shrink: 0; }
.stat-num { font-size: 1.75rem; font-weight: 600; color: hsl(var(--foreground)); font-family: 'Playfair Display', serif; }
.stat-label { font-size: .85rem; color: hsl(var(--muted-foreground)); }

/* Section */
.section { padding: 6rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }

/* Cards grid */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: hsl(var(--primary) / .5); box-shadow: 0 20px 40px hsl(var(--primary) / .08); }
.card .icon { width: 48px; height: 48px; border-radius: .5rem; background: hsl(var(--primary) / .12); color: hsl(var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; }
.card h3 { font-size: 1.25rem; }

/* Marquee */
.marquee { overflow: hidden; padding: 2rem 0; border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card) / .4); }
.marquee-track { display: flex; gap: 4rem; white-space: nowrap; animation: madpixel-marquee 35s linear infinite; }
.marquee-track span { color: hsl(var(--muted-foreground)); font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.25rem; }
@keyframes madpixel-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Process */
.process-step { position: relative; padding: 2rem; }
.process-num { font-family: 'Playfair Display', serif; font-size: 3rem; color: hsl(var(--primary)); line-height: 1; margin-bottom: 1rem; }

/* Testimonials */
.testimonial { background: hsl(var(--card)); padding: 2.5rem; border-radius: var(--radius); border: 1px solid hsl(var(--border)); }
.testimonial blockquote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.15rem; color: hsl(var(--foreground)); margin: 0 0 1.5rem; }
.testimonial cite { font-style: normal; color: hsl(var(--muted-foreground)); font-size: .9rem; }
.testimonial cite strong { display: block; color: hsl(var(--foreground)); font-weight: 600; margin-bottom: 2px; }

/* CTA */
.cta-section { padding: 8rem 0; text-align: center; background: linear-gradient(180deg, hsl(var(--background)), hsl(var(--secondary) / .4)); }
.cta-section h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.cta-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 3rem; color: hsl(var(--muted-foreground)); }

/* Footer */
.site-footer { background: hsl(var(--card)); border-top: 1px solid hsl(var(--border)); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: hsl(var(--muted-foreground)); font-size: .85rem; }
.site-footer h4 { color: hsl(var(--foreground)); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .65rem; }
.site-footer ul a { color: hsl(var(--muted-foreground)); font-size: .9rem; }
.site-footer ul a:hover { color: hsl(var(--foreground)); }

/* Blog */
.content-area { padding: 8rem 0 4rem; }
.entry { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; }
.entry-title a { color: hsl(var(--foreground)); }
.entry-title a:hover { color: hsl(var(--primary)); }
.entry-meta { color: hsl(var(--muted-foreground)); font-size: .85rem; margin-bottom: 1rem; }

/* Mobile menu */
.mobile-menu { display: none; padding: 1.5rem 0 0; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a { color: hsl(var(--foreground)); }
@media (min-width: 992px) { .mobile-menu { display: none !important; } }

/* Skip link */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: hsl(var(--primary)); color: white; padding: .5rem 1rem; z-index: 100; }
