/* ===== CSS Variables ===== */
:root {
  --bg: #0b1020;
  --card: #121a33;
  --text: #e9ecff;
  --muted: #b9c1ff;
  --line: rgba(255, 255, 255, 0.12);
}

/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 512px;
  background: url("../images/library_hero_3840x1240.png") top center / cover
    no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 512px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  z-index: -1;
}

a {
  color: var(--muted);
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* ===== Typography ===== */
h1 {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.06;
}

h2 {
  margin: 22px 0 8px;
  font-size: 18px;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

li {
  color: var(--muted);
  line-height: 1.6;
}

code {
  color: var(--text);
}

.meta {
  color: var(--muted);
  margin-top: 0;
}

/* ===== Header & Navigation ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.brand img {
  height: 80px;
  width: auto;
  display: block;
  border-radius: 6px;
}

nav {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  margin-right: 24px;
}

nav a:hover {
  color: #fff;
}

header + .card {
  margin-top: 42px;
}

/* ===== Cards ===== */
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 26, 51, 0.55);
}

.card > a:first-child {
  display: inline-block;
  margin-bottom: 16px;
}

.grid .card b {
  display: block;
  margin-bottom: 6px;
}

/* ===== Features Section ===== */
.features {
  margin-top: 32px;
  text-align: center;
}

.app-title {
  font-family: "Google Sans", "Product Sans", sans-serif;
  font-size: 96px;
  /* font-weight: 700; */
  /* letter-spacing: 4px; */
  color: var(--text);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.smallcaps {
  text-transform: uppercase;
  font-size: 0.85em;
  /* letter-spacing: 0.08em; */
}

.white {
  color: #fff;
}

.accent {
  color: #6892e8;
}

/* ===== Logo Section ===== */
.logo-section {
  margin-top: 42px;
  text-align: center;
  overflow: hidden;
  max-height: 220px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  padding: 24px 0;
  border-radius: 16px;
}

.logo-section .logo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

/* ===== Hero Section ===== */
section {
  backdrop-filter: blur(4px);
}

.content-block {
  backdrop-filter: blur(4px);
}

.hero {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 26, 51, 0.65);
}

/* ===== Grid Layout ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.grid .card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 234, 244, 0.1);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(104, 146, 232, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.grid .card:hover {
  transform: translateY(-8px);
  border-color: rgba(104, 146, 232, 0.5);
  background: rgba(104, 146, 232, 0.08);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(104, 146, 232, 0.15);
}

.grid .card:hover::before {
  left: 100%;
}

.grid .card b {
  color: #fff;
  font-size: 16px;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.grid .card:hover b {
  text-shadow: 0 0 12px rgba(104, 146, 232, 0.6);
}

.grid .card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== CTA & Buttons ===== */
.cta {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-capsule {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.btn-capsule img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

.btn-capsule span {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.btn-capsule:hover {
  transform: scale(1.05);
  border-color: #6892e8;
  box-shadow:
    0 0 20px rgba(104, 146, 232, 0.6),
    0 0 40px rgba(104, 146, 232, 0.4),
    0 0 60px rgba(104, 146, 232, 0.2);
}

.btn-capsule:hover span {
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(104, 146, 232, 1);
}

.btn-capsule-small img {
  max-width: 320px;
}

.btn-capsule-small span {
  font-size: 12px;
}

/* Floating Mini CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 234, 244, 0.1);
  border-radius: 12px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(120px) scale(0.8);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    visibility 0.4s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.floating-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(104, 146, 232, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.floating-cta.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.floating-cta img {
  width: 96px;
  height: auto;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.floating-cta span {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.floating-cta:hover {
  transform: translateY(-8px) scale(1);
  border-color: #6892e8;
  border-width: 2px;
  background: rgba(104, 146, 232, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(104, 146, 232, 0.5),
    0 0 80px rgba(104, 146, 232, 0.3),
    inset 0 0 20px rgba(104, 146, 232, 0.1);
}

.floating-cta:hover::before {
  left: 100%;
}

.floating-cta:hover span {
  color: #fff;
  text-shadow: 0 0 12px rgba(104, 146, 232, 0.6);
}

/* ===== Below the Fold Section ===== */
.below-the-fold {
  margin-top: 48px;
}

.content-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 26, 51, 0.55);
  margin-bottom: 24px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  margin: 24px 0 16px;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.content-block p {
  margin: 0 0 14px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 20px;
  color: var(--text);
  line-height: 1.6;
}

/* Feature List */
.feature-list,
.coming-soon-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.coming-soon-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.feature-list li:last-child,
.coming-soon-list li:last-child {
  margin-bottom: 0;
}

.feature-list li::before,
.coming-soon-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6892e8;
  font-weight: bold;
}

.coming-soon-list li::before {
  content: "→";
}

/* Roadmap */
.roadmap-progress {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.progress-count {
  font-size: 14px;
  color: var(--text);
}

.progress-count .released-count {
  color: #4ade80;
  font-weight: 600;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #4ade80, #6892e8);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.roadmap-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.roadmap-list li:last-child {
  margin-bottom: 0;
}

.roadmap-list li::before {
  content: "○";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--muted);
  opacity: 0.6;
}

.roadmap-list li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Released items */
.roadmap-list li.released {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.2);
  color: var(--text);
}

.roadmap-list li.released::before {
  content: "✓";
  color: #4ade80;
  font-weight: bold;
  opacity: 1;
}

.roadmap-list li.released::after {
  content: "Shipped";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
}

.roadmap-list li.released:hover {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
}

.feature-list li.not-supported {
  color: #ffa07a;
}

.feature-list li.not-supported::before {
  content: "✕";
  color: #ffa07a;
}

.feature-list li.not-supported strong {
  color: #ff6b6b;
}

/* Keyboard Keys */
kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 12px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.feature-item:hover {
  border-color: rgba(104, 146, 232, 0.3);
  background: rgba(104, 146, 232, 0.05);
  transform: translateY(-2px);
}

.feature-item p {
  font-size: 14px;
  margin: 0;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.specs-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.specs-card h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  color: #6892e8;
}

.specs-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.specs-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.specs-card dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

/* ===== Footer ===== */
footer {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: inherit;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  header {
    flex-direction: column;
    text-align: center;
  }

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

  h1 {
    font-size: 36px;
  }

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

  .app-title {
    font-size: 56px;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px 8px 8px;
  }

  .floating-cta:hover {
    transform: translateY(-6px) scale(1);
  }

  .floating-cta img {
    width: 72px;
  }

  .floating-cta span {
    font-size: 11px;
  }

  .roadmap-list li {
    padding-right: 16px;
  }

  .roadmap-list li.released {
    padding-bottom: 36px;
  }

  .roadmap-list li.released::after {
    top: auto;
    bottom: 10px;
    right: auto;
    left: 40px;
    transform: none;
  }
}
