/* Machroma site: dark studio background, spectrum accents (synesthesia theme). */
:root {
  --bg: #0b0c10;
  --panel: #14161d;
  --line: #262a35;
  --text: #eef0f5;
  --muted: #9aa0ae;
  --red: #ff4d6d;
  --orange: #ff8a4d;
  --yellow: #ffd84d;
  --green: #4dff9a;
  --cyan: #4de3ff;
  --blue: #4d8bff;
  --violet: #a66bff;
  --spectrum: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue), var(--violet));
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
a { color: inherit; }
.muted { color: var(--muted); font-weight: 500; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
section { padding: 96px 20px; }
.section-lede { color: var(--muted); max-width: 560px; margin: 0 0 40px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: rgba(11, 12, 16, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px "Space Grotesk", sans-serif; letter-spacing: .16em; }
.mark { width: 26px; height: 26px; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--text); }
.nav .pill { color: var(--text); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 0; }
.spectrum-bg {
  position: absolute; inset: -30% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 50% at 20% 40%, rgba(255, 77, 109, .28), transparent 70%),
    radial-gradient(35% 45% at 50% 30%, rgba(255, 216, 77, .16), transparent 70%),
    radial-gradient(40% 50% at 75% 45%, rgba(77, 227, 255, .22), transparent 70%),
    radial-gradient(35% 45% at 90% 25%, rgba(166, 107, 255, .28), transparent 70%);
  filter: blur(30px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateX(-4%) translateY(3%) scale(1.05); } }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(44px, 8vw, 96px); letter-spacing: -.02em; }
.spectrum-text { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2vw, 21px); color: #c9cdd7; max-width: 600px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.bands { display: flex; height: 10px; margin-top: 80px; }
.bands i { flex: 1; background: var(--c); }
.bands.thin { height: 4px; margin: 0 0 28px; }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; font-family: inherit; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.primary:hover { background: #fff; box-shadow: 0 0 0 3px rgba(77, 227, 255, .35); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }

/* TR-1 */
.tr1-card {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 56px;
  position: relative; overflow: hidden;
}
.tr1-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spectrum); }
.tr1 h2 { font-size: clamp(36px, 5vw, 56px); }
.ticks { list-style: none; padding: 0; margin: 24px 0 32px; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--spectrum); }
.tr1-visual svg { width: 100%; height: 240px; }
.tr1-visual .ghost { animation: align 4s ease-in-out infinite; }
@keyframes align { 0%, 15% { transform: translateX(14px); } 45%, 100% { transform: translateX(0); } }
.caption { color: var(--muted); font-size: 14px; text-align: center; margin: 8px 0 0; }

/* Products */
.products { max-width: var(--max); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid article {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--c);
  transition: transform .2s, box-shadow .2s;
}
.grid article:hover { transform: translateY(-3px); box-shadow: 0 10px 40px -12px var(--c); }
.grid h3 { font-size: 21px; }
.grid p { color: var(--muted); margin: 0; font-size: 15px; }
.free { font: 600 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--bg); background: var(--c); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }

/* About */
.about { background: linear-gradient(180deg, transparent, rgba(166, 107, 255, .06), transparent); }
.about-inner { max-width: 720px; margin: 0 auto; }
.about p { color: #c9cdd7; font-size: 18px; }

/* Contact */
.contact { max-width: 720px; margin: 0 auto; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.full { grid-column: 1 / -1; }
input, textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: inherit; padding: 12px 14px;
}
input:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(77, 227, 255, .2); }
label.check { flex-direction: row; align-items: center; gap: 10px; }
label.check input { accent-color: var(--cyan); width: 18px; height: 18px; }
.form-status { margin: 0; color: var(--muted); min-height: 1.4em; }

footer { padding: 40px 20px 60px; text-align: center; color: var(--muted); font-size: 14px; }
footer p { margin: 6px auto; max-width: 640px; }
footer a { color: var(--text); }

@media (max-width: 820px) {
  section { padding: 72px 16px; }
  .nav { padding: 12px 16px; }
  .nav nav a:not(.pill) { display: none; }
  .tr1-card { grid-template-columns: 1fr; padding: 32px 22px; gap: 24px; }
  .grid { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  .bands { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .spectrum-bg, .tr1-visual .ghost { animation: none; }
  html { scroll-behavior: auto; }
}
