/* Master Rack website: the program's own palette (src/ui/Theme.cpp). */
:root {
  --bg: #0a1c2c; --bg-deep: #06121d; --panel: #172c3f; --panel-dark: #10243a; --button: #32475b;
  --edge: #4f6378; --plugin: #6c8097; --accent: #a9bccf; --accent-sheen: #d6e1ec;
  --text: #dce5ee; --dim: #8a9bb0; --bright: #ffffff;
  --green: #2fbf5f; --amber: #e8a33a; --red: #e0524c;
  --radius: 14px; --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--bright); }
h1, h2, h3 { color: var(--bright); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .5px; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow { color: var(--accent); letter-spacing: 3px; font-size: 13px; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.lead { color: var(--dim); font-size: clamp(17px, 1.6vw, 20px); max-width: 720px; }
.muted { color: var(--dim); }

/* --- Buttons (the program's chrome look) ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 10px; border: 1px solid var(--edge); background: linear-gradient(#3e556c, var(--button)); color: var(--text);
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: 1px; cursor: pointer; text-transform: uppercase; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.18); color: var(--bright); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(#dbe6f0, var(--accent)); color: var(--bg); border-color: var(--accent-sheen);
  box-shadow: 0 8px 30px rgba(169, 188, 207, .25); }
.btn.primary:hover { color: var(--bg); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn.danger { background: linear-gradient(#d25a55, #a8332f); border-color: #d25a55; color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }

/* --- Top bar -------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(10, 28, 44, .86); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(79, 99, 120, .5); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.top .brand { display: flex; align-items: center; gap: 10px; color: var(--bright); font-weight: 700; letter-spacing: 3px; font-size: 15px; }
.top .brand img { height: 34px; width: auto; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; letter-spacing: 1px; }
.top nav a { color: var(--dim); }
.top nav a:hover { color: var(--bright); }
.lang { display: flex; border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; }
.lang button { background: transparent; border: 0; color: var(--dim); font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1; padding: 8px 10px; cursor: pointer; letter-spacing: 1px; }
.lang button.on { background: var(--accent); color: var(--bg); }
.menu-btn { display: none; background: none; border: 1px solid var(--edge); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 18px; }

/* --- Sections --------------------------------------------------------------------------------- */
section { padding: 96px 0; }
section.alt { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.shot { border-radius: var(--radius); border: 1px solid var(--edge); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0,0,0,.3); overflow: hidden; background: var(--bg-deep); }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: -12% -6%; background: radial-gradient(closest-side, rgba(169, 188, 207, .16), transparent);
  z-index: -1; pointer-events: none; }

.hero { padding: 90px 0 70px; overflow: hidden; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 14px; }
.hero .price-note { color: var(--dim); font-size: 14px; }
.hero .shot { margin-top: 56px; }
.hero-logo { width: min(260px, 50vw); margin: 0 auto 26px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge { border: 1px solid var(--edge); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--accent); letter-spacing: .5px; background: rgba(23, 44, 63, .6); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 44px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: linear-gradient(var(--panel), var(--panel-dark)); border: 1px solid var(--edge); border-radius: var(--radius); padding: 24px; }
.card .icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(#3e556c, var(--button)); border: 1px solid var(--edge); color: var(--accent-sheen); }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--dim); font-size: 15px; margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: 1.35fr 1fr; }
.feature.flip .text { order: 2; }
.feature ul { padding: 0; margin: 18px 0 0; list-style: none; }
.feature li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text); }
.feature li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 10px rgba(169, 188, 207, .6); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.swatches i { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(255,255,255,.15); }

/* Plugin windows floating over the RACK page. */
.stack { position: relative; padding-bottom: 12%; }
.stack .float { position: absolute; border-radius: 10px; border: 1px solid var(--edge); box-shadow: 0 24px 60px rgba(0, 0, 0, .65); overflow: hidden; }

/* The iPad. */
.device { background: #0d0f12; border-radius: 34px; padding: 16px; border: 1px solid #2a3139; box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 2px #1b2026; }
.device img { border-radius: 20px; }
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* A Stream Deck-like controller drawn in HTML (no photo of anyone's product). */
.deck { background: linear-gradient(#1b1f25, #0d1014); border-radius: 26px; padding: 22px; border: 1px solid #2c333b;
  box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.key { aspect-ratio: 1; border-radius: 12px; background: #0a0c0f; border: 1px solid #262c33; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; font-family: inherit; font-weight: 700; font-size: 11px; line-height: 1.2; letter-spacing: .5px; color: #fff; padding: 6px;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.4); }
.key small { font-weight: 500; font-size: 9px; opacity: .8; margin-top: 3px; }
.key.c-red { background: linear-gradient(#c94a45, #8f2b28); }
.key.c-amber { background: linear-gradient(#d8962f, #9c6516); }
.key.c-green { background: linear-gradient(#2ea25a, #176b37); }
.key.c-blue { background: linear-gradient(#3d8fe0, #20599a); }
.key.c-slate { background: linear-gradient(#4f6378, #2b3c4e); }
.key.c-teal { background: linear-gradient(#2bb5b0, #17706d); }
.key.c-violet { background: linear-gradient(#9b6bc9, #5f3d85); }
.knobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.knob { text-align: center; font-size: 11px; color: var(--dim); }
.knob i { display: block; width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b9c4cf 45%, #6d7884); border: 2px solid #11151a; box-shadow: 0 6px 14px rgba(0,0,0,.5); position: relative; }
.knob i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 14px; margin-left: -1.5px; background: #222; border-radius: 2px;
  transform-origin: 50% 22px; transform: rotate(var(--r, 0deg)); }

/* --- Price ------------------------------------------------------------------------------------- */
.price-card { max-width: 520px; margin: 44px auto 0; text-align: center; padding: 40px 34px; background: linear-gradient(var(--panel), var(--panel-dark));
  border: 1px solid var(--accent); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 60px rgba(169,188,207,.12); }
.price { font-size: 64px; font-weight: 800; color: var(--bright); line-height: 1; margin: 14px 0 4px; }
.price small { font-size: 22px; font-weight: 600; vertical-align: super; margin-right: 4px; color: var(--accent); }
.price-card ul { list-style: none; padding: 0; margin: 26px 0 30px; text-align: left; }
.price-card li { padding: 9px 0 9px 30px; border-bottom: 1px solid rgba(79,99,120,.45); position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.price-card .btn { width: 100%; }

/* --- FAQ ----------------------------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: linear-gradient(var(--panel), var(--panel-dark)); border: 1px solid var(--edge); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--bright); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--dim); margin: 0; }

footer { border-top: 1px solid rgba(79,99,120,.5); padding: 40px 0 50px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer .legal { font-size: 12px; max-width: 640px; opacity: .8; }

/* --- Forms (customer area) --------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 13px; color: var(--dim); letter-spacing: .5px; display: flex; flex-direction: column; gap: 6px; }
.form input { min-height: 46px; border-radius: 10px; border: 1px solid var(--edge); background: var(--bg-deep); color: var(--text);
  padding: 0 14px; font-family: inherit; font-size: 16px; }
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(169,188,207,.18); }
.msg { min-height: 22px; font-size: 14px; }
.msg.error { color: #ff8a84; }
.msg.ok { color: #6be09a; }

/* --- Reveal on scroll ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  section { padding: 70px 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .text { order: 0; }
  .top nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--edge); padding: 8px 22px 16px; }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px 0; border-bottom: 1px solid rgba(79,99,120,.35); }
  .menu-btn { display: block; margin-left: auto; }
  .phone-pair { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .deck { gap: 8px; padding: 14px; }
  .key { font-size: 9px; }
}
