﻿/* handbrake.cc — premium dark utility / dashboard aesthetic (Tailwind browser v4) */

:root {
  --xcv-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --xcv-display: "Manrope", var(--xcv-font);
  --xcv-radius: 14px;
  --xcv-radius-lg: 18px;
  --xcv-radius-xl: 22px;
  --xcv-cyan: #22d3ee;
  --xcv-cyan-dim: rgba(34, 211, 238, 0.45);
  --xcv-blue: #38bdf8;
  --xcv-teal: #2dd4bf;
  --xcv-purple: #a78bfa;
  --xcv-navy-0: #030712;
  --xcv-navy-1: #0a1628;
  --xcv-navy-2: #0f172a;
  --xcv-panel: rgba(15, 23, 42, 0.55);
  --xcv-panel-border: rgba(34, 211, 238, 0.22);
  --xcv-glow-cyan: 0 0 24px rgba(34, 211, 238, 0.25), 0 0 48px rgba(56, 189, 248, 0.12);
  --xcv-glow-btn: 0 4px 24px rgba(34, 211, 238, 0.35), 0 0 0 1px rgba(34, 211, 238, 0.35) inset;
  --xcv-shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html {
  margin: 0;
}

html.xcv-root {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  background-color: var(--xcv-navy-0);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(99, 102, 241, 0.08), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(45, 212, 191, 0.06), transparent 50%),
    linear-gradient(180deg, #030712 0%, #0a1628 35%, #030712 100%);
  background-attachment: fixed;
  color: #e2e8f0;
}

html.xcv-root body {
  font-family: var(--xcv-font);
  margin: 0;
  background: transparent;
  color: inherit;
}

.xcv-layout {
  min-height: 100vh;
  padding-top: 5.75rem;
}

@media (min-width: 768px) {
  .xcv-layout {
    padding-top: 6.25rem;
  }
}

/* ——— Skip link (no white fill) ——— */
.xcv-a11y-skip:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--xcv-navy-0), 0 0 0 4px var(--xcv-cyan);
  background: rgba(15, 23, 42, 0.95) !important;
  color: #f8fafc !important;
}

/* ——— Floating glass header ——— */
.xcv-top-bar {
  position: fixed;
  z-index: 50;
  left: 0.75rem;
  right: 0.75rem;
  top: 0.65rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--xcv-radius-lg);
  border: 1px solid var(--xcv-panel-border);
  background: rgba(10, 22, 40, 0.78);
  box-shadow:
    var(--xcv-shadow-deep),
    0 0 40px rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

@media (min-width: 768px) {
  .xcv-top-bar {
    left: 1.25rem;
    right: 1.25rem;
    top: 0.85rem;
  }
}

.xcv-top-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.xcv-menu-link {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.xcv-menu-link:hover {
  color: #f1f5f9;
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
}

.xcv-menu-link--current {
  color: #030712 !important;
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 50%, #22d3ee 100%) !important;
  box-shadow: var(--xcv-glow-btn);
  font-weight: 600;
}

.xcv-menu-link--current:hover {
  color: #030712 !important;
  filter: brightness(1.08);
}

/* ——— Buttons ——— */
.xcv-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  border-radius: var(--xcv-radius);
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.xcv-action:active {
  transform: scale(0.98);
}

.xcv-action--compact {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
}

.xcv-action--wide {
  font-size: 1.0625rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--xcv-radius-lg);
}

.xcv-action--solid {
  color: #030712;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 35%, #0ea5e9 100%);
  box-shadow: var(--xcv-glow-btn), 0 8px 28px rgba(14, 165, 233, 0.35);
}

.xcv-action--solid:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  box-shadow:
    var(--xcv-glow-btn),
    0 12px 40px rgba(34, 211, 238, 0.45);
}

.xcv-action--accent {
  color: #030712;
  background: linear-gradient(135deg, #5eead4 0%, #22d3ee 45%, #38bdf8 100%);
  box-shadow: var(--xcv-glow-btn), 0 8px 28px rgba(45, 212, 191, 0.3);
}

.xcv-action--accent:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.4);
}

.xcv-action--outline {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.xcv-action--outline:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  color: #fff;
}

.xcv-action--ghost {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.xcv-action--ghost:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: #f8fafc;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
  transform: translateY(-1px);
}

/* ——— Hero ——— */
.xcv-banner {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(165deg, #020617 0%, #0c1929 45%, #030712 100%);
  color: #f8fafc;
}

.xcv-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 15%, rgba(167, 139, 250, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 70% 90%, rgba(45, 212, 191, 0.1), transparent 55%);
  pointer-events: none;
}

.xcv-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.xcv-banner__grid {
  position: relative;
  z-index: 1;
}

.xcv-banner__headline {
  font-family: var(--xcv-display);
  font-size: clamp(2.35rem, 5vw + 1rem, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
  text-shadow: 0 0 60px rgba(34, 211, 238, 0.15);
}

.xcv-banner__intro {
  font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.22rem);
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.95);
  max-width: 34rem;
}

.xcv-banner__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.xcv-banner__media::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.xcv-banner__media img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.25)) drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6));
  animation: hb-float 7s ease-in-out infinite;
}

@keyframes hb-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ——— Sections ——— */
.xcv-block {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.xcv-block--muted {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.4) 0%, rgba(12, 25, 41, 0.65) 50%, rgba(3, 7, 18, 0.35) 100%);
}

.xcv-block--elevated {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.35) 0%, rgba(3, 7, 18, 0.2) 100%);
}

.xcv-block--contrast {
  background: linear-gradient(180deg, #020617 0%, #0a1628 50%, #020617 100%);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.06);
}

.xcv-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--xcv-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xcv-cyan);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.xcv-block--contrast .xcv-kicker {
  color: #67e8f9;
}

.xcv-title {
  font-family: var(--xcv-display);
  font-size: clamp(1.85rem, 2.5vw + 1rem, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #f8fafc;
}

.xcv-block--contrast .xcv-title {
  color: #f8fafc;
}

.xcv-copy {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: #94a3b8;
}

.xcv-block--contrast .xcv-copy {
  color: #94a3b8;
}

/* ——— Glass cards ——— */
.xcv-tile {
  border-radius: var(--xcv-radius-lg);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.75) 0%, rgba(8, 15, 30, 0.85) 100%);
  border: 1px solid var(--xcv-panel-border);
  box-shadow: var(--xcv-shadow-deep), 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.xcv-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--xcv-shadow-deep), var(--xcv-glow-cyan);
}

.xcv-tile--flat:hover {
  transform: none;
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: var(--xcv-shadow-deep), 0 0 28px rgba(34, 211, 238, 0.12);
}

.xcv-tile-heading {
  font-family: var(--xcv-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

/* ——— Screenshot / media frames ——— */
.xcv-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--xcv-radius-lg);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.9) 0%, rgba(3, 7, 18, 0.95) 100%);
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: var(--xcv-shadow-deep), 0 0 30px rgba(34, 211, 238, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

.xcv-frame:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--xcv-shadow-deep), var(--xcv-glow-cyan);
}

.xcv-frame:focus-within {
  outline: 2px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

.xcv-frame-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 0;
}

.xcv-frame-inner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: contain;
  border-radius: 0.85rem;
  background: transparent;
  border: 2px solid rgba(15, 23, 42, 0.95);
  box-sizing: border-box;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.xcv-frame:hover .xcv-frame-inner img {
  transform: scale(1.03);
}

.xcv-frame--bright {
  background: linear-gradient(165deg, rgba(20, 35, 55, 0.95) 0%, rgba(8, 15, 30, 0.98) 100%);
  border-color: rgba(56, 189, 248, 0.25);
}

.xcv-frame--bright:hover {
  border-color: rgba(34, 211, 238, 0.5);
}

.xcv-frame--bright .xcv-frame-inner {
  background: transparent;
}

.xcv-frame--bright .xcv-frame-inner img {
  border: 2px solid rgba(15, 23, 42, 0.95);
}

.xcv-ui-spotlight {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .xcv-ui-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
  }

  .xcv-ui-spot-stack {
    min-height: 0;
  }
}

.xcv-screens-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .xcv-screens-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.xcv-brand-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border-radius: var(--xcv-radius-lg);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.85) 0%, rgba(3, 7, 18, 0.9) 100%);
  border: 1px solid var(--xcv-panel-border);
  box-shadow: var(--xcv-shadow-deep);
}

.xcv-brand-strip img {
  width: min(280px, 85%);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.2));
}

/* ——— Feature tiles ——— */
.xcv-capability-card {
  display: block;
  border-radius: var(--xcv-radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.72) 0%, rgba(8, 15, 30, 0.88) 100%);
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: var(--xcv-shadow-deep);
  backdrop-filter: blur(12px);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.xcv-capability-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--xcv-shadow-deep), var(--xcv-glow-cyan);
}

.xcv-capability-card h3 {
  font-family: var(--xcv-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.xcv-capability-card p {
  margin-top: 0.65rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* ——— Table ——— */
.xcv-table-shell {
  border-radius: var(--xcv-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: var(--xcv-shadow-deep), 0 0 40px rgba(34, 211, 238, 0.06);
  background: rgba(3, 7, 18, 0.5);
}

/* ——— Footer ——— */
.xcv-page-foot {
  border-top: 1px solid rgba(34, 211, 238, 0.15);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.95) 0%, #020617 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ——— App shell: optional desktop side rail ——— */
.xcv-cta-band {
  position: relative;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 1280px) {
  .xcv-cta-band {
    padding-left: 0.5rem;
    border-left: 2px solid transparent;
    border-image: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.35), rgba(167, 139, 250, 0.25), transparent) 1;
  }
}
