/* ==========================================================================
   Robotic Audio – the plugins' modern look: warm near-black, cream, fire
   ========================================================================== */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("../fonts/BigShouldersDisplay-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); }

:root {
  --bg: #0d0b0a;
  --surface: #17120f;
  --surface-2: #211a15;
  --line: rgba(255, 236, 220, 0.1);
  --line-strong: rgba(255, 236, 220, 0.22);
  --text: #f4ece4;
  --muted: #a99e94;
  --ember: #ff3b0a;
  --fire: #ff6a1a;
  --fire-hot: #ffb23e;
  --on-fire: #1a0b03;
  --fire-gradient: linear-gradient(95deg, var(--ember) 0%, var(--fire) 45%, var(--fire-hot) 100%);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --wide: 76rem;
  --radius: 14px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--fire-hot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fire); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

::selection { background: var(--fire); color: var(--on-fire); }
:focus-visible { outline: 2px solid var(--fire-hot); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(64rem, 100% - 2 * var(--gutter)); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--fire); color: var(--on-fire); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Shared pieces ---------- */

.kicker {
  display: flex; align-items: center; gap: 0.7em;
  margin: 0 0 1.1em;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fire);
}
.kicker::before { content: ""; flex: none; width: 22px; height: 2px; background: var(--fire-gradient); }

.display { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.display--xl { font-size: clamp(3.6rem, 12vw, 8rem); }

.lead { font-size: 1.15em; color: var(--muted); max-width: 40rem; }
.note { color: var(--muted); margin: 1.5rem 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85em 1.6em;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 0.82rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn--fire { background: var(--fire-gradient); color: var(--on-fire); box-shadow: 0 8px 30px -8px rgba(255, 106, 26, 0.6); }
.btn--fire:hover { color: var(--on-fire); transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(255, 106, 26, 0.85); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--text); border-color: var(--fire); background: rgba(255, 106, 26, 0.12); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1.8rem; padding: 0; }
.chips li { padding: 0.45em 1em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--text); }
.chips--center { justify-content: center; margin: 0; }

.grid { display: grid; gap: 16px; margin-top: 2.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { font-size: 1.5rem; margin-bottom: 0.5em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95em; }
.card--link { display: block; color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease); }
.card--link:hover { color: inherit; border-color: var(--fire); transform: translateY(-3px); }

.shot { border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 120px -60px rgba(255, 106, 26, 0.55); }

/* ---------- Header & footer ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 10, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }

.site-nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-image: var(--fire-gradient) 1; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: 0.9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); line-height: 1; margin-bottom: 8px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--fire-hot); }
.site-footer__legal { margin-top: 32px; font-size: 0.8rem; color: rgba(244, 236, 228, 0.4); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--line { border-top: 1px solid var(--line); }

.page-head { padding: clamp(56px, 9vw, 112px) 0 clamp(32px, 5vw, 56px); }
.page-head--plugin { background: radial-gradient(90% 60% at 50% 100%, rgba(255, 106, 26, 0.16), transparent 70%); }
.page-head--plugin .shot--hero { margin-top: clamp(40px, 6vw, 72px); width: 100%; }
.page-head--center { text-align: center; min-height: 60vh; display: grid; align-items: center; }
.page-head--center .kicker, .page-head--center .actions { justify-content: center; }
.page-head--center .lead { margin-inline: auto; }

/* ---------- Home ---------- */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); background: radial-gradient(60% 50% at 78% 28%, rgba(255, 106, 26, 0.2), transparent 70%); }
.hero__title {
  font-size: clamp(4.4rem, 15vw, 11rem); line-height: 0.86; letter-spacing: 0.005em; margin: 0 0 0.3em;
  background: var(--fire-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.door { display: block; padding: clamp(24px, 3.5vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease); }
.door:hover { color: inherit; border-color: var(--fire); transform: translateY(-3px); }
.door h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.35em; }
.door p { color: var(--muted); max-width: 30rem; }
.door__go { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fire-hot); }
.door__go::after { content: "→"; transition: translate 0.2s var(--ease); }
a:hover .door__go::after { translate: 5px 0; }

.feature { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.feature__shot img { border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 120px -60px rgba(255, 106, 26, 0.55); }

/* ---------- Plugins ---------- */

.plugin-list { display: grid; gap: 16px; }
.plugin-card { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(16px, 2.5vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease); }
.plugin-card:hover { color: inherit; border-color: var(--fire); transform: translateY(-3px); }
.plugin-card__shot { display: grid; place-items: center; aspect-ratio: 16 / 11; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.plugin-card__shot img { max-height: 100%; width: auto; max-width: 100%; border-radius: 6px; }
.plugin-card h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 0.3em; }
.plugin-card p { color: var(--muted); }

.prose--intro { max-width: 46rem; font-size: 1.15em; }

.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 16px; margin-top: 2rem; }
.demo { margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.demo figcaption { display: flex; flex-direction: column; margin-bottom: 12px; }
.demo figcaption span { color: var(--muted); font-size: 0.9em; }
.demo audio { width: 100%; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 24px; margin-top: 2rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 16px; margin-top: 24px; }
.shots figure, .thumbs figure { margin: 0; }
.shots figcaption, .thumbs figcaption { margin-top: 10px; color: var(--muted); font-size: 0.85rem; }
.thumbs .shot { border-radius: 10px; box-shadow: none; width: 100%; }

.specs { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 72px); }
.spec-list { margin: 0; }
.spec-list > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list > div:first-child { border-top: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 0.2em; }
.spec-list dd { margin: 0; }

/* ---------- Studio ---------- */

.service__head { display: grid; grid-template-columns: 1fr 1.2fr; align-items: end; gap: clamp(16px, 4vw, 56px); }
.service__head .display { margin: 0; }
.service__head .lead { margin: 0; }

.work { display: block; color: inherit; text-decoration: none; }
.work:hover { color: inherit; }
.work__image { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--surface); margin-bottom: 14px; transition: border-color 0.2s; }
.work__image img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s var(--ease); }
.work:hover .work__image { border-color: var(--fire); }
.work:hover .work__image img { scale: 1.04; }
.work__image--shot { display: grid; place-items: center; padding: 12px; }
.work__image--shot img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 6px; }
.work .kicker { margin-bottom: 0.7em; }
.more-plugins { margin-top: clamp(40px, 6vw, 72px); }
.work h3 { font-size: 1.45rem; margin-bottom: 0.35em; }
.work p { margin: 0; color: var(--muted); font-size: 0.9em; line-height: 1.5; }

/* ---------- Sign-up ---------- */

.signup { border-top: 1px solid var(--line); background: var(--surface); padding: clamp(48px, 7vw, 88px) 0; }
.signup__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.signup h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 0.3em; }
.signup p { margin: 0; color: var(--muted); max-width: 34rem; }
.signup__form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup__form input { min-width: min(100%, 17rem); padding: 0.8em 1.2em; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font: inherit; }
.signup__form input::placeholder { color: var(--muted); }

/* ---------- Small screens ---------- */

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .grid--3 { grid-template-columns: 1fr; }
  .doors, .feature, .plugin-card, .specs, .service__head { grid-template-columns: 1fr; }
  .feature__shot { order: -1; }
  .spec-list > div { grid-template-columns: 1fr; gap: 2px; }
  .site-nav a { letter-spacing: 0.08em; font-size: 0.72rem; }
  .brand span { display: none; }
}

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