/* Insomniac Software — site styles */

@font-face {
  font-family: "League Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("assets/league-gothic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "League Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("assets/league-gothic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0c10;
  --bg-raised: #13161c;
  --bg-raised-2: #171b22;
  --border: #242a33;
  --border-soft: #1b2028;
  --text: #edeff3;
  --text-muted: #9aa2ae;
  --text-dim: #6b7280;
  --accent: #f0973a;
  --accent-soft: #f6b45f;
  --accent-dim: #7a5326;
  --measure: 52rem;
  --display: "League Gothic", "Arial Narrow", sans-serif;
}

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

::selection { background: var(--accent-dim); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 44rem; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  z-index: 10;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  border: 0;
}

.brand img { width: 34px; height: 34px; display: block; }

.brand .name {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.03em;
  transform: translateY(1px);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  border: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60rem;
  height: 60rem;
  background: radial-gradient(circle,
    rgba(240, 151, 58, 0.16) 0%,
    rgba(240, 151, 58, 0.05) 32%,
    transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-inner { padding: 5.5rem 0 5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

/* ---------- content ---------- */

main { display: block; }

.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--border-soft); }

.page-head { padding: 4rem 0 0; }

h1 {
  font-family: var(--display);
  margin: 0 0 1.4rem;
  font-size: clamp(2.9rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  font-weight: 400;
}

h2 {
  font-family: var(--display);
  margin: 0 0 0.8rem;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}

h3 { margin: 2rem 0 0.5rem; font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1.15rem; }

.lead {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.hero .lead { font-size: 1.4rem; }

.muted { color: var(--text-muted); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
}

a:hover { border-bottom-color: var(--accent); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  background: var(--bg-raised);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn:hover { border-color: var(--accent-dim); background: var(--bg-raised-2); }

.btn-primary {
  border-color: var(--accent-dim);
  color: #1a1206;
  background: var(--accent);
}

.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ---------- service grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 0;
}

.service {
  padding: 1.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.service .num {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.service h2 { margin: 0.5rem 0 0.6rem; font-size: 1.4rem; }
.service p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

.section-title { margin-bottom: 1.5rem; }

.case {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-soft);
}

.case h3 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
}

.case p { max-width: 44rem; }

.case-stack {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ---------- founder ---------- */

.founder {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.founder-photo {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.founder h2 { margin-top: 0; }

@media (max-width: 34rem) {
  .founder { flex-direction: column; gap: 1.25rem; }
}

/* ---------- product card ---------- */

.card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(240, 151, 58, 0.10), transparent 55%),
    var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  margin-top: 2rem;
}

.card h2 { margin-top: 0; font-size: 1.9rem; }
.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  padding: 0.2rem 0.8rem;
  margin-bottom: 1.1rem;
}

/* ---------- definition table ---------- */

.facts { border-top: 1px solid var(--border); margin: 2rem 0 0; }

.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.facts dt { flex: 0 0 12rem; margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.facts dd { flex: 1 1 16rem; margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.footer-legal {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.site-footer a { color: var(--text-muted); border-bottom-color: var(--border); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 40rem) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .hero-inner { padding: 3.5rem 0; }
  .hero .lead { font-size: 1.2rem; }
  .brand .name { font-size: 1.7rem; }
  nav ul { gap: 1.1rem; }
  .card { padding: 1.75rem; }
  .facts dt { flex-basis: 100%; }
  .site-footer .wrap { flex-direction: column; }
}
