/* === Grey Horse Software — Dark Futurist Theme === */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Great+Vibes&display=swap');

:root {
  /* Inverted scale: --white is the page ground, --grey-900 the strongest foreground */
  --white: #16161e;
  --grey-50: #1a1b26;
  --grey-100: #1f2335;
  --grey-200: #2c3049;
  --grey-300: #3b4261;
  --grey-400: #565f89;
  --grey-500: #9099c0;
  --grey-600: #a9b1d6;
  --grey-700: #b4bce8;
  --grey-800: #c0caf5;
  --grey-900: #d5dcff;
  --accent: #7aa2f7;
  --accent-2: #bb9af7;
  --gold: #7aa2f7;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--white);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(122, 162, 247, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(187, 154, 247, 0.09), transparent 60%),
    linear-gradient(rgba(154, 165, 206, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 165, 206, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  background-attachment: fixed;
  color: var(--grey-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

::selection {
  background: rgba(122, 162, 247, 0.35);
  color: var(--grey-900);
}

a {
  color: var(--grey-900);
  text-decoration: none;
}

/* --- Header --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 100;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo-img {
  height: 150px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(122, 162, 247, 0.25));
}

/* --- Navigation: outlined capsule around the nav items --- */
nav {
  display: flex;
  gap: 8px;
  border: 1px solid rgba(154, 165, 206, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(12, 17, 26, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(122, 162, 247, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--grey-600);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover {
  color: var(--grey-900);
  background: rgba(154, 165, 206, 0.14);
}

nav a.active {
  color: #16161e;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(122, 162, 247, 0.35);
}

nav a.active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16161e;
  margin-right: 8px;
  vertical-align: 2px;
}

nav a.active:hover {
  color: #16161e;
  background: linear-gradient(135deg, #9ab8ff, #cbb1fa);
}

/* --- Apps dropdown --- */
.nav-menu {
  position: relative;
}

.nav-menu-toggle {
  font: inherit;
  font-size: 0.875rem;
  color: var(--grey-600);
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-menu-toggle::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  vertical-align: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-menu:hover .nav-menu-toggle,
.nav-menu.is-open .nav-menu-toggle {
  color: var(--grey-900);
  background: rgba(154, 165, 206, 0.14);
}

.nav-menu-toggle.active,
.nav-menu:hover .nav-menu-toggle.active,
.nav-menu.is-open .nav-menu-toggle.active {
  color: #16161e;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(122, 162, 247, 0.35);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 170px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(154, 165, 206, 0.22);
  border-radius: 14px;
  background: rgba(12, 17, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(122, 162, 247, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 50;
}

/* Invisible bridge so the menu stays open while the pointer crosses the gap */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-menu:hover .nav-dropdown,
.nav-menu.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  border-radius: 9px;
  white-space: nowrap;
}

.nav-dropdown a.active {
  color: var(--grey-900);
  font-weight: 600;
  background: rgba(122, 162, 247, 0.16);
  box-shadow: none;
}

.nav-dropdown a.active::before {
  display: none;
}

/* --- Main Content --- */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Coming Soon Drape --- */
.drape-badge {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--grey-600);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* --- Product Hero Split (text + images) --- */
.product-hero-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 24px;
}

.product-hero-text {
  padding-top: 8px;
}

.product-hero-images {
  position: relative;
  height: 420px;
}

.product-hero-images img {
  position: absolute;
  width: 78%;
  border-radius: 12px;
  border: 1px solid rgba(154, 165, 206, 0.18);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 50px rgba(122, 162, 247, 0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-hero-images img:first-child {
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-2deg);
}

.product-hero-images img:nth-child(2) {
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(1deg);
}

.product-hero-images img:last-child {
  bottom: 0;
  right: 0;
  z-index: 1;
  transform: rotate(2deg);
}

.product-hero-images:hover img:first-child {
  transform: translate(-12px, -10px) rotate(-4deg);
}

.product-hero-images:hover img:nth-child(2) {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.02);
}

.product-hero-images:hover img:last-child {
  transform: translate(12px, 10px) rotate(4deg);
}

/* Single-image hero (e.g. Dock-It): larger and level, no stacking */
.product-hero-images:has(img:only-child) {
  height: auto;
}

.product-hero-images img:only-child,
.product-hero-images:hover img:only-child {
  position: relative;
  width: 100%;
  top: auto;
  left: auto;
  transform: none;
}

/* RelaySFTP hero carousel (mac / win / linux) with dot indicators */
.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: block;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* First slide stays in flow to set the container height; the rest overlay it */
.hero-slide:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(122, 162, 247, 0.8);
  transform: scale(1.25);
}

/* Variant: dots sit in flow below the image instead of overlaying it */
.hero-carousel-dots-below .hero-dots {
  position: static;
  margin-top: 12px;
}

.hero-carousel-dots-below .hero-dot {
  background: rgba(154, 165, 206, 0.3);
  box-shadow: none;
}

.hero-carousel-dots-below .hero-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(122, 162, 247, 0.8);
}

/* --- Release Candidate Banner --- */
.rc-banner {
  margin-top: 8px;
  padding: 14px 18px;
  border: 1px solid rgba(187, 154, 247, 0.28);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: rgba(187, 154, 247, 0.08);
  font-size: 0.875rem;
  color: #a9c5e8;
  line-height: 1.6;
}

.rc-banner strong {
  color: #d8e6f8;
  font-weight: 600;
}

.rc-banner a {
  color: #d8e6f8;
  font-weight: 500;
  text-decoration: underline;
}

.rc-banner a:hover {
  color: #ffffff;
}

/* --- Product Detail Page --- */
.product-detail {
  padding: 20px 0 60px;
}

.product-detail .label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-400);
  margin-bottom: 8px;
}

.product-detail h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  width: fit-content;
  background: linear-gradient(100deg, var(--grey-900) 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.product-detail .app-version {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 20px;
}

.product-detail .title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.product-detail .title-row h1 {
  margin-bottom: 0;
}

.product-detail .oss-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-detail .lead {
  font-size: 1.1rem;
  color: var(--grey-500);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.detail-section h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-900);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grey-200);
}

.detail-section p {
  font-size: 0.925rem;
  color: var(--grey-600);
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  font-size: 0.925rem;
  color: var(--grey-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-100);
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--grey-300);
  border-radius: 50%;
  transform: translateY(-50%);
}

.download-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* --- Hero Buttons (Download + Purchase) --- */
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.donate-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--grey-400);
}

.btn-hero-purchase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-hero-purchase {
  background: transparent;
  color: var(--grey-900);
  border: 2px solid var(--grey-300);
  gap: 10px;
}

.btn-hero-purchase svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-hero-purchase:hover {
  border-color: var(--accent);
  background: rgba(122, 162, 247, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(122, 162, 247, 0.2);
}

/* --- Download Panel --- */
.download-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--grey-200);
  margin-top: 48px;
}

.download-panel-inner--wide {
  grid-template-columns: 1fr auto;
}

.download-panel-inner--single {
  grid-template-columns: 1fr;
}

.download-platform-links h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--grey-900);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.platform-grid {
  display: flex;
  gap: 16px;
}

.platform-card {
  flex: 0 0 144px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 32px;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  color: var(--grey-700);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.platform-arch {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--grey-400);
  margin-top: 2px;
}

.platform-card:hover {
  border-color: var(--accent);
  background: rgba(122, 162, 247, 0.06);
  color: var(--grey-900);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(122, 162, 247, 0.18);
}

.platform-card svg {
  width: 32px;
  height: 32px;
}

.download-requirements h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--grey-900);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.download-requirements p {
  font-size: 0.9rem;
  color: var(--grey-500);
  margin-bottom: 16px;
  line-height: 1.6;
}

.download-requirements ul {
  list-style: none;
  padding: 0;
}

.download-requirements li {
  font-size: 0.9rem;
  color: var(--grey-600);
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
  line-height: 1.6;
}

.download-requirements li:first-child {
  border-top: 1px solid var(--grey-100);
}

.adapter-note {
  font-size: 0.8rem;
  color: var(--grey-400);
  margin: 16px 0 0;
  line-height: 1.6;
}

/* --- Install command (Omarchy apps) --- */
.install-cmd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 52px 14px 18px;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  background: var(--grey-50);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--grey-800);
}

.install-cmd-prompt {
  color: var(--accent);
  flex-shrink: 0;
}

.install-cmd code {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.install-copy {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  background: var(--grey-100);
  color: var(--grey-400);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.install-copy:hover {
  color: var(--grey-900);
  border-color: var(--accent);
}

.install-copy svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.install-copy .install-check-icon,
.install-copy.is-copied .install-copy-icon {
  display: none;
}

.install-copy.is-copied {
  color: var(--accent);
  border-color: var(--accent);
}

.install-copy.is-copied .install-check-icon {
  display: block;
}

.product-detail kbd {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.8em;
  padding: 1px 6px;
  border: 1px solid var(--grey-200);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--grey-100);
  color: var(--grey-700);
  white-space: nowrap;
}

.adapter-table {
  width: 100%;
  border-collapse: collapse;
}

.adapter-table th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-400);
  text-align: left;
  padding: 8px 28px 8px 0;
  border-bottom: 1px solid var(--grey-200);
}

.adapter-table td {
  font-size: 0.875rem;
  color: var(--grey-600);
  padding: 12px 28px 12px 0;
  border-bottom: 1px solid var(--grey-100);
  vertical-align: middle;
}

.adapter-table th:last-child,
.adapter-table td:last-child {
  padding-right: 0;
}

.adapter-table a.adapter-name:hover {
  text-decoration: underline;
}

.adapter-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-900);
}

.adapter-ext {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--grey-400);
}

.perf-meter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
}

.perf-meter i {
  display: block;
  width: 7px;
  height: 14px;
  border-radius: 2px;
  background: var(--grey-200);
}

.perf-meter i.on {
  background: var(--accent);
}

.perf-meter i.half {
  background: linear-gradient(to top, var(--accent) 50%, var(--grey-200) 50%);
}

.perf-score {
  font-size: 0.7rem;
  color: var(--grey-400);
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.requirements-protocols {
  margin-top: 18px;
}

.protocols-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-400);
  margin-bottom: 10px;
}

.fsection {
  border-top: 1px solid var(--grey-200);
  padding-top: 44px;
  margin-bottom: 44px;
}

.fsection h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--grey-900);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.fsection-lead {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 28px;
}

.fsection-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}

.fsection-grid li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--grey-500);
  line-height: 1.6;
}

.fsection-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(122, 162, 247, 0.8);
}

.fsection-grid li strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 3px;
}

.fsection-note {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--grey-400);
  line-height: 1.6;
}

.features-section {
  border-top: 1px solid var(--grey-200);
  padding-top: 48px;
  margin-bottom: 48px;
}

.features-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--grey-900);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.requirements-lead {
  font-size: 0.95rem;
  color: var(--grey-500);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

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

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.65;
}

.feature-card ul {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.65;
  padding-left: 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
  padding: 40px 0;
  border-top: 1px solid var(--grey-200);
  margin-bottom: 60px;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #16161e;
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(122, 162, 247, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9ab8ff, #cbb1fa);
  border-color: transparent;
  box-shadow: 0 0 28px rgba(122, 162, 247, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--grey-700);
  border: 1px solid var(--grey-200);
}

.btn-secondary:hover {
  background: var(--grey-50);
  border-color: var(--grey-300);
}

/* --- Open Source Page --- */
.oss-header {
  padding: 20px 0 48px;
  max-width: 500px;
}

.oss-header h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  width: fit-content;
  background: linear-gradient(100deg, var(--grey-900) 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.oss-header p {
  font-size: 1.05rem;
  color: var(--grey-500);
  line-height: 1.7;
}

.oss-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.oss-item {
  position: relative;
  padding: 28px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.oss-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(122, 162, 247, 0.15);
  transform: translateY(-2px);
}

.oss-item-info {
  flex: 1;
}

.oss-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 10px;
  padding-right: 110px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.oss-item .oss-lang {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid rgba(122, 162, 247, 0.45);
  border-radius: 999px;
  margin-bottom: 14px;
}

.oss-item p {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.65;
}

.oss-item-links {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 8px;
}

.oss-item-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-800);
  padding: 8px 16px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.oss-item-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.oss-item-links a:hover {
  background: rgba(122, 162, 247, 0.08);
  border-color: var(--accent);
  color: var(--grey-900);
}

.oss-draped {
  position: relative;
}

.oss-draped .oss-list {
  filter: blur(3px) grayscale(0.4);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}

.oss-draped .drape {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 22, 30, 0.35);
}

/* --- Christmas Greeting --- */
.christmas-greeting[hidden] {
  display: none;
}

.christmas-greeting {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin: 8px auto 32px;
  padding: 0 24px;
}

.christmas-greeting .christmas-text {
  font-family: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  font-size: 4rem;
  font-weight: 400;
  color: var(--grey-900);
  line-height: 0.95;
  margin: 0;
}

.nativity-img {
  display: block;
  width: 160px;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .christmas-greeting {
    gap: 14px;
  }
  .christmas-greeting .christmas-text {
    font-size: 2.5rem;
  }
  .nativity-img {
    width: 110px;
  }
}

/* --- Shareware Notice --- */
.notice {
  font-size: 0.85rem;
  color: var(--grey-400);
  text-align: center;
  padding: 0 24px 24px;
  margin-top: -32px;
  margin-bottom: 40px;
}

.product-detail .notice {
  margin-top: 32px;
}

/* --- Footer --- */
.footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--grey-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--grey-400);
}

.footer .br-flag {
  height: 18px;
  width: auto;
}

.footer a {
  color: var(--grey-400);
}

.footer a:hover {
  color: var(--grey-600);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  nav {
    flex-wrap: wrap;
    gap: 4px;
    border-radius: 18px;
    justify-content: center;
  }

  nav a,
  .nav-menu-toggle {
    padding: 6px 10px;
  }

  nav {
    position: relative;
  }

  .nav-menu {
    position: static;
  }

  .product-hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .oss-list {
    grid-template-columns: 1fr;
  }

  .fsection-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .download-row {
    flex-direction: column;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .download-panel-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-detail {
    padding: 48px 0 40px;
  }

  .oss-header {
    padding: 48px 0 32px;
  }

  .oss-item {
    flex-direction: column;
    gap: 12px;
  }

  .cta-row {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
