/* Hermes Audio's own little site: the app's blue-violet, system type, glassy macOS cards */

:root {
  --bg: #0d0d1a;
  --card: rgba(255, 255, 255, 0.045);
  --card-line: rgba(255, 255, 255, 0.09);
  --text: #f4f5ff;
  --text-2: rgba(222, 226, 255, 0.72);
  --text-3: rgba(232, 234, 255, 0.42);
  --a: #4c8dff;
  --b: #5b33f0;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --head: "Inter Tight", "Inter", -apple-system, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.grad {
  background: linear-gradient(90deg, #7fb0ff, #8a63ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.h-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 10, 26, 0.7); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.h-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.h-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.h-brand img { width: 36px; height: 36px; margin: -3px; }
.h-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.h-nav a { text-decoration: none; color: var(--text-2); }
.h-nav a:hover { color: var(--text); }
.h-nav .pill { color: #fff; padding: 7px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--a), var(--b)); }

/* Hero */
.h-hero { position: relative; text-align: center; padding: clamp(56px, 9vw, 112px) 0 0; isolation: isolate; }
.h-hero::before {
  content: "";
  position: absolute; left: 50%; top: -200px; width: 1400px; height: 1100px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 35% 45%, rgba(76, 141, 255, 0.4), transparent),
    radial-gradient(closest-side at 65% 55%, rgba(91, 51, 240, 0.5), transparent);
  filter: blur(20px);
  z-index: -1;
}
.h-hero .icon { width: 150px; height: 150px; margin: 0 auto 26px; }
.h-hero .icon-shine { position: relative; display: block; width: 150px; height: 150px; margin: 0 auto 26px; }
.h-hero .icon-shine .icon { margin: 0; }
/* Every so often a small glint of light makes one lap of the icon's rim. The mask is the icon's own edge,
   so nothing crosses its face. */
@property --rim { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.h-hero .icon-shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("/assets/hermes-icon-rim.png") center / contain no-repeat;
          mask: url("/assets/hermes-icon-rim.png") center / contain no-repeat;
  background: conic-gradient(from var(--rim), transparent 0deg, rgba(255, 255, 255, 0.95) 24deg, transparent 64deg);
  opacity: 0;
  animation: icon-rim 11s 1.5s infinite;
}
/* One lap of the rim in about two and a half seconds, then a long rest before the next */
@keyframes icon-rim {
  0% { --rim: -40deg; opacity: 0; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  3% { opacity: 1; }
  19% { opacity: 1; }
  23% { --rim: 320deg; opacity: 0; }
  100% { --rim: 320deg; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .h-hero .icon-shine::after { animation: none; opacity: 0; } }
.h-hero h1 { font-size: clamp(44px, 8vw, 96px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.h-hero .lede { text-wrap: balance; max-width: 620px; margin: 28px auto 36px; font-size: clamp(19px, 2.2vw, 22px); color: var(--text-2); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 10px 30px rgba(91, 51, 240, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .15s, filter .15s;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.button svg { width: 18px; height: 18px; fill: #fff; }
/* Until the notarised build is out: the full button, but it doesn't go anywhere */
.button--soon { cursor: default; }
.button--soon:hover { transform: none; filter: none; }
.fine { color: var(--text-3); font-size: 15px; margin-top: 16px; }

/* Desktop scene */
.h-stage { margin-top: clamp(48px, 7vw, 80px); }
.scene {
  position: relative;
  height: clamp(560px, 56vw, 740px);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 25% 25%, #5b7dff, transparent 70%),
    radial-gradient(60% 70% at 85% 85%, #b04bff, transparent 70%),
    linear-gradient(160deg, #2c3fb8, #3a1b8f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
  transform: translateZ(0);
}
.menubar {
  border-radius: 24px 24px 0 0;
  position: absolute; inset: 0 0 auto; height: 30px;
  display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 16px;
  background: rgba(20, 18, 40, 0.35);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 13px; font-weight: 600; color: #fff;
}
.menubar svg { display: block; fill: none; }
.menubar .mb-wifi { width: 17px; height: 14px; }
.menubar .mb-batt { width: 25px; height: 12px; }
.mb-hermes { width: 30px; height: 22px; border-radius: 5px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); }
/* A template image, like the real menu bar item: pure white */
.mb-hermes img { width: 17px; height: 17px; filter: brightness(0) invert(1); }
.scene-panel { position: absolute; top: 38px; right: 50%; transform: translateX(50%); }

/* Features */
.h-section { padding: clamp(64px, 9vw, 112px) 0 0; }
.h-section > .wrap > h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 32px; }
.h-section > .wrap > .sub { color: var(--text-2); font-size: 20px; max-width: 560px; margin-bottom: 48px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative;
  padding: 30px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--card-line);
  overflow: hidden;
}
.card--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.card--full { grid-column: 1 / -1; }
.card--span2 { grid-column: span 2; }
.card--keys .keys { justify-content: flex-start; margin-top: 24px; gap: 8px; }
.card--keys .key { min-width: 56px; height: 56px; padding: 0 12px; font-size: 24px; border-radius: 14px; }
.card--glow { background: radial-gradient(80% 120% at 100% 0%, rgba(91, 51, 240, 0.35), transparent 70%), var(--card); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); margin-bottom: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.card-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16.5px; }

.keys { display: flex; gap: 10px; justify-content: center; }
.key {
  min-width: 72px; height: 72px; padding: 0 16px; display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(#2c2b40, #1d1c2e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 0 #0a0916, 0 12px 28px rgba(0, 0, 0, 0.5);
  font-size: 30px; font-weight: 600;
}

/* Take Over: the headphones hop along an encrypted link from one Mac to the other */
.handoff { position: relative; width: 300px; height: 250px; margin: 0 auto; --loop: 7s; }
.ho-arc { position: absolute; inset: 0 0 auto; width: 300px; height: 130px; overflow: visible; }
.ho-arc path { fill: none; stroke: rgba(148, 158, 255, 0.45); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; animation: ho-dash 1.2s linear infinite; }
.ho-lock { position: absolute; left: 136px; top: 34px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1d1c35; border: 1px solid rgba(148, 158, 255, 0.4); }
.ho-lock svg { width: 14px; height: 14px; stroke: #949eff; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.ho-mac { position: absolute; top: 80px; width: 92px; padding: 10px 8px 9px; border-radius: 14px; text-align: center; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-line); font-size: 13px; color: var(--text-2); transition: none; }
.ho-mac svg { display: block; width: 34px; height: 34px; margin: 0 auto 4px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.ho-mac--from { left: 4px; animation: ho-from var(--loop) infinite; }
.ho-mac--to { right: 4px; animation: ho-to var(--loop) infinite; }
.ho-buds { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 0 0 4px rgba(91, 51, 240, 0.25), 0 6px 20px rgba(91, 51, 240, 0.6); offset-path: path("M50 70 Q150 -40 250 70"); offset-rotate: 0deg; animation: ho-hop var(--loop) infinite; z-index: 2; }
.ho-buds svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ho-row { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; background: rgba(20, 19, 38, 0.9); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.ho-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); animation: ho-icon var(--loop) infinite; }
.ho-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ho-text { flex: 1; min-width: 0; line-height: 1.25; }
.ho-text b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ho-text small { position: relative; display: block; height: 16px; font-size: 12px; color: var(--text-3); }
.ho-text em { position: absolute; left: 0; font-style: normal; }
.ho-s1 { animation: ho-s1 var(--loop) infinite; }
.ho-s2 { color: #949eff; animation: ho-s2 var(--loop) infinite; }
.ho-btn { flex: none; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.12); animation: ho-btn var(--loop) infinite; }
@keyframes ho-dash { to { stroke-dashoffset: -9; } }
@keyframes ho-hop {
  0%, 30% { offset-distance: 0%; opacity: 1; }
  52% { offset-distance: 100%; animation-timing-function: ease-out; }
  52%, 88% { offset-distance: 100%; opacity: 1; }
  94% { offset-distance: 100%; opacity: 0; }
  95% { offset-distance: 0%; opacity: 0; }
  100% { offset-distance: 0%; opacity: 1; }
}
@keyframes ho-from {
  0%, 32% { color: var(--text); border-color: rgba(120, 100, 255, 0.8); box-shadow: 0 0 0 4px rgba(91, 51, 240, 0.2); }
  40%, 92% { color: var(--text-2); border-color: var(--card-line); box-shadow: none; }
  100% { color: var(--text); border-color: rgba(120, 100, 255, 0.8); box-shadow: 0 0 0 4px rgba(91, 51, 240, 0.2); }
}
@keyframes ho-to {
  0%, 50% { color: var(--text-2); border-color: var(--card-line); box-shadow: none; }
  56%, 88% { color: var(--text); border-color: rgba(120, 100, 255, 0.8); box-shadow: 0 0 0 4px rgba(91, 51, 240, 0.2), 0 0 36px rgba(91, 51, 240, 0.35); }
  95%, 100% { color: var(--text-2); border-color: var(--card-line); box-shadow: none; }
}
@keyframes ho-btn {
  0%, 18% { background: rgba(255, 255, 255, 0.12); opacity: 1; transform: none; }
  22% { background: linear-gradient(135deg, var(--a), var(--b)); transform: scale(0.94); }
  28% { background: linear-gradient(135deg, var(--a), var(--b)); transform: none; opacity: 1; }
  36%, 90% { opacity: 0; }
  96%, 100% { opacity: 1; background: rgba(255, 255, 255, 0.12); }
}
@keyframes ho-icon {
  0%, 52% { background: rgba(255, 255, 255, 0.1); }
  56%, 90% { background: linear-gradient(135deg, var(--a), var(--b)); }
  95%, 100% { background: rgba(255, 255, 255, 0.1); }
}
@keyframes ho-s1 { 0%, 50% { opacity: 1; } 54%, 91% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes ho-s2 { 0%, 50% { opacity: 0; } 54%, 91% { opacity: 1; } 95%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ho-arc path, .ho-mac, .ho-buds, .ho-icon, .ho-s1, .ho-s2, .ho-btn { animation: none; }
  .ho-buds { offset-distance: 100%; }
  .ho-s1, .ho-btn { opacity: 0; }
  .ho-mac--to { color: var(--text); border-color: rgba(120, 100, 255, 0.8); }
  .ho-icon { background: linear-gradient(135deg, var(--a), var(--b)); }
}

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.spec { text-align: center; padding: 20px 16px; border-radius: 20px; border: 1px solid var(--card-line); font-size: 16px; font-weight: 600; }

/* Download */
.h-cta { text-align: center; padding: clamp(80px, 11vw, 140px) 0; position: relative; isolation: isolate; }
.h-cta::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(91, 51, 240, 0.4), transparent); z-index: -1;
}
.h-cta .icon { width: 116px; height: 116px; margin: 0 auto 20px; }
.h-cta h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.h-cta p { color: var(--text-2); margin: 20px auto 32px; max-width: 480px; }

/* Footer: back to the studio */
.h-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 32px 0 48px; color: var(--text-3); font-size: 15px; }
.h-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h-footer a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-2); }
.h-footer a:hover { color: var(--text); }
.h-footer img { width: 52px; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .card--wide { grid-column: 1 / -1; }
  .specs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .h-nav { gap: 16px; }
  .h-nav .hide-sm { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-template-columns: 1fr; grid-column: auto; }
  .card--full, .card--span2 { grid-column: auto; }
  .scene-panel { right: 50%; transform: translateX(50%) scale(0.86); transform-origin: top center; }
  .key { min-width: 60px; height: 60px; font-size: 24px; }
}

h1, h2, h3 { font-family: var(--head); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #949eff; margin-bottom: 14px; }
.h-hero, .h-cta { overflow-x: clip; }

/* Press the chord in sequence and hold it while the card is hovered. */
.card--keys .key {
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card--keys:hover .key {
  transform: translateY(5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 0 #0a0916, 0 4px 10px rgba(0, 0, 0, 0.4);
}
.card--keys:hover .key:nth-child(2) { transition-delay: 90ms; }
.card--keys:hover .key:nth-child(3) { transition-delay: 180ms; }
.card--keys:hover .key:nth-child(4) { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
  .card--keys .key { transition: none; }
  .card--keys:hover .key { transform: none; }
}

@media (max-width: 600px) {
  .specs { grid-template-columns: 1fr; }
}

.h-footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Keep keyboard navigation visible against the dark backgrounds. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a99aff;
  outline-offset: 5px;
}
