:root {
  --ink: #090807;
  --paper: #f5f2ed;
  --muted: #a9a39c;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(20, 18, 16, 0.76);
  --orange: #bb4300;
  --orange-bright: #ee6a18;
  --grey: #646261;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink) url("background.jpg") center top / cover fixed no-repeat;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.12), rgba(5, 4, 3, 0.92) 56%, #090807 88%),
    linear-gradient(90deg, rgba(5, 4, 3, 0.1), rgba(5, 4, 3, 0.55));
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.page-glow {
  position: fixed;
  top: 14%; left: 3%;
  width: 34rem; height: 34rem;
  border-radius: 50%;
  background: rgba(190, 67, 0, 0.1);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.site-header {
  width: min(calc(100% - 40px), var(--max));
  height: 84px;
  margin: 18px auto 0;
  padding: 12px 16px 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 14px;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 10, 9, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 15px 45px rgba(0,0,0,.28);
}
.brand { display: block; flex: 0 0 auto; width: 174px; height: 52px; overflow: hidden; border-radius: 10px; background: #090807; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(1.1); }
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: .9rem; font-weight: 650; text-decoration: none; color: #d9d5cf; transition: color .2s ease; }
nav a:hover { color: white; }
.nav-cta { padding: 11px 18px; border-radius: 999px; background: var(--orange); color: white; }
.header-email { color: #d9d5cf; font-weight: 700; text-decoration: none; }
.header-email:hover { color: var(--orange-bright); }

main { overflow: hidden; }
.hero {
  width: min(calc(100% - 40px), var(--max));
  min-height: 660px;
  margin: 0 auto;
  padding: 94px 0 80px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 54px;
}
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; color: #d2ccc4; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: var(--orange-bright); }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.045em; }
h1 { max-width: 720px; font-size: clamp(3.3rem, 7vw, 6.8rem); font-weight: 820; }
h1 em { font-style: normal; color: var(--orange-bright); }
.hero-text { max-width: 610px; margin: 28px 0 0; color: #c8c2bb; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: white; box-shadow: 0 15px 35px rgba(187, 67, 0, .24); }
.button-primary:hover { background: var(--orange-bright); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.04); }
.button-ghost:hover { background: rgba(255,255,255,.09); }
.hero-stats { margin: 48px 0 0; padding: 0; display: flex; gap: 42px; list-style: none; }
.hero-stats li { display: grid; }
.hero-stats strong { font-size: 1.25rem; }
.hero-stats span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; }

.hero-art { min-height: 420px; position: relative; display: grid; place-items: center; }
.brand-stage {
  width: min(100%, 510px);
  aspect-ratio: 1.45;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: #090807;
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 80px rgba(187,67,0,.13);
}
.brand-stage img { width: 84%; height: auto; object-fit: contain; filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(1.1); }

.project { padding: 110px max(20px, calc((100% - var(--max)) / 2)) 120px; background: linear-gradient(180deg, rgba(9,8,7,.72), #0d0c0b 18%, #0d0c0b); }
.project-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 70px; align-items: end; }
.project-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.project-intro h2 { font-size: clamp(2.3rem, 4vw, 4.4rem); }
.project-intro > p:last-child { margin: 0; color: var(--muted); font-size: 1.08rem; }
.project-pillars { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-pillars article { min-height: 245px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); }
.project-pillars article > span { color: var(--orange-bright); font-size: .78rem; font-weight: 800; }
.project-pillars h3 { margin-top: 52px; font-size: 1.65rem; }
.project-pillars p { color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2, .how h2 { font-size: clamp(2.3rem, 4vw, 4.4rem); max-width: 760px; }
#result-count { color: var(--muted); margin: 0 0 6px; font-size: .9rem; }
.catalog-toolbar { margin: 42px 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.search-box { width: min(100%, 420px); min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); }
.search-box:focus-within { border-color: rgba(238,106,24,.7); box-shadow: 0 0 0 3px rgba(238,106,24,.1); }
.search-box svg { width: 21px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; border: 0; outline: 0; color: white; background: transparent; font-size: 1rem; }
.search-box input::placeholder { color: #817c76; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 9px 15px; color: #c4beb7; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; font-size: .86rem; }
.filter:hover, .filter.is-active { color: white; background: var(--orange); border-color: var(--orange); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card { min-height: 360px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); box-shadow: 0 24px 60px rgba(0,0,0,.12); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.app-card:hover { transform: translateY(-6px); border-color: rgba(238,106,24,.42); background: linear-gradient(150deg, rgba(255,255,255,.11), rgba(255,255,255,.035)); }
.app-card.featured { border-color: rgba(238,106,24,.5); background: linear-gradient(145deg, rgba(187,67,0,.24), rgba(255,255,255,.035) 58%); }
.app-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 15px; font-size: 1rem; font-weight: 900; letter-spacing: -.03em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.icon-orange { background: linear-gradient(135deg, #f1742c, #963000); }
.icon-silver { background: linear-gradient(135deg, #a6a3a0, #454342); }
.icon-purple { background: linear-gradient(135deg, #9a5ed1, #4a2169); }
.icon-blue { background: linear-gradient(135deg, #3b91d0, #164360); }
.icon-red { background: linear-gradient(135deg, #d95449, #77231d); }
.icon-green { background: linear-gradient(135deg, #52a479, #1c5538); }
.app-meta { margin: 24px 0 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.app-card h3 { font-size: 1.65rem; }
.app-card > p { margin: 15px 0 22px; color: #aaa49d; font-size: .94rem; }
.app-footer { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.size { color: #817b75; font-size: .8rem; }
.download { padding: 10px 14px; color: white; border: 0; border-radius: 9px; background: var(--orange); cursor: pointer; font-weight: 760; }
.download:hover { background: var(--orange-bright); }
.download:focus-visible, .filter:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(238,106,24,.55); outline-offset: 3px; }
.empty-state { margin: 60px 0; color: var(--muted); text-align: center; font-size: 1.1rem; }

.how { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 120px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.how ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.how li { min-height: 120px; padding: 26px 0; display: grid; grid-template-columns: 56px 160px 1fr; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.how li > span { color: var(--orange-bright); font-weight: 800; font-size: .78rem; }
.how li strong { font-size: 1.25rem; }
.how li p { margin: 0; color: var(--muted); }

.access { width: min(calc(100% - 40px), var(--max)); margin: 0 auto 100px; padding: 72px; text-align: center; border: 1px solid rgba(238,106,24,.35); border-radius: 28px; background: radial-gradient(circle at 50% 0%, rgba(187,67,0,.28), transparent 55%), rgba(255,255,255,.035); }
.access .eyebrow { justify-content: center; }
.access h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.access > p:not(.eyebrow) { max-width: 650px; margin: 24px auto 30px; color: var(--muted); font-size: 1.05rem; }

footer { width: min(calc(100% - 40px), var(--max)); margin: 0 auto 30px; padding: 28px; display: grid; grid-template-columns: 160px 1fr auto auto; align-items: center; gap: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); color: var(--muted); font-size: .82rem; }
footer img { width: 100%; padding: 6px; border-radius: 8px; background: transparent; filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(1.1); }
footer a { color: #d9d5cf; text-decoration: none; }
footer a:hover { color: var(--orange-bright); }
footer p:last-child { text-align: right; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(380px, calc(100% - 48px)); padding: 14px 18px; border: 1px solid rgba(238,106,24,.45); border-radius: 12px; background: #171411; color: white; box-shadow: 0 18px 60px rgba(0,0,0,.4); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 76px; }
  .hero-art { min-height: 360px; }
  .brand-stage { width: min(82vw, 480px); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .project-intro { grid-template-columns: 1fr; }
  .project-intro .eyebrow { grid-column: 1; }
  .how { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 680px) {
  .site-header { height: 72px; width: calc(100% - 24px); margin-top: 10px; top: 8px; padding: 9px 10px 9px 14px; }
  .brand { width: 135px; height: 44px; }
  .header-email { font-size: .82rem; }
  .hero { width: calc(100% - 32px); min-height: auto; padding: 64px 0 70px; gap: 46px; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.9rem); }
  .hero-stats { gap: 24px; justify-content: space-between; }
  .hero-art { min-height: 290px; }
  .project { padding: 86px 16px; }
  .project-pillars { grid-template-columns: 1fr; }
  .section-heading, .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .catalog-toolbar, .search-box { width: 100%; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 320px; }
  .how { width: calc(100% - 32px); padding: 90px 0; }
  .how li { grid-template-columns: 42px 1fr; }
  .how li p { grid-column: 2; }
  .access { width: calc(100% - 32px); padding: 60px 22px; }
  footer { width: calc(100% - 32px); grid-template-columns: 130px 1fr; }
  footer a { grid-column: 1 / -1; }
  footer p:last-child { grid-column: 1 / -1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
