/* EarsDeep Instruments — the store front door (plugins.earsdeep.com)

   Deliberately NOT a new design system. This file reuses the exact tokens and
   components of the ENGINE product page (Web/styles.css) so a customer moving
   from here to a product does not notice a seam. Anything specific to the hub
   lives further down. */

:root{
  --bg:#0b0e13;
  --panel:#151a22;
  --panel-top:#1b212b;
  --hairline:#262f3c;
  --border:#1f2733;
  --accent:#00d2ff;
  --warm:#ffb020;
  --danger:#ff5c5c;
  --text:#e9eef7;
  --dim:#8b98ab;
  --max:1180px;
  --radius:10px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #12202c 0%, rgba(11,14,19,0) 70%),
    var(--bg);
  color:var(--text);
  font:16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing:antialiased;
}

.wrap{width:min(100% - 48px, var(--max)); margin-inline:auto}
.mono{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:13px; letter-spacing:.02em}
.small{font-size:13px; color:var(--dim); margin:6px 0 0}
a{color:inherit}

/* ---------- buttons (identical to the product page) ---------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:10px 18px; border-radius:8px;
  font-weight:600; font-size:14px; letter-spacing:.02em;
  text-decoration:none; border:1px solid var(--hairline);
  transition:transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-lg{padding:14px 26px; font-size:15px}
.btn-accent{
  background:linear-gradient(180deg, #19dcff, #00a9cc);
  border-color:#0bd0f5; color:#04121a;
  box-shadow:0 8px 30px rgba(0,210,255,.22);
}
.btn-accent:hover{transform:translateY(-1px); box-shadow:0 12px 34px rgba(0,210,255,.32)}
.btn-ghost{background:#101620; color:var(--text)}
.btn-ghost:hover{border-color:#3a4a5e; transform:translateY(-1px)}

/* ---------- nav --------------------------------------------------------- */
.nav{
  position:sticky; top:0; z-index:40;
  backdrop-filter:blur(14px);
  background:rgba(11,14,19,.72);
  border-bottom:1px solid var(--border);
}
.nav-in{display:flex; align-items:center; gap:26px; height:66px}
.brand{display:flex; align-items:baseline; gap:9px; text-decoration:none; margin-right:auto}
.brand img{display:block}
.brand-sub{
  font:600 10px/1 ui-monospace, Menlo, monospace;
  letter-spacing:.2em; color:#5f6d80;
}
.nav-links{display:flex; gap:22px}
.nav-links a{
  color:var(--dim); text-decoration:none; font-size:14px; font-weight:500;
  padding:6px 0; border-bottom:1px solid transparent;
}
.nav-links a:hover{color:var(--text); border-bottom-color:var(--hairline)}
.nav-cta{display:flex; gap:10px}

.eyebrow{
  font:600 11px/1.4 ui-monospace, Menlo, monospace;
  letter-spacing:.16em; color:var(--accent); margin:0 0 18px;
}


/* ---------- hub: hero --------------------------------------------------- */
.hub-hero{padding:88px 0 46px}
.hub-hero h1{
  font-size:clamp(34px, 4.2vw, 52px); line-height:1.05;
  letter-spacing:-.025em; margin:0 0 18px; font-weight:700;
}
.hl{background:linear-gradient(180deg, #6ee8ff, #00b7dd); -webkit-background-clip:text; background-clip:text; color:transparent}
.lede{font-size:17.5px; color:#c3cddc; margin:0 0 10px; max-width:38em}

/* ---------- hub: product grid ------------------------------------------- */
.hub-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px; padding:26px 0 20px;
}

.product{
  position:relative; display:flex; flex-direction:column;
  background:linear-gradient(180deg, var(--panel-top), var(--panel));
  border:1px solid var(--hairline); border-radius:var(--radius);
  overflow:hidden;
  transition:border-color .16s ease, transform .16s ease;
}
.product:hover{border-color:#33414f; transform:translateY(-2px)}

.product-shot{
  display:block; height:270px; overflow:hidden;
  border-bottom:1px solid var(--border); background:#0d1219;
}
/* cover + top: the two products have very different aspect ratios (ENGINE is
   nearly square at 1800×1720, SONAR is wide at 2364×1496). `contain` shrank the
   square one to a narrow strip inside a wide card; cropping from the TOP keeps
   both filling the band and shows the interesting half of each interface
   (toolbar + chord engine / the radar). */
.product-shot img{
  width:100%; height:100%; object-fit:cover; object-position:top center;
  display:block; opacity:.94;
}
.product:hover .product-shot img{opacity:1}
.product-shot:empty{background:linear-gradient(135deg,#0d1219,#131a23)}

.product-body{padding:22px 22px 24px; display:flex; flex-direction:column; flex:1}
.product h2{margin:0 0 6px; font-size:21px; letter-spacing:-.01em}
.product .kind{
  font:600 10.5px/1 ui-monospace, Menlo, monospace;
  letter-spacing:.16em; color:var(--dim); margin:0 0 12px; text-transform:uppercase;
}
.product p{margin:0 0 16px; color:var(--dim); font-size:14.5px}
.product p b{color:var(--text); font-weight:600}

.product-meta{
  display:flex; gap:16px; flex-wrap:wrap; margin:0 0 20px;
  font-size:12.5px; color:var(--dim);
}
.product-meta span{display:inline-flex; align-items:center; gap:6px}
.product-meta .dot{width:5px; height:5px; border-radius:50%; background:var(--accent); opacity:.6}

.product-foot{margin-top:auto; display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.product-price{
  font:700 20px/1 ui-monospace, Menlo, monospace;
  letter-spacing:-.01em; margin-right:auto;
}
.product-price span{font:500 11px/1.3 -apple-system, sans-serif; color:var(--dim); display:block; letter-spacing:0; margin-top:4px}

/* A product announced but not sold yet. Deliberately visible: an empty slot
   says "more is coming" better than silently having only two items. The shot
   band is removed rather than left empty — a large black rectangle reads as a
   broken image, not as "no screenshot yet". */
.product-soon{opacity:.62}
.product-soon:hover{transform:none; border-color:var(--hairline)}
.product-soon .product-shot{display:none}
.product-soon .product-body{padding-top:32px; min-height:270px; justify-content:center}

/* ---------- hub: shared legal block ------------------------------------- */
.hub-legal{
  margin:56px 0 0; padding:26px 0 0;
  border-top:1px solid var(--border);
}
.hub-legal h2{font-size:13px; letter-spacing:.16em; text-transform:uppercase; color:#5f6d80; margin:0 0 14px}
.hub-legal p{margin:0 0 10px; color:var(--dim); font-size:13.5px; max-width:74ch}

/* ---------- footer ------------------------------------------------------ */
.footer{border-top:1px solid var(--border); background:#090c11; padding:52px 0 26px; margin-top:64px}
.footer-in{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px}
.footer-brand img{opacity:.85; margin-bottom:12px}
.footer-brand p{margin:0; color:var(--dim); font-size:13px}
.footer-col h4{
  margin:0 0 10px; font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:#5f6d80;
}
.footer-col a{
  display:block; color:var(--dim); text-decoration:none; font-size:13.5px; margin-bottom:7px;
}
.footer-col a:hover{color:var(--text)}
.footer-bottom{
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  margin-top:38px; padding-top:20px; border-top:1px solid var(--border);
  color:#5f6d80; font-size:12.5px;
}
.footer-legal{margin-top:18px}
.footer-legal p{margin:0 0 8px; color:#5f6d80; font-size:12px; max-width:92ch}

.skip{
  position:absolute; left:-9999px; top:0; background:var(--accent); color:#04121a;
  padding:10px 16px; z-index:100; text-decoration:none; font-weight:600;
}
.skip:focus{left:16px; top:16px}

/* ---------- responsive -------------------------------------------------- */
@media (max-width:900px){
  .hub-grid{grid-template-columns:1fr}
  .footer-in{grid-template-columns:1fr 1fr}
  .nav-links{display:none}
}
@media (max-width:560px){
  .nav-in{height:60px; gap:12px}
  .brand-sub{display:none}
  .nav-cta .btn{padding:9px 14px; font-size:13px}
  .hub-hero{padding:56px 0 34px}
  .footer-in{grid-template-columns:1fr}
  .product-foot{gap:10px}
  .btn-lg{padding:12px 20px; font-size:14px}
}

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

.hub-legal b{color:var(--text)}
