/* ==========================================================================
   FirePortal — landing page styles
   ========================================================================== */

:root {
  --bg: #121417;
  --bg-raised: #191c20;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f5f6f7;
  --text-muted: #a7adb6;
  --fire: #d32538;
  --fire-dark: #8f1622;
  --fire-light: #ff5a63;
  --amber: #f2b705;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--fire);
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(211, 37, 56, 0.6);
}

.btn--primary:hover {
  background: var(--fire-light);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--panel-border);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--panel);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 23, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.site-header img {
  height: 34px;
  width: auto;
}

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

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 20, 23, 0.55) 0%, rgba(18, 20, 23, 0.78) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(18, 20, 23, 0.6) 0%, rgba(18, 20, 23, 0.15) 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-block: 4rem 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--fire);
  box-shadow: 0 0 0 4px rgba(211, 37, 56, 0.25);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

section {
  padding-block: 5rem;
}

.section-head {
  max-width: 620px;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.features {
  background: var(--bg-raised);
  border-block: 1px solid var(--panel-border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(211, 37, 56, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(211, 37, 56, 0.15);
  color: var(--fire-light);
  margin-bottom: 1.1rem;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */

.story .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--panel-border);
}

.story__body p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.story__body p:last-child {
  margin-bottom: 0;
}

.story__body strong {
  color: var(--text);
}

@media (max-width: 860px) {
  .story .container {
    grid-template-columns: 1fr;
  }

  .story__media {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 780px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.9rem;
}

/* --------------------------------------------------------------------------
   Contact / CTA
   -------------------------------------------------------------------------- */

.cta {
  background: linear-gradient(135deg, var(--fire) 0%, var(--fire-dark) 100%);
}

.cta .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.cta__email {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.cta__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
}

.cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

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

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--panel-border);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer strong {
  color: var(--text);
}

@media (max-width: 600px) {
  section {
    padding-block: 3.5rem;
  }

  .hero__content {
    padding-block: 3rem 3.5rem;
  }
}
