/* ————— Sonicwave landing — dark hi-fi ————— */

:root {
  --bg: #0b0b0d;
  --panel: #131316;
  --panel-2: #17171b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ece9e3;
  --muted: #9b988f;
  --red: #ff453a;
  --red-deep: #c92a22;
  --display: "Bricolage Grotesque", "Archivo", sans-serif;
  --body: "Archivo", -apple-system, sans-serif;
  --lcd-font: "Doto", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain + top glow atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 69, 58, 0.13), transparent 62%);
}

a { color: inherit; }
::selection { background: var(--red); color: #fff; }

kbd {
  font-family: var(--body);
  font-size: 0.82em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.08em 0.42em;
  background: var(--panel-2);
  white-space: nowrap;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

/* ————— Nav ————— */

.nav {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav nav { display: flex; gap: 1.6rem; align-items: center; }

.nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--text); }

.nav-gh {
  color: var(--text) !important;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.35rem 0.95rem;
}
.nav-gh:hover { border-color: rgba(255, 255, 255, 0.25); }

/* ————— Hero ————— */

.hero {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
}

/* The LCD — the iTunes-style readout from the app's toolbar */
.lcd {
  width: min(430px, 100%);
  margin: 0 auto 3.2rem;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03) 45%, rgba(0,0,0,0.4));
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 3px 10px rgba(0, 0, 0, 0.4);
  animation: lcd-drop 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lcd-drop {
  from { opacity: 0; transform: translateY(-18px) scale(0.96); }
}

.lcd-glass {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem 1.15rem;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent 38%),
    #121114;
  overflow: hidden;
}

/* scanlines */
.lcd-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.22) 2px 3px);
}

.lcd-note {
  color: var(--red);
  font-size: 1.3rem;
  text-shadow: 0 0 12px rgba(255, 69, 58, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.lcd-text {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  text-align: left;
  min-width: 0;
}

.lcd-title, .lcd-artist, .lcd-time {
  font-family: var(--lcd-font);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lcd-title {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #f3f1ec;
  text-shadow: 0 0 10px rgba(243, 241, 236, 0.35);
}

.lcd-artist {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #8b8880;
}

.lcd-time {
  font-size: 0.85rem;
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 69, 58, 0.6);
  font-variant-numeric: tabular-nums;
}

.lcd-progress {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.lcd-progress span {
  display: block;
  height: 100%;
  width: 43%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  box-shadow: 0 0 8px rgba(255, 69, 58, 0.7);
  transition: width 1s linear;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--red);
}

.lede {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  color: var(--muted);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.lede strong { color: var(--text); font-weight: 600; }

.cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 99px;
  padding: 0.78rem 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(180deg, #ff5c52, var(--red-deep));
  color: #fff;
  box-shadow: 0 6px 22px rgba(255, 69, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 69, 58, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }

.fineprint { font-size: 0.82rem; color: var(--muted); }

.btn-primary .ver {
  font-weight: 500;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ————— Screenshot ————— */

.shot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  perspective: 1400px;
}

.shot-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(255, 69, 58, 0.07);
  animation: shot-rise 1.1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes shot-rise {
  from { opacity: 0; transform: translateY(34px) rotateX(4deg); }
}

.shot-frame img { display: block; width: 100%; height: auto; }

/* ————— Sections ————— */

.features, .spec, .install {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 1rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
}

.index {
  font-family: var(--lcd-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.grid article {
  background: var(--panel);
  padding: 1.7rem 1.6rem 1.9rem;
  transition: background 0.25s;
}
.grid article:hover { background: var(--panel-2); }

.grid h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.grid p { color: var(--muted); font-size: 0.95rem; }
.grid i { color: var(--text); }

/* ————— Spec sheet ————— */

.spec dl {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 0.6rem 1.6rem;
}

.spec dl > div {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
}
.spec dl > div + div { border-top: 1px dashed rgba(255, 255, 255, 0.08); }

.spec dt {
  flex: 0 0 clamp(110px, 18vw, 190px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.spec dd { color: var(--text); font-size: 0.97rem; }

/* ————— Install ————— */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.2rem;
  margin-bottom: 3rem;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--lcd-font);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--red);
  text-shadow: 0 0 14px rgba(255, 69, 58, 0.45);
  margin-bottom: 0.7rem;
}

.steps h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.45rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }
.steps a { color: var(--text); }

.cta.center { margin: 0 0 1rem; }

/* ————— Changelog ————— */

.changelog {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 1rem;
}

.release {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 1rem 2rem;
  padding: 1.9rem 0;
}
.release + .release { border-top: 1px dashed rgba(255, 255, 255, 0.08); }

.release header { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }

.release-ver {
  font-family: var(--lcd-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--red);
  text-shadow: 0 0 14px rgba(255, 69, 58, 0.4);
}

.release time { font-size: 0.85rem; color: var(--muted); }

.release-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(255, 69, 58, 0.4);
  border-radius: 99px;
  padding: 0.14rem 0.6rem;
}

.release ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

.release li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 1.1rem;
  position: relative;
}
.release li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-deep);
}
.release li strong { color: var(--text); font-weight: 600; }

.changelog-more { margin-top: 1.2rem; font-size: 0.92rem; }
.changelog-more a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.changelog-more a:hover { color: var(--text); }

@media (max-width: 560px) {
  .release { grid-template-columns: 1fr; gap: 0.8rem; }
  .release header { flex-direction: row; align-items: baseline; gap: 0.8rem; }
}

/* ————— Footer ————— */

footer {
  margin-top: 5.5rem;
  border-top: 1px solid var(--line);
  padding: 2.2rem 1.5rem 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--text); }

/* ————— Reveals ————— */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .lcd, .shot-frame { animation: none; }
  .lcd-note { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .nav nav { gap: 1rem; }
  .nav nav a:not(.nav-gh) { display: none; }
  .hero { padding-top: 3rem; }
}
