:root {
  --bg: #0c1015;
  --bg-elevated: #121821;
  --bg-card: #141b25;
  --bg-card-hover: #18212d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f0f5fa;
  --text-muted: #93a1b2;
  --text-dim: #667588;
  --brand-green: #2d7a43;
  --brand-green-bright: #3ea35b;
  --brand-ice: #4fc3f7;
  --brand-slate: #1a2129;
  --brand-violet: #6a2c91;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.34);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 16, 21, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-link img {
  width: 30px;
  height: 35px;
  object-fit: contain;
}

.dot-studio {
  color: var(--brand-green-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.16s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 84px 0 56px;
  text-align: center;
  overflow: hidden;
}

.subpage-hero {
  position: relative;
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--border);
}

.subpage-hero .kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-green-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.subpage-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.subpage-hero p {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 480px;
  background: radial-gradient(
    ellipse at center,
    rgba(79, 195, 247, 0.14) 0%,
    rgba(45, 122, 67, 0.09) 42%,
    rgba(12, 16, 21, 0) 72%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}

.hero-mark {
  width: 118px;
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.55));
  animation: winterpaw-float 5.2s ease-in-out infinite;
}

@keyframes winterpaw-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes winterpaw-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(79, 195, 247, 0.25));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 26px rgba(79, 195, 247, 0.55));
    transform: scale(1.04);
  }
}

@keyframes winterpaw-click {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  30% {
    transform: scale(0.92) rotate(-3deg);
  }
  65% {
    transform: scale(1.07) rotate(2deg);
  }
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5.5vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-tagline {
  margin: 0 auto 28px;
  max-width: 580px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--text-muted);
}

.hero-tagline strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-green);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(45, 122, 67, 0.28);
}

.btn-primary:hover {
  background: var(--brand-green-bright);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

/* Sections */
section.block {
  padding: 48px 0 60px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Controls Row */
.controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-bar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 11px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 205px;
  padding: 9px 34px 9px 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.16s ease, width 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-input:focus {
  border-color: var(--border-strong);
  width: 240px;
}

.search-kbd {
  position: absolute;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  pointer-events: none;
}

/* Release Grid */
.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.release-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: linear-gradient(180deg, var(--bg-card) 0%, #111720 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.release-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, var(--bg-card-hover) 0%, #141c27 100%);
}

.release-card:focus-visible {
  outline: 2px solid var(--brand-ice);
  outline-offset: 2px;
}

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

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  flex-shrink: 0;
}

.card-icon.accent-ice {
  background: rgba(79, 195, 247, 0.12);
  color: var(--brand-ice);
  border-color: rgba(79, 195, 247, 0.22);
}

.card-icon.accent-green {
  background: rgba(62, 163, 91, 0.14);
  color: var(--brand-green-bright);
  border-color: rgba(62, 163, 91, 0.24);
}

.card-icon.accent-amber {
  background: rgba(245, 176, 65, 0.12);
  color: #f5b041;
  border-color: rgba(245, 176, 65, 0.22);
}

.card-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-status.coming-soon {
  color: var(--brand-ice);
}

.release-card h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.release-card p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 42px 20px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle-card {
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.principle-card .kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-green-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.principle-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
}

.principle-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Brand Kit Subpage */
.brand-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.brand-panel h2,
.brand-panel h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}

.brand-panel p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.motion-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 45%, #172330 0%, #0b0f14 75%);
  border: 1px solid var(--border);
  min-height: 220px;
}

.motion-stage.light-stage {
  background: #f4f7fa;
}

.motion-stage img {
  width: 100px;
  height: auto;
}

.motion-stage img.anim-float {
  animation: winterpaw-float 3.4s ease-in-out infinite;
}

.motion-stage img.anim-pulse {
  animation: winterpaw-pulse 2.4s ease-in-out infinite;
}

.motion-stage img.anim-click {
  animation: winterpaw-click 1.4s ease-in-out infinite;
}

.motion-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.motion-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.motion-btn:hover,
.motion-btn.active {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.09);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.swatch-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.swatch-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.swatch-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.swatch-name {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.asset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.asset-item strong {
  display: block;
  font-size: 0.92rem;
}

.asset-item span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.code-block {
  margin-top: 16px;
  padding: 16px 18px;
  background: #090d12;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow-x: auto;
  line-height: 1.65;
}

/* Legal Prose */
.legal-prose {
  padding: 40px 0 64px;
}

.legal-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
}

.legal-card h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.legal-card a {
  color: var(--brand-ice);
}

.lang-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-green-bright);
  border: 1px solid rgba(62, 163, 91, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(6, 9, 13, 0.76);
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: grid;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  background: #131a24;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-title-wrap h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.modal-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-highlights {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.9rem;
}

.modal-highlights li {
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

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

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 920px) {
  .release-grid,
  .principles-grid,
  .asset-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .release-grid,
  .principles-grid,
  .asset-list {
    grid-template-columns: 1fr;
  }
  .search-input,
  .search-input:focus {
    width: 100%;
  }
  .search-wrap {
    width: 100%;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px;
    background: rgba(12, 16, 21, 0.96);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .hero {
    padding: 64px 0 44px;
  }
}
