:root {
  --bg-canvas: #07080c;
  --bg-surface: #0c0e17;
  --bg-surface-elevated: #121422;
  --bg-surface-hover: #191c30;
  --bg-kbd: #141726;
  
  --border-hairline: #1c2035;
  --border-subtle: #262c4a;
  --border-hover: #434e80;
  
  /* Cyber Ferret Neon & Violet Palette */
  --accent-iris: #8b5cf6;
  --accent-iris-hover: #9d72f9;
  --accent-iris-active: #7c3aed;
  --accent-iris-glow: rgba(139, 92, 246, 0.35);
  
  --ferret-neon: #a855f7;
  --ferret-neon-light: #c084fc;
  --ferret-indigo: #6366f1;
  --ferret-glow: rgba(168, 85, 247, 0.35);
  --ferret-badge-bg: rgba(168, 85, 247, 0.12);
  --ferret-badge-border: rgba(168, 85, 247, 0.32);
  
  --status-standby: #10B981;
  --status-standby-bg: #0A1C16;
  --status-standby-border: #059669;
  
  --status-active: #F43F5E;
  --status-active-bg: #240D14;
  --status-active-border: #E11D48;
  
  --text-primary: #f3f4f8;
  --text-secondary: #9aa0b4;
  --text-muted: #616782;
  --text-mono: #c4b5fd;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --max-w: 1120px;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: rgba(168, 85, 247, 0.38);
  color: #ffffff;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
  background: #252a44;
  border-radius: 5px;
  border: 2px solid var(--bg-canvas);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-iris);
}

/* Base links and buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

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

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--ferret-badge-border);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.06);
  border-color: var(--ferret-neon);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.65);
}

.brand-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  color: var(--text-primary);
  font-weight: 700;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--ferret-neon-light);
  background: var(--ferret-badge-bg);
  border: 1px solid var(--ferret-badge-border);
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-version {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--ferret-badge-bg);
  border: 1px solid var(--ferret-badge-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-mono);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #6366f1 100%);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 14px rgba(124, 58, 237, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #7c3aed 100%);
  box-shadow: 0 4px 22px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 8px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--ferret-badge-border);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

/* Layout container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Hero Section with Cyber Ferret Backdrop */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--border-hairline);
  background: radial-gradient(circle at 50% 25%, rgba(139, 92, 246, 0.15) 0%, transparent 68%), var(--bg-canvas);
}

.hero-bg-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ferret-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0.36;
  filter: saturate(1.2) contrast(1.12);
  animation: ferretPulse 9s ease-in-out infinite alternate;
}

@keyframes ferretPulse {
  0% {
    opacity: 0.32;
    transform: scale(1);
    filter: saturate(1.15) contrast(1.1);
  }
  50% {
    opacity: 0.44;
    transform: scale(1.02);
    filter: saturate(1.3) contrast(1.15) drop-shadow(0 0 45px rgba(168, 85, 247, 0.4));
  }
  100% {
    opacity: 0.32;
    transform: scale(1);
    filter: saturate(1.15) contrast(1.1);
  }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 72% 58% at 50% 36%, rgba(7, 8, 12, 0.88) 0%, rgba(7, 8, 12, 0.58) 46%, rgba(7, 8, 12, 0.96) 100%),
    linear-gradient(to bottom, rgba(7, 8, 12, 0.65) 0%, transparent 18%, transparent 62%, var(--bg-canvas) 100%);
}

.hero-container-content {
  position: relative;
  z-index: 1;
}

.hero-center {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mono);
  padding: 5px 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--ferret-badge-border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.eyebrow-ferret {
  color: var(--ferret-neon-light);
  font-weight: 700;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.text-gradient {
  background: linear-gradient(135deg, #f5f3ff 0%, #c084fc 45%, #a855f7 80%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.45));
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 660px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(18, 20, 34, 0.6);
  border: 1px solid rgba(38, 44, 74, 0.7);
  border-radius: 4px;
}

/* App Screenshot Showcase */
.screenshot-showcase {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  position: relative;
}

.screenshot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(139, 92, 246, 0.22), 0 0 0 1px rgba(168, 85, 247, 0.35);
  background: var(--bg-surface);
  line-height: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 65px rgba(168, 85, 247, 0.35), 0 0 0 1px rgba(168, 85, 247, 0.55);
}

.app-screenshot-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Section Common */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
}

.section-alt {
  background: #090b12;
}

.section-head {
  margin-bottom: 38px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ferret-neon-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 640px;
  margin: 10px auto 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

/* Steps Grid (How HaRec Works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}

.step-card {
  background: linear-gradient(180deg, rgba(18, 20, 34, 0.85) 0%, rgba(12, 14, 23, 0.95) 100%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 24px rgba(139, 92, 246, 0.16);
  transform: translateY(-3px);
}

.step-card:hover::before {
  opacity: 1;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ferret-neon-light);
  background: var(--ferret-badge-bg);
  border: 1px solid var(--ferret-badge-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Specs Block Styles */
.specs-block {
  background: linear-gradient(180deg, var(--bg-surface) 0%, #090a12 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.specs-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.specs-table-container {
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.specs-table th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: rgba(139, 92, 246, 0.04);
}

.specs-table td strong {
  color: var(--text-primary);
}

.specs-table td code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mono);
  background: #090a14;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Download Section & Cards */
.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.download-card {
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.download-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(139, 92, 246, 0.16);
  transform: translateY(-2px);
}

.download-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.download-file-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.download-file-size {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mono);
  background: var(--ferret-badge-bg);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--ferret-badge-border);
}

.download-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.55;
}

.checksum-row {
  background: #090a14;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.checksum-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-hash {
  color: var(--text-secondary);
  font-size: 0.7rem;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  padding: 3px 7px;
  border-radius: 4px;
  background: #141728;
  transition: all 0.15s ease;
}

.btn-copy-hash:hover {
  color: var(--text-primary);
  border-color: var(--ferret-neon);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

/* Versions Page Specific */
.versions-hero-banner {
  position: relative;
  overflow: hidden;
  padding: 48px 0 36px;
  background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.16) 0%, transparent 70%), var(--bg-canvas);
  border-bottom: 1px solid var(--border-hairline);
}

.versions-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.22;
  filter: saturate(1.2) contrast(1.15);
  pointer-events: none;
}

.versions-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 8, 12, 0.7) 0%, rgba(7, 8, 12, 0.9) 100%);
  pointer-events: none;
}

.release-entry {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.release-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.release-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.release-tag {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.release-badge {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--status-standby);
  font-family: var(--font-mono);
  font-weight: 600;
}

.release-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.release-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ferret-neon-light);
  margin: 22px 0 12px;
}

.release-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.release-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.release-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ferret-neon);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.release-list strong {
  color: var(--text-primary);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-hairline);
  background: #050609;
  padding: 34px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-copy img {
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--ferret-neon-light);
}

.versions-link-box {
  margin-top: 26px;
  text-align: center;
}

.link-muted {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(18, 20, 34, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.link-muted:hover {
  color: var(--text-primary);
  border-color: var(--ferret-badge-border);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .download-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 56px 0 44px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta a {
    width: 100%;
  }
  .brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .brand-sub {
    font-size: 0.62rem;
  }
}
