/* iRecord landing page — dark, minimal, red accent */

:root {
  --bg: #0a0c10;
  --bg-soft: #0e1117;
  --panel: #13171f;
  --panel-2: #171c26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #eef2f8;
  --muted: #9da8b9;
  --faint: #6f7a8c;
  --accent: #ff4d5e;
  --accent-hi: #ff7a72;
  --accent-soft: rgba(255, 77, 94, 0.13);
  --radius: 18px;
  --max: 1120px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "SFMono-Regular", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(255, 77, 94, 0.16), transparent 62%),
    radial-gradient(760px 520px at 92% -6%, rgba(84, 124, 255, 0.13), transparent 66%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 100%);
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: #10131a;
  font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
}

.brand-mark { width: 28px; height: 28px; color: var(--text); }
.brand-dot { fill: var(--accent); }

.brand-ver {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 8px;
  transform: translateY(1px);
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav a { transition: color 0.18s; }
.nav a:hover { color: var(--text); }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.lang button:hover { color: var(--text); }
.lang button.is-active {
  background: var(--text);
  color: #10131a;
}

/* ---------- hero ---------- */

.hero { padding: 86px 0 66px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 77, 94, 0.16);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 4.8vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff8a78 0%, var(--accent) 55%, #ff3a7d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #ff5f6c, #f5384c);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(255, 77, 94, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 36px -12px rgba(255, 77, 94, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: #8492a6;
}
.meta-chips li {
  position: relative;
  padding-left: 14px;
  letter-spacing: 0.01em;
}
.meta-chips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  transform: translateY(-50%);
}

/* hero stage */

.hero-art { position: relative; }

.stage {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 20% 0%, #202a3c 0%, #141922 48%, #0d1017 100%);
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.stage-desktop { position: absolute; inset: 0; opacity: 0.85; }

.fake-win {
  position: absolute;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}
.fake-a { width: 46%; height: 34%; left: 8%; top: 15%; }
.fake-b { width: 52%; height: 40%; right: 7%; top: 26%; }
.fake-c { width: 38%; height: 24%; left: 12%; bottom: 12%; }

.fake-win i {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  margin: 12px 0 0 12px;
  float: left;
}
.fake-win i + i { margin-left: 5px; }

.fake-win span {
  display: block;
  height: 7px;
  margin: 12px 14px 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}
.fake-win span:nth-child(2n) { width: 72%; }

.stage-frame {
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 77, 94, 0.78);
  border-radius: 12px;
  box-shadow: 0 0 46px rgba(255, 77, 94, 0.22), inset 0 0 24px rgba(255, 77, 94, 0.08);
}

.rec-chip {
  position: absolute;
  top: 6px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 7px;
  background: #1a0e12;
  border: 1px solid rgba(255, 77, 94, 0.45);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #ffb3b9;
}
.rec-chip b { color: #fff; font-weight: 600; }
.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.float {
  position: absolute;
  border-radius: 10px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
  animation: drift 7s ease-in-out infinite;
}
.float-bar {
  width: 66%;
  left: 50%;
  top: 21%;
  transform: translateX(-50%);
}
.float-panel {
  width: 82%;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  animation-delay: -3.2s;
}
@keyframes drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -6px; }
}

.stage-glow {
  position: absolute;
  inset: -8% -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(255, 77, 94, 0.22), transparent 72%);
  filter: blur(24px);
}

/* ---------- sections ---------- */

.section { padding: 74px 0; }

.kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hi);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.3vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.section-desc {
  margin: 0 0 38px;
  max-width: 46em;
  color: var(--muted);
}

/* features */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 120px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 77, 94, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 94, 0.35);
}
.card:hover::after { opacity: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 11px;
  border: 1px solid rgba(255, 77, 94, 0.28);
  background: var(--accent-soft);
  color: #ff8d97;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* screenshots */

.shots-section { border-top: 1px solid var(--line); }

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.shot:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.shot-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(255, 255, 255, 0.055), transparent 70%),
    var(--bg-soft);
  cursor: zoom-in;
}

.shot-media img {
  width: 100%;
  border-radius: 9px;
  box-shadow: 0 20px 46px -26px rgba(0, 0, 0, 0.95);
}

.media-center {
  display: grid;
  place-items: center;
  min-height: 216px;
}
.media-center img {
  width: auto;
  max-width: min(100%, 560px);
  max-height: 120px;
}

.shot-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 12, 16, 0.78);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.shot-media:hover .shot-zoom { opacity: 1; transform: translateY(-1px); }
.shot-zoom .ic { width: 17px; height: 17px; }

.shot figcaption { padding: 20px 24px 24px; }

.shot-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot h3 { margin: 0 0 6px; font-size: 1.02rem; }
.shot p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* formats */

.formats-section { padding-top: 0; }

.format-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 42px 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 77, 94, 0.1), transparent 60%),
    linear-gradient(140deg, #161b24, #101319);
}
.format-band .section-desc { margin-bottom: 0; }

.format-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.format-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.fmt-name {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.fmt-name i { color: var(--faint); font-style: normal; padding: 0 2px; }
.fmt-desc { font-size: 0.82rem; color: var(--muted); text-align: right; }

/* cli */

.cli-section { border-top: 1px solid var(--line); }

.cli-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}
.cli-copy .section-desc { margin-bottom: 26px; }

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.ticks li {
  display: flex;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--muted);
}
.tick-dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.14);
}

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0b0e13;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.term-bar span { width: 10px; height: 10px; border-radius: 50%; }
.t-red { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green { background: #28c840; }
.term-bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.terminal pre {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.75;
  color: #c7d1e0;
  tab-size: 2;
}

.c-cmd { color: var(--accent-hi); }
.c-json { color: #8b98ab; }
.c-key { color: #8ec7ff; }
.c-str { color: #9ce29c; }
.c-num { color: #ffb86b; }
.c-bool { color: #d7a6ff; }

/* download */

.download-section { padding-top: 0; }

.dl-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  padding: 46px 46px;
  border: 1px solid rgba(255, 77, 94, 0.25);
  border-radius: 24px;
  background:
    radial-gradient(70% 120% at 15% 0%, rgba(255, 77, 94, 0.16), transparent 60%),
    linear-gradient(150deg, #191e28, #0f1218);
  box-shadow: 0 40px 90px -60px rgba(255, 77, 94, 0.6);
}
.dl-card .section-desc { margin-bottom: 26px; }

.dl-req {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.025);
}
.dl-req h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dl-req ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.dl-req li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}
.dl-req li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 77, 94, 0.7);
}

/* footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}
.brand-mark.small { width: 22px; height: 22px; }
.footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--faint);
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }

.lightbox figure {
  margin: 0;
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 40px 120px -30px #000;
}
.lightbox figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.12); }

/* reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* focus */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .format-band { grid-template-columns: 1fr; gap: 30px; padding: 36px; }
  .cli-grid { grid-template-columns: 1fr; gap: 34px; }
  .dl-card { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
}

@media (max-width: 860px) {
  .hero { padding: 60px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: 2; }
  .hero-copy { order: 1; }
  .shots { grid-template-columns: 1fr; }
  .media-center { min-height: 190px; }
  .float-panel { width: 88%; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 60px; gap: 14px; }
  .brand-ver { display: none; }
  .section { padding: 54px 0; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 22px 20px; }
  .format-band, .dl-card { padding: 26px 22px; border-radius: 18px; }
  .format-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .fmt-desc { text-align: left; }
  .hero-actions .btn { width: 100%; }
  .stage { aspect-ratio: 4 / 3.4; }
  .float-bar { width: 78%; top: 18%; }
  .float-panel { width: 92%; }
  .rec-chip { left: 26px; }
  .lightbox { padding: 16px; }
  .terminal pre { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
