/* -----------------------------
   Base reset & typography
----------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: #111827;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
}

@media (max-width: 600px) {
  h2 {
    font-size: 1.5rem;
  }
}

p {
  max-width: 720px;
}

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

.container {
  max-width: 960px;
  padding: 1.25rem;
  margin: 0 auto;
}

section {
  padding: 3rem 0;
}

section.alt {
  background: #f1f5f9;
}

section.alt h3 {
  margin-top: 0;
}

/* -----------------------------
   Header / Navigation (dark)
----------------------------- */

.site-header {
  background: #0f172a; /* deep slate / near-black */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  margin: 0;
}

.site-logo a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  font-weight: 500;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  color: #ffffff;
}

/* Hero background image */
.hero-image {
  background-image: url("/hero-bg.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

/* Lightening overlay */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.35) 50%,
    rgba(15, 23, 42, 0.15) 100%
  );
  z-index: 0;
}

/* Ensure text stays on top */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 680px;
}

.hero h2 {
  color: #ffffff;
}

.hero h2 {
  max-width: 720px;
  letter-spacing: -0.01em;
}

.hero p {
  color: #e5e7eb;
}

/* Inner page hero (shorter) */
.hero-inner {
  padding: 2.5rem 0 2rem;
}

.hero-inner h2 {
  margin: 0;
  font-size: 1.4rem;
}

/* -----------------------------
   Cards
----------------------------- */

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* -----------------------------
   Feature blocks
----------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.features h4 {
  margin-bottom: 0.5rem;
}

.feature {
  text-align: left;
}

.feature .icon {
  color: #334155;
  margin-bottom: 1rem;
}

/* -----------------------------
   Call to action
----------------------------- */

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: #020617;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.cta:hover {
  background: #1f2933;
}

.cta.secondary {
  background: transparent;
  color: #111827;
  border: 1px solid #d1d5db;
  margin-left: 1rem;
}

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

footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.small {
  font-size: 0.85rem;
  color: #6b7280;
}

/* -----------------------------
   Responsive hero adjustments
----------------------------- */

/* Tablets and smaller */
@media (max-width: 900px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-image {
    background-position: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}

/* -----------------------------
   Mobile hero simplification
----------------------------- */

@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-image {
    background-image: none;
  }

  .hero-image::before {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.85) 0%,
      rgba(15, 23, 42, 0.85) 100%
    );
  }
}