@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  color-scheme: dark;
  --bg-deep: #060810;
  --bg-surface: rgba(14, 20, 38, 0.68);
  --bg-surface-hover: rgba(22, 31, 58, 0.82);
  --bg-card: rgba(17, 24, 48, 0.52);
  --ink-primary: #f8fafc;
  --ink-secondary: #94a3b8;
  --ink-muted: #64748b;
  --edge: rgba(255, 255, 255, 0.09);
  --edge-hover: rgba(129, 140, 248, 0.42);
  --accent-blue: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-violet: #a855f7;
  --glow-blue: rgba(99, 102, 241, 0.35);
  --glow-cyan: rgba(6, 182, 212, 0.28);
  --amber-border: rgba(245, 158, 11, 0.32);
  --amber-surface: rgba(120, 53, 15, 0.16);
  --amber-text: #fde68a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg-deep);
  color: var(--ink-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Three.js WebGL Background Canvas */
.webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

/* Decorative Atmospheric Gradients */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  top: -15vh;
  left: 10vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
}
.bg-glow-2 {
  top: 40vh;
  right: -10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
}

/* Page Container */
main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 7rem;
}

/* Navigation */
nav {
  position: sticky;
  top: 1.2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.85rem 1.4rem;
  background: rgba(10, 15, 29, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--edge);
  border-radius: 9999px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

nav:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.brand {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  color: var(--ink-primary);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.brand em {
  color: var(--ink-secondary);
  font-style: normal;
  font-weight: 500;
  margin-left: 0.2rem;
}

.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(99, 102, 241, 0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark {
  transform: rotate(6deg) scale(1.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-ring 2.2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.source-link:hover {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(14, 20, 38, 0.65);
  border: 1px solid var(--edge);
  border-radius: 9999px;
  padding: 0.22rem 0.45rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.1;
}

.lang-btn:hover {
  color: var(--ink-primary);
}

.lang-btn.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.68rem;
  user-select: none;
}

/* Hero Section */
.hero {
  max-width: 920px;
  padding: 7.5rem 0 6.5rem;
  position: relative;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.95rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.15);
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7d2fe;
}

h1 {
  margin: 0 0 1.6rem;
  font-size: clamp(3.2rem, 7.5vw, 6.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: #ffffff;
}

h1 span {
  display: block;
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 660px;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: -0.01em;
}

/* Actions & Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2.5px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 60%, #4338ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px -6px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.button.primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(30deg);
  animation: shimmer-sweep 5s infinite;
}

@keyframes shimmer-sweep {
  0% { transform: translateX(-100%) rotate(30deg); }
  35%, 100% { transform: translateX(100%) rotate(30deg); }
}

.button.primary:hover {
  box-shadow: 0 18px 42px -6px rgba(99, 102, 241, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button.secondary {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.button.secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4);
}

.button-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* Microsoft Store Badge Button */
.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  border-radius: var(--radius-md);
  padding: 0.72rem 1.45rem;
  background: #03050a;
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.store-badge-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(30deg);
  animation: shimmer-sweep 5s infinite;
}

.store-badge-btn:hover {
  transform: translateY(-2.5px);
  border-color: rgba(0, 164, 239, 0.6);
  box-shadow: 0 16px 40px -6px rgba(0, 164, 239, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ms-store-logo {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-badge-sub {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.store-badge-title {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
}

/* Store Certified Hero Pill */
.store-certified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.store-certified-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Windows Download Notice */
.download-notice {
  max-width: 820px;
  margin-top: 1.8rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  background: var(--amber-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
  position: relative;
}

.download-notice-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.download-notice strong {
  color: var(--amber-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.download-notice p {
  margin: 0.45rem 0 0.75rem;
  color: #e2e8f0;
}

.hash-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.download-notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  color: #c7d2fe;
  overflow-wrap: anywhere;
}

.copy-hash-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-hash-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.copy-hash-btn.copied {
  background: #10b981;
  border-color: #10b981;
}

/* Principles Section */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.principle-card {
  position: relative;
  min-height: 270px;
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--edge);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-cyan), transparent);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-5px);
  border-color: var(--edge-hover);
  box-shadow: 0 24px 50px -12px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

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

.number-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 2.4rem;
}

.principles h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.principles p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.68;
}

/* Showcase Section */
.showcase {
  padding: 8.5rem 0 2rem;
}

.showcase-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.showcase-heading h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #ffffff;
}

/* Interactive Tabs for Screenshots */
.showcase-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
  background: rgba(14, 20, 38, 0.5);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--edge);
  width: fit-content;
}

.showcase-tab {
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-tab:hover {
  color: var(--ink-primary);
}

.showcase-tab.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}

.screenshot:nth-child(1),
.screenshot:nth-child(2),
.screenshot:nth-child(3) {
  grid-column: span 2;
}

.screenshot:nth-child(4),
.screenshot:nth-child(5) {
  grid-column: span 3;
}

.screenshot {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--edge);
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.85rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.screenshot:hover {
  transform: translateY(-6px);
  border-color: var(--edge-hover);
  box-shadow: 0 28px 55px -14px rgba(0, 0, 0, 0.65), 0 10px 30px -8px rgba(99, 102, 241, 0.25);
}

.screenshot-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #03060d;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.image-trigger::after {
  content: '🔍 Click to zoom';
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.image-trigger:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-trigger:hover img {
  transform: scale(1.025);
}

.screenshot figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.5rem 0.4rem;
}

.screenshot figcaption strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.screenshot figcaption span {
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Content Policy & Status Cards */
.content-policy {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  padding: 7rem 2.2rem;
  margin: 5rem 0 3.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--edge);
  background: linear-gradient(135deg, rgba(20, 29, 58, 0.55) 0%, rgba(9, 13, 27, 0.65) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.content-policy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
  color: #ffffff;
  line-height: 1.18;
}

.policy-copy p {
  color: var(--ink-secondary);
  font-size: 1.02rem;
  line-height: 1.72;
  margin: 0;
}

.policy-copy p + p {
  margin-top: 1.35rem;
}

/* Status Section */
.status {
  padding: 3.2rem 3rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius-xl);
  background: linear-gradient(130deg, rgba(99, 102, 241, 0.15) 0%, rgba(13, 18, 36, 0.65) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.status::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.status h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: #ffffff;
}

.status > p:last-child {
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

/* Policy Document Pages (privacy.html, terms.html, support.html) */
.policy-page {
  max-width: 880px;
  padding-top: 2rem;
}

.policy-page nav {
  margin-bottom: 4.5rem;
}

.policy-document {
  background: var(--bg-surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3.2rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 28px 65px -15px rgba(0, 0, 0, 0.6);
}

.policy-document h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.policy-document .lede {
  font-size: 1.15rem;
  color: #cbd5e1;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.policy-document h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 2.8rem 0 0.9rem;
  color: #f1f5f9;
}

.policy-document p {
  color: var(--ink-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 1.2rem;
}

.policy-document a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.policy-document a:hover {
  color: #ffffff;
}

.policy-document strong {
  color: #ffffff;
}

/* Image Preview Dialog Modal with Cinematic Opening Effect */
.image-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(94vw, 1260px);
  width: min(94vw, 1260px);
  max-height: 94vh;
  margin: auto;
  overflow: visible;
  opacity: 0;
  transform: scale(0.84) translateY(24px);
  transition: opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1), transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-dialog.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.image-dialog.is-closing {
  opacity: 0;
  transform: scale(0.9) translateY(12px);
  transition: opacity 0.24s ease-in, transform 0.24s ease-in;
}

.image-dialog::backdrop {
  background: rgba(4, 6, 14, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.34s ease, backdrop-filter 0.34s ease;
}

.image-dialog.is-open::backdrop {
  background: rgba(4, 6, 14, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dialog-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(12, 17, 34, 0.88);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 35px 100px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(99, 102, 241, 0.3), 0 0 45px rgba(99, 102, 241, 0.15);
  overflow: hidden;
  padding: 1.25rem 1.5rem;
}

.dialog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dialog-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dialog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.dialog-index-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dialog-close:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: rotate(90deg) scale(1.08);
}

.dialog-viewport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  position: relative;
}

.dialog-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.dialog-nav-arrow:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.55);
}

.dialog-nav-arrow:active {
  transform: scale(0.95);
}

.dialog-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #040711;
}

.dialog-main-img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
  opacity: 1;
}

.dialog-main-img.switching {
  opacity: 0;
  transform: scale(0.96);
}

.dialog-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dialog-caption {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.dialog-hint {
  color: var(--ink-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.2rem 2rem 3rem;
  border-top: 1px solid var(--edge);
  color: var(--ink-muted);
  font-size: 0.86rem;
}

footer span {
  color: var(--ink-secondary);
}

footer a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Changelog & Version History Section */
.changelog-section {
  padding: 7.5rem 0 2rem;
  position: relative;
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.changelog-header h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.15;
}

.changelog-filters {
  display: flex;
  gap: 0.5rem;
  background: rgba(14, 20, 38, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--edge);
}

.changelog-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.22s ease;
}

.changelog-filter-btn:hover {
  color: var(--ink-primary);
}

.changelog-filter-btn.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

.timeline-stream {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-left: 2rem;
  border-left: 2px solid rgba(99, 102, 241, 0.25);
  margin-left: 0.8rem;
}

.release-entry {
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.release-entry::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.8rem;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #060810;
  border: 2px solid var(--accent-blue);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  transition: all 0.25s ease;
}

.release-entry.is-latest::before {
  border-color: #10b981;
  background: #10b981;
  box-shadow: 0 0 14px #10b981;
}

.release-card {
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--edge);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.release-card:hover {
  transform: translateY(-4px);
  border-color: var(--edge-hover);
  box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.2);
}

.release-card.is-latest {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(14, 20, 38, 0.75) 100%);
}

.release-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.release-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.release-tag-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.release-type-chip {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.chip-latest {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.chip-stable {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.chip-patch {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
}

.chip-legacy {
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.release-date {
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.release-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.release-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.release-btn.primary {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.release-btn.primary:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.release-btn.secondary {
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge);
}

.release-btn.secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.release-summary {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  color: #e2e8f0;
  line-height: 1.62;
}

.release-bullets {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.release-bullets li {
  color: var(--ink-secondary);
  font-size: 0.94rem;
  line-height: 1.62;
}

.release-bullets li::marker {
  color: var(--accent-blue);
}

.changelog-expand-bar {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

.changelog-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(20, 28, 54, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.changelog-expand-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(99, 102, 241, 0.25);
}

.changelog-expand-btn .expand-arrow {
  transition: transform 0.3s ease;
}

.changelog-expand-btn.is-expanded .expand-arrow {
  transform: rotate(180deg);
}

.release-entry.is-hidden {
  display: none;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .principles {
    grid-template-columns: 1fr;
  }
  .screenshots {
    grid-template-columns: 1fr;
  }
  .screenshot:nth-child(1),
  .screenshot:nth-child(2),
  .screenshot:nth-child(3),
  .screenshot:nth-child(4),
  .screenshot:nth-child(5) {
    grid-column: auto;
  }
  .content-policy {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 1.8rem;
  }
}

@media (max-width: 640px) {
  main {
    padding: 1rem 1.15rem 4.5rem;
  }
  nav {
    top: 0.8rem;
    padding: 0.7rem 1rem;
  }
  .brand span {
    font-size: 0.95rem;
  }
  .release-badge {
    display: none;
  }
  .hero {
    padding: 5rem 0 4rem;
  }
  h1 {
    font-size: 2.6rem;
  }
  .lede {
    font-size: 1.05rem;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .button {
    width: 100%;
  }
  .hash-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .copy-hash-btn {
    align-self: flex-end;
  }
  .showcase {
    padding: 4.5rem 0 1rem;
  }
  .showcase-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .timeline-stream {
    padding-left: 1.2rem;
    margin-left: 0.4rem;
  }
  .release-entry::before {
    left: -1.2rem;
  }
  .release-card {
    padding: 1.35rem 1.15rem;
  }
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .changelog-filters {
    width: 100%;
    overflow-x: auto;
  }
  .release-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .release-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .status {
    padding: 2rem 1.5rem;
  }
  .policy-document {
    padding: 2.2rem 1.5rem;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem 1.2rem;
  }
}
