:root {
  --accent: #e11f2e;
  --accent-2: #ff5a3d;
  --bg: #0d0d0f;
  --panel: #171719;
  --panel-2: #202023;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f5;
  --muted: #b9b9bd;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(225, 31, 46, 0.2), transparent 28rem),
    linear-gradient(180deg, #101012 0%, #0d0d0f 45%, #09090a 100%);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  color: #fff;
  background: #171719;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 900px;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(166px, 20vw, 210px);
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #101012;
  box-shadow: 0 0 22px rgba(225, 31, 46, 0.32);
  color: var(--accent);
  font-family: Rajdhani, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  transform: skew(-8deg);
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-family: Rajdhani, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dedee2;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a {
  padding: 13px 14px;
  border-radius: 7px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #fff;
  background: #1d1d20;
}

.nav-links .shop-link {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(225, 31, 46, 0.45);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), #0d0d0f 98%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.78)),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero {
  min-height: 640px;
  padding: 132px 0 96px;
}

.page-hero {
  padding: 148px 0 64px;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-grid,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  align-items: end;
  gap: 42px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(225, 31, 46, 0.8);
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(50px, 8vw, 100px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 32px;
  color: #d6d6da;
  font-size: 18px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  box-shadow: 0 0 24px rgba(225, 31, 46, 0.42);
}

.btn-primary:hover {
  filter: brightness(0.92);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(24, 24, 28, 0.76);
}

.wide-btn {
  width: fit-content;
  margin-top: 24px;
}

.hero-card,
.service-card,
.quote-panel,
.application-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.hero-card-top {
  padding: 18px 20px;
  background: var(--accent);
  font-family: Rajdhani, sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-card-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.stat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stat strong {
  color: #fff;
  font-size: 18px;
}

main {
  position: relative;
  z-index: 2;
}

.subpage {
  min-height: 100vh;
}

.section {
  padding: 76px 0;
}

.tight-section {
  padding-top: 36px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.95;
  text-transform: uppercase;
}

.section-heading p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(225, 31, 46, 0.75);
}

.service-number {
  color: rgba(255, 255, 255, 0.14);
  font-family: Rajdhani, sans-serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.service-card h3,
.quote-panel h3,
.application-card h3 {
  margin: 12px 0 10px;
  font-family: Rajdhani, sans-serif;
  font-size: 28px;
  text-transform: uppercase;
}

.service-card p,
.quote-panel p,
.application-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(225, 31, 46, 0.78), rgba(225, 31, 46, 0.48)),
    url("https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.feature-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
  min-height: 330px;
  padding: 56px 0;
}

.feature-inner h2 {
  margin: 0 0 16px;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
}

.feature-inner p {
  max-width: 610px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 7px;
  background: rgba(8, 8, 9, 0.72);
  font-weight: 800;
  text-transform: uppercase;
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: stretch;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.quote-panel {
  padding: 28px;
}

.callout-panel {
  position: relative;
  overflow: hidden;
}

.callout-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(225, 31, 46, 0.75);
}

.panel-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
}

.contact-list strong {
  display: block;
  color: #fff;
  margin-bottom: 3px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.application-form {
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: #d9d9dc;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: #111113;
  color: #fff;
  font: inherit;
  padding: 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 31, 46, 0.2);
}

textarea,
.full {
  grid-column: 1 / -1;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.success {
  color: #68d391;
}

.form-status.error {
  color: #ff8a8a;
}

.is-hidden {
  display: none !important;
}

.auth-panel,
.status-panel {
  display: grid;
  gap: 12px;
}

.form-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(225, 31, 46, 0.24);
  border-radius: 7px;
  background: rgba(225, 31, 46, 0.08);
  color: var(--muted);
}

.form-user strong {
  color: #fff;
  text-transform: uppercase;
}

.form-user a {
  margin-left: auto;
  color: var(--accent-2);
  font-weight: 900;
  text-transform: uppercase;
}

.result-banner {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 7px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.result-banner.pending {
  background: #2f6feb;
}

.status-open {
  color: #68d391 !important;
}

.status-closed {
  color: #ff8a8a !important;
}

.result-banner.accepted,
.status-pill.accepted,
.btn-accept {
  background: #178a4d;
}

.result-banner.rejected,
.status-pill.rejected,
.btn-reject {
  background: #b4232e;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.applications-list {
  display: grid;
  gap: 14px;
}

.application-card {
  padding: 0;
  overflow: hidden;
}

.application-card.empty-card {
  padding: 24px;
}

.application-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.01);
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: 0 24px;
  text-align: left;
}

.application-toggle:hover,
.application-toggle:focus {
  background: rgba(225, 31, 46, 0.08);
  outline: none;
}

.application-toggle[aria-expanded="true"] {
  border-bottom-color: var(--line);
}

.application-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.application-title span:first-child {
  color: #fff;
}

.application-title span:not(:first-child) {
  color: #c9c9cf;
}

.status-pill {
  padding: 6px 9px;
  border-radius: 6px;
  background: #2f6feb;
  color: #fff !important;
  font-size: 12px;
}

.application-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #111113;
  color: var(--accent);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.application-toggle[aria-expanded="true"] .application-arrow {
  border-color: rgba(225, 31, 46, 0.42);
  background: rgba(225, 31, 46, 0.12);
  transform: rotate(90deg);
}

.application-details {
  padding: 18px 24px 24px;
  animation: revealApplication 180ms ease;
}

.answer-grid {
  display: grid;
  gap: 12px;
}

.answer {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111113;
}

.answer strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.decision-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-accept,
.btn-reject {
  box-shadow: none;
}

.btn-accept:hover,
.btn-reject:hover {
  filter: brightness(0.92);
}

.admin-control-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.status-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.admin-stats div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111113;
}

.admin-stats strong {
  color: #fff;
  font-family: Rajdhani, sans-serif;
  font-size: 32px;
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes revealApplication {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease, filter 650ms ease;
  filter: blur(3px);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="left"] {
  transform: translateX(-34px);
}

[data-reveal="right"] {
  transform: translateX(34px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

.service-grid [data-reveal]:nth-child(2),
.feature-list li:nth-child(2),
.applications-list [data-reveal]:nth-child(2) {
  --reveal-delay: 90ms;
}

.service-grid [data-reveal]:nth-child(3),
.feature-list li:nth-child(3),
.applications-list [data-reveal]:nth-child(3) {
  --reveal-delay: 180ms;
}

.feature-list li:nth-child(4),
.applications-list [data-reveal]:nth-child(4) {
  --reveal-delay: 270ms;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero {
    padding-top: 164px;
  }

  .page-hero {
    padding-top: 174px;
  }

  .hero-grid,
  .feature-inner,
  .quote-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1160px);
  }

  .nav-links a {
    padding: 11px 10px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    display: grid;
  }

  .service-grid,
  .admin-stats,
  form {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 23px;
  }
}
