/* --------------------------------------------------------------------------
   Self-hosted Fonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/merriweather-900-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format('woff2');
}

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --color-brand: #EB6200;
  --color-brand-hover: #d45800;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-bg: #fff;
  --color-bg-alt: #f7f7f7;
  --color-bg-dark: #1a2332;
  --color-text-on-dark: #f0f0f0;

  /* Type Scale - 1.25 ratio */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.563rem;    /* 25px */
  --text-2xl: 1.953rem;   /* 31px */
  --text-3xl: 2.441rem;   /* 39px */
  --text-4xl: 3.052rem;   /* 49px */

  /* Font Families */
  --font-logo: 'Merriweather', Georgia, serif;
  --font-heading: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.6;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --container-max: 1100px;
  --container-padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
}

p {
  margin: 0 0 var(--space-sm);
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  color: var(--color-brand-hover);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-xl);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.emphasis {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--space-3xl) 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  padding: var(--space-md) 0;
  background: var(--color-bg);
  border-bottom: 1px solid #eee;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-logo);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--color-brand);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-brand);
}

.site-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.site-nav a {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.site-nav a:hover {
  color: var(--color-brand);
}

.site-nav .btn-primary {
  color: #fff;
  font-weight: var(--weight-semibold);
}

.site-nav .btn-primary:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-primary {
  background-color: var(--color-brand);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-brand-hover);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.btn-secondary:hover {
  background-color: var(--color-brand);
  color: #fff;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: var(--color-bg-alt);
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

.hero .lead {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* --------------------------------------------------------------------------
   Problem Section
   -------------------------------------------------------------------------- */

.problem {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.problem h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.pain-points {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.pain-points li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
}

.pain-points li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
}

.problem .emphasis {
  text-align: center;
  color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   Solution Section
   -------------------------------------------------------------------------- */

.solution h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.solution-item {
  padding: var(--space-md);
}

.solution-item h3 {
  color: var(--color-brand);
  margin-bottom: var(--space-xs);
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */

.features {
  background: var(--color-bg-alt);
}

.features h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature {
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: 4px;
}

.feature h3 {
  margin-bottom: var(--space-xs);
}

.feature p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */

.about h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */

.cta {
  text-align: center;
  background: var(--color-bg-alt);
}

.cta h2 {
  margin-bottom: var(--space-sm);
}

.cta > .container > p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

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

.footer-brand .logo {
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  color: var(--color-text-on-dark);
  font-weight: var(--weight-semibold);
  opacity: 0.8;
}

.footer-contact p {
  margin-bottom: var(--space-xs);
  opacity: 0.8;
}

.footer-contact a {
  color: var(--color-text-on-dark);
}

.footer-contact a:hover {
  color: var(--color-brand);
}

.copyright {
  font-size: var(--text-sm);
  opacity: 0.6;
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  :root {
    --text-4xl: 2.441rem;  /* Scale down hero on mobile */
    --text-3xl: 1.953rem;
  }

  .site-header .container {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .site-nav {
    gap: var(--space-sm);
  }

  .site-nav .btn-primary {
    background-color: transparent;
    border-color: var(--color-brand);
    color: var(--color-brand);
  }

  .site-nav .btn-primary:hover {
    background-color: var(--color-brand);
    color: #fff;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-options {
    flex-direction: column;
    align-items: center;
  }
}
