:root {
  --ink: #101316;
  --paper: #f7f3e8;
  --muted: #687078;
  --line: rgba(16, 19, 22, 0.14);
  --green: #1f8a57;
  --green-dark: #11613e;
  --amber: #f2b84b;
  --cyan: #2aa8c5;
  --stone: #d9d3c3;
  --shadow: 0 18px 50px rgba(16, 19, 22, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(247, 243, 232, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.socials {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--green-dark);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--amber);
  font-size: 13px;
}

.main-nav {
  justify-content: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.main-nav a,
.nav-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  color: #273039;
  background: transparent;
  cursor: pointer;
}

.main-nav a:hover,
.nav-button:hover {
  background: rgba(31, 138, 87, 0.12);
}

.socials {
  justify-content: flex-end;
  gap: 8px;
}

.socials a,
.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  font-size: 12px;
}

.socials a:hover,
.icon-button:hover {
  border-color: rgba(31, 138, 87, 0.55);
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: 78vh;
  align-items: center;
  padding: clamp(54px, 9vw, 120px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 15, 15, 0.86) 0%, rgba(10, 15, 15, 0.62) 52%, rgba(10, 15, 15, 0.16) 100%),
    url("assets/hero-fabrox.png") center / cover no-repeat,
    #17231f;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(0deg, var(--paper), rgba(247, 243, 232, 0));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: 64px;
  line-height: 0.98;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.download-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.primary-action {
  color: #101316;
  background: var(--amber);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.primary-action:hover {
  background: #ffd06a;
}

.secondary-action {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.16);
}

.status-panel {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 48px;
  z-index: 1;
  display: flex;
  max-width: 310px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(16, 19, 22, 0.58);
  backdrop-filter: blur(14px);
}

.status-panel strong,
.status-panel span {
  display: block;
}

.status-panel span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.status-light {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #52e087;
  box-shadow: 0 0 0 6px rgba(82, 224, 135, 0.18);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-section,
.features-section,
.mods-preview {
  padding: 72px 0;
}

.intro-grid,
.preview-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 36px;
  align-items: start;
}

.intro-section h2,
.features-section h2,
.mods-preview h2,
.mods-modal h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.intro-section p,
.mods-preview p,
.feature-card p,
.mod-card p {
  color: var(--muted);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.mod-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.feature-card {
  min-height: 210px;
  padding: 22px;
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.feature-card h3,
.mod-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.mods-preview {
  background: #101316;
  color: #fff;
}

.mods-preview p {
  color: rgba(255, 255, 255, 0.72);
}

.preview-layout {
  align-items: center;
}

.compact {
  justify-self: end;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 10, 12, 0.72);
}

.modal-backdrop[hidden] {
  display: none;
}

.mods-modal {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.icon-button {
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.mod-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mod-card {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  padding: 18px;
}

.mod-badge {
  width: max-content;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.mod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 16px;
}

.mod-meta span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #4a535c;
  font-size: 12px;
  font-weight: 750;
}

.download-button {
  width: 100%;
  color: #798087;
  border-color: var(--line);
  background: #ece7dc;
  cursor: not-allowed;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .brand,
  .main-nav,
  .socials {
    justify-content: center;
  }

  .main-nav {
    overflow-x: auto;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-text {
    font-size: 17px;
  }

  .status-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 38px;
  }

  .intro-grid,
  .preview-layout,
  .feature-grid,
  .mod-list {
    grid-template-columns: 1fr;
  }

  .compact {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .intro-section h2,
  .features-section h2,
  .mods-preview h2,
  .mods-modal h2 {
    font-size: 28px;
  }

  .mods-modal {
    padding: 18px;
  }
}
