/* GrooveCrafts site: dark theme (near-black background, white text), in the spirit of splice.com.
   Accents are the plugin's cyan and violet (TensionBuilder/Source/LookAndFeel.h). */
:root {
  --bg: #08080b;
  --panel: #131318;
  --panel-light: #1c1c23;
  --stroke: #2a2a33;
  --accent: #22d3ee;        /* fills, borders, focus */
  --accent-text: #67e8f9;   /* links and small accent text */
  --cool: #a78bfa;
  --pink: #f472b6;
  --text: #ffffff;
  --muted: #a3a3b2;
  --dim: #74748a;

  --radius: 12px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

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

/* Spotlight rays fanning down from the top of the page, fading out before the content below. */
body { position: relative; }
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
               background:
                 repeating-conic-gradient(from 200deg at 50% -20%, rgba(255, 255, 255, 0.07) 0 1.5deg, transparent 1.5deg 9deg),
                 radial-gradient(70% 60% at 50% 0%, rgba(124, 58, 237, 0.28), transparent 70%);
               -webkit-mask-image: linear-gradient(#000 35%, transparent);
               mask-image: linear-gradient(#000 35%, transparent); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel-light); border: 1px solid var(--stroke);
       border-radius: 4px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
pre { background: var(--panel); border: 1px solid var(--stroke); border-radius: 8px; padding: 14px 16px;
      overflow-x: auto; font: 13px/1.5 var(--mono); }
pre code { background: none; border: 0; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---- Header ------------------------------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--stroke); background: rgba(8, 8, 11, 0.85); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.02em;
        font-size: 21px; }
.logo:hover { text-decoration: none; }

/* Promo bar across the top */
.promo { background: #6d28d9; color: #ffffff; text-align: center; font-size: 14px; font-weight: 600; padding: 9px 16px; }
.promo a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.nav { align-items: center; }
.nav .nav-cta { color: #08080b; padding: 8px 18px; font-size: 14px; box-shadow: none; }
.nav .nav-cta:hover { color: #08080b; }
.logo svg { flex: none; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---- Type -------------------------------------------------------------------------------------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
/* Big, heavy display type (inspired by splice.com) */
h1 { font-size: clamp(42px, 8vw, 88px); font-weight: 900; line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 22px; }
h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 850; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px; }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 40em; margin: 0 0 28px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--stroke); }

/* ---- Buttons ----------------------------------------------------------------------------------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
       font-weight: 650; font-size: 15px; border: 1px solid var(--stroke); background: var(--panel-light);
       color: var(--text); cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--dim); }
/* White pill on black, like splice.com's "Try now" */
.btn-primary { background: #ffffff; border-color: #ffffff; color: #08080b; }
.btn-primary:hover { background: var(--accent-text); border-color: var(--accent-text); }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: default; pointer-events: none; }
.btn .sub { font-weight: 500; font-size: 12px; opacity: 0.75; }
.btn.recommended { outline: 2px solid var(--accent); outline-offset: 2px; }

.badge { display: inline-block; font: 700 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
         padding: 4px 9px; border-radius: 3px; border: 1px solid rgba(34, 211, 238, 0.45);
         background: rgba(34, 211, 238, 0.08); color: var(--accent-text); }
.badge.cool { border-color: rgba(167, 139, 250, 0.45); background: rgba(167, 139, 250, 0.10); color: var(--cool); }

/* ---- Hero -------------------------------------------------------------------------------------- */
.hero { padding: 88px 0 72px;
        background: radial-gradient(50% 70% at 20% 0%, rgba(124, 58, 237, 0.18), transparent 70%),
                    radial-gradient(40% 60% at 85% 30%, rgba(34, 211, 238, 0.08), transparent 70%); }

/* ---- Cards ------------------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; background: var(--panel); border: 0; border-radius: 18px; padding: 26px; }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; margin-bottom: 14px;
              background: var(--bg); color: var(--accent); font-size: 18px; }

.product-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; margin: 12px 0 8px; }
.product-row .shot img { border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--stroke); }
.product-row .info { display: flex; flex-direction: column; gap: 10px; }
.product-row .info h3 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 900; letter-spacing: -0.03em; margin: 0; }
.product-row .info p { margin: 0; }
.product-row .tag { color: var(--accent-text); font-size: 14px; font-weight: 700; }
.product-row .buttons { margin-top: 8px; }

/* ---- Product page ------------------------------------------------------------------------------ */
.screenshot { border-radius: 6px; border: 1px solid var(--stroke);
              box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { padding: 18px 20px; border-left: 2px solid var(--accent); background: var(--panel); }
.feature.cool { border-left-color: var(--cool); }
.feature h3 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.demo { display: flex; flex-direction: column; gap: 12px; }
.demo audio { width: 100%; }
.demo .missing { font-size: 14px; color: var(--dim); border: 1px dashed var(--stroke); border-radius: 8px; padding: 14px; text-align: center; }

.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 38%; padding-right: 16px; }

/* ---- Support ----------------------------------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 18px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 16px 44px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
                      display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--panel-light);
                      border: 1px solid var(--stroke); color: var(--accent-text); }
.steps ul { padding-left: 18px; margin: 8px 0 0; color: var(--muted); }
.callout { background: rgba(167, 139, 250, 0.08); border: 1px solid rgba(167, 139, 250, 0.3); border-radius: 4px; padding: 14px 16px;
           font-size: 15px; }
.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer;
               border: 1px solid var(--stroke); background: transparent; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--panel-light); color: var(--text); border-color: var(--dim); }
[role="tabpanel"][hidden] { display: none; }

details { border-bottom: 1px solid var(--stroke); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); margin: 10px 0 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col > * { min-width: 0; }   /* let wide children (code blocks) scroll instead of stretching the column */

/* ---- Footer ------------------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--stroke); padding: 56px 0 32px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { max-width: 30em; margin: 14px 0 0; }
.site-footer h4 { color: var(--text); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin: 4px 0 12px; }
.site-footer nav a { display: block; color: var(--muted); padding: 4px 0; }
.site-footer nav a:hover { color: var(--text); text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px;
               border-top: 1px solid var(--stroke); color: var(--dim); }
.footer-base a { color: var(--dim); }

/* ---- Home: hero with product shot, DAW strip ------------------------------------------------------ */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-grid h1 { font-size: clamp(42px, 5.4vw, 68px); }
.hero-shot img { border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--stroke); }
.daw-strip { padding: 28px 0; }
.daw-strip .eyebrow { margin-bottom: 10px; }
.daws { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; padding: 0;
        font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--dim); }
.coming { margin: 28px 0 0; color: var(--dim); font-size: 15px; }

/* ---- Small screens ----------------------------------------------------------------------------- */
@media (max-width: 760px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; }
  .product-row { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav a:not(.nav-cta) { display: none; }   /* phones: logo + CTA pill; full links stay in the footer */
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .nav { gap: 16px; }
  .btn { width: 100%; justify-content: center; }
}

