@font-face {
  font-family: "Minecraft";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/minecraft.woff2") format("woff2");
}

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "Fira Code", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-pixel: "Minecraft", var(--font-mono);

  --motion-fast: 220ms;
  --motion-normal: 340ms;
  --ease-out-expo: cubic-bezier(0.25, 1, 0.5, 1);

  --bg: #010101;
  --bg-elevated: #0a0a0a;
  --bg-card: #0e0e0e;
  --bg-card-hover: #141414;
  --bg-muted: #141414;
  --bg-glass: rgba(7, 7, 7, 0.84);
  --bg-footer: #070707;

  --text: #ffffff;
  --text-secondary: #e5e5e5;
  --text-muted: #a3a3a3;
  --text-faint: #808080;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(227, 232, 253, 0.18);

  --pastel-ice: #e3e8fd;
  --pastel-mint: #e8fde3;
  --pastel-warn: #fdf3e3;

  --accent-blue: #6a92ff;
  --accent-purple: #b277ff;
  --accent-green: #27d374;
  --accent-red: #ff5555;

  --btn-primary-bg: #e3e8fd;
  --btn-primary-fg: #010101;
  --btn-primary-hover: #ffffff;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --header-h: 68px;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 42px rgba(227, 232, 253, 0.12);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  color-scheme: dark;
}

::selection {
  background-color: var(--pastel-ice);
  color: #010101;
}

:focus-visible {
  outline: 2px solid var(--pastel-ice);
  outline-offset: 2px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 50% -10%, rgba(227, 232, 253, 0.06), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(106, 146, 255, 0.04), transparent 60%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
.landing-main,
.clip-main,
.message-main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

code,
.mono {
  font-family: var(--font-mono);
}

.pixel {
  font-family: var(--font-pixel);
  letter-spacing: 0.02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: var(--bg-glass);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
  transition: transform 0.2s var(--ease-out-expo);
}

.header-brand:active {
  transform: scale(0.97);
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: #010101;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-sep {
  color: var(--pastel-ice);
  opacity: 0.6;
  padding: 0 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  justify-self: center;
  padding: 0.26rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.is-active {
  color: #010101;
  background: var(--pastel-ice);
  font-weight: 700;
}

.header-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-icon-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease,
    color var(--motion-fast) ease;
}

.header-icon-link:hover {
  border-color: rgba(227, 232, 253, 0.3);
  background: rgba(227, 232, 253, 0.12);
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(39, 211, 116, 0.12);
  animation: statusPulse 2.8s ease-in-out infinite;
}

.status-pill--mint {
  color: var(--pastel-mint);
  border-color: rgba(232, 253, 227, 0.18);
  background: rgba(232, 253, 227, 0.06);
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(39, 211, 116, 0.12);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px rgba(39, 211, 116, 0.04);
  }
}

/* -------------------------------------------------------------------------
   Buttons and forms
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.66rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease,
    color var(--motion-fast) ease, transform 0.18s var(--ease-out-expo);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(227, 232, 253, 0.08);
  border-color: var(--border-hover);
  color: var(--text);
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn-quiet:hover {
  color: var(--pastel-ice);
}

.btn-sm {
  padding: 0.44rem 0.72rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.btn-block {
  width: 100%;
}

.input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.68rem 0.82rem;
  outline: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.input::placeholder {
  color: var(--text-faint);
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.input:focus {
  border-color: rgba(227, 232, 253, 0.5);
  box-shadow: 0 0 0 3px rgba(227, 232, 253, 0.08);
  background: #0c0c0c;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.field-label .input {
  margin-top: 0.35rem;
}

.form-status {
  min-height: 1.2em;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.form-status.is-error {
  color: var(--accent-red);
}

.form-status.is-ok {
  color: var(--accent-green);
}

.hint {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hint--small {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-faint);
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pastel-ice);
  margin-bottom: 0.65rem;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  padding: 2rem 0 3.5rem;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 560px;
  padding: 3.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: #010101;
  overflow: hidden;
  transition: border-color var(--motion-fast) ease;
}

.hero-panel:hover {
  border-color: var(--border-hover);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.85) brightness(0.7);
  transform: scale(1.02);
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 1, 1, 0.96) 0%, rgba(1, 1, 1, 0.82) 44%, rgba(1, 1, 1, 0.26) 100%),
    linear-gradient(0deg, rgba(1, 1, 1, 0.86), transparent 58%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.32rem 0.78rem;
  margin-bottom: 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(6, 6, 6, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pastel-ice);
}

.pill-sep {
  width: 1px;
  height: 12px;
  background: rgba(227, 232, 253, 0.22);
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 1.15rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.hero-title .accent {
  color: var(--pastel-ice);
}

.hero-subtitle {
  max-width: 34rem;
  margin-bottom: 1.55rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #e9ebf5;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.lookup-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 560px;
  padding: 0.32rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.lookup-form:focus-within {
  border-color: rgba(227, 232, 253, 0.36);
  box-shadow: 0 0 0 3px rgba(227, 232, 253, 0.06);
}

.lookup-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.62rem 0.7rem;
  font-size: 0.85rem;
}

.lookup-input:focus {
  box-shadow: none;
  background: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.vault-card {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-card);
  animation: rise 0.7s var(--ease-out-expo) 0.12s both;
}

.vault-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.vault-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vault-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--border);
}

.vault-steps li:last-child {
  border-bottom: 0;
}

.vault-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(227, 232, 253, 0.08);
  border: 1px solid rgba(227, 232, 253, 0.08);
  color: var(--pastel-ice);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.vault-step-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vault-step-copy strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.vault-step-copy span {
  font-size: 0.68rem;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vault-state {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.vault-state--accent {
  color: var(--pastel-mint);
}

.vault-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-faint);
}

.vault-copy {
  color: var(--pastel-mint);
  text-align: right;
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.55rem;
}

.section-sub {
  max-width: 62ch;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.section-note {
  font-size: 0.7rem;
  color: var(--text-faint);
  white-space: nowrap;
  padding-bottom: 0.35rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  position: relative;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0e0e0e, #0a0a0a);
  transition: transform var(--motion-normal) var(--ease-out-expo), border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: linear-gradient(180deg, #121212, #0b0b0b);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(227, 232, 253, 0.1);
  background: rgba(227, 232, 253, 0.08);
  color: var(--pastel-ice);
}

.feature-index {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-faint);
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.feature-meta {
  display: block;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-faint);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.step-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.step-number {
  display: block;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--pastel-ice);
  opacity: 0.75;
}

.step-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-card p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.step-card code {
  padding: 0.08rem 0.32rem;
  border-radius: 5px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  font-size: 0.8em;
  color: var(--pastel-ice);
}

.privacy-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(227, 232, 253, 0.06), transparent 60%),
    var(--bg-card);
  overflow: hidden;
}

.check-list {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pastel-mint);
  font-weight: 700;
}

.privacy-code {
  align-self: center;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #070707;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.code-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
}

pre.code {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #010101;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--pastel-ice);
}

.code-accent {
  color: var(--pastel-mint);
}

.code-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.8rem;
  font-size: 0.66rem;
  color: var(--text-faint);
}

/* -------------------------------------------------------------------------
   Clip page
   ------------------------------------------------------------------------- */

.clip-main {
  padding: 1.8rem 0 4rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.74rem;
  color: var(--text-faint);
}

.breadcrumb a:hover {
  color: var(--text);
}

.clip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  align-items: start;
}

.clip-primary {
  min-width: 0;
}

.notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.notice strong {
  color: var(--text);
}

.notice a {
  color: var(--pastel-ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice--warn {
  border-color: rgba(253, 243, 227, 0.22);
  background: rgba(253, 243, 227, 0.06);
  color: #f3e7d3;
}

.notice--muted {
  background: var(--bg-card);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #000;
  overflow: hidden;
}

.clip-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background: rgba(1, 1, 1, 0.92);
}

.player-fallback-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.player-fallback-text {
  max-width: 34rem;
  margin: 0 auto 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.clip-heading {
  margin-top: 1.1rem;
}

.clip-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.35rem;
}

.clip-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.dot-sep {
  color: var(--text-faint);
}

.clip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.clip-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.meta-card,
.trim-card,
.action-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.card-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.card-head .card-title {
  margin-bottom: 0;
}

.meta-list {
  display: grid;
}

.meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--border);
}

.meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.meta-row dt {
  font-size: 0.74rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.meta-row dd {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
  overflow-wrap: anywhere;
}

.trim-card .hint {
  margin-bottom: 0.9rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.trim-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.trim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.trim-now {
  margin: 0.55rem 0 0.85rem;
  font-size: 0.74rem;
  color: var(--text-faint);
}

.link-btn {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.72rem;
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--text);
}

.share-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.share-box .input {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  padding: 0.55rem 0.6rem;
}

.action-card .hint {
  margin-bottom: 0.75rem;
}

/* -------------------------------------------------------------------------
   Message pages
   ------------------------------------------------------------------------- */

.message-main {
  display: grid;
  place-items: center;
  padding: 5rem 0;
}

.message-card {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.message-code {
  font-family: var(--font-mono);
  font-size: 3rem;
  line-height: 1;
  color: var(--pastel-ice);
  opacity: 0.28;
  margin: 0.4rem 0 1rem;
}

.message-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.message-text {
  max-width: 46ch;
  margin: 0 auto 1.4rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.message-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-footer);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-logo-img {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  background: #010101;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 1.25rem;
  font-size: 0.76rem;
  color: var(--text-faint);
}

.footer-disclaimer {
  color: var(--text-faint);
}

/* -------------------------------------------------------------------------
   Toast / noscript
   ------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 100;
  max-width: calc(100vw - 2rem);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--pastel-ice);
  color: #010101;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 240ms var(--ease-out-expo);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--error {
  background: var(--accent-red);
  color: #fff;
}

.noscript {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 110;
  transform: translateX(-50%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: rise 0.65s var(--ease-out-expo) both;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.02s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.06s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.1s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.14s;
}

.hero-content > *:nth-child(5) {
  animation-delay: 0.18s;
}

.hero-content > *:nth-child(6) {
  animation-delay: 0.22s;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.25rem;
    min-height: 0;
  }

  .hero-bg {
    opacity: 0.4;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(1, 1, 1, 0.96) 0%, rgba(1, 1, 1, 0.8) 65%, rgba(1, 1, 1, 0.55) 100%),
      linear-gradient(0deg, rgba(1, 1, 1, 0.94), transparent 62%);
  }

  .vault-card {
    max-width: 560px;
  }

  .privacy-panel {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .clip-layout {
    grid-template-columns: 1fr;
  }

  .clip-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .header-icon-link {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-brand {
    justify-self: start;
  }

  .header-right {
    justify-self: end;
  }

  .section-head--split {
    display: block;
  }

  .section-note {
    display: inline-block;
    margin-top: 0.6rem;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 1.25rem;
  }

  .hero-panel {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
  }

  .hero-title {
    font-size: clamp(2.15rem, 9vw, 3rem);
  }

  .hero-subtitle {
    font-size: 0.94rem;
  }

  .lookup-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .lookup-form .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .privacy-panel {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .clip-main {
    padding-top: 1.25rem;
  }

  .clip-sidebar {
    gap: 0.8rem;
  }

  .clip-actions .btn {
    flex: 1 1 auto;
  }

  .message-card {
    padding: 1.75rem;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 0.9rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-logo-img {
    width: 30px;
    height: 30px;
  }

  .status-pill {
    padding: 0.3rem 0.55rem;
    font-size: 0.68rem;
  }

  .trim-fields {
    grid-template-columns: 1fr;
  }

  .share-box {
    flex-direction: column;
    align-items: stretch;
  }

  .share-box .btn {
    width: 100%;
  }
}

@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;
  }
}
