:root {
    --glass-background:      rgba(232, 232, 238, 0.84);
    --glass-border:          rgba(255, 255, 255, 0.92);
    --glass-highlight:       rgba(255, 255, 255, 0.96);

    --card-foreground:       #1d1d1f;
    --card-foreground-muted: #6e6e73;
    --card-border:           rgba(0, 0, 0, 0.09);

    --code-background:       rgba(0, 0, 0, 0.05);
    --code-border:           rgba(0, 0, 0, 0.08);
    --token-attribute:       #b06000;
    --token-string:          #1a7a45;
    --token-tag:             rgba(0, 0, 0, 0.38);
    --token-comment:         rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
    :root {
        --glass-background:      rgba(40, 40, 44, 0.87);
        --glass-border:          rgba(255, 255, 255, 0.11);
        --glass-highlight:       rgba(255, 255, 255, 0.07);

        --card-foreground:       #f5f5f7;
        --card-foreground-muted: #a1a1a6;
        --card-border:           rgba(255, 255, 255, 0.09);

        --code-background:       rgba(0, 0, 0, 0.28);
        --code-border:           rgba(255, 255, 255, 0.08);
        --token-attribute:       #e8a94a;
        --token-string:          #6ed49a;
        --token-tag:             rgba(255, 255, 255, 0.35);
        --token-comment:         rgba(255, 255, 255, 0.25);
    }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  color: var(--aqua-foreground);
  background: #ffffff;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #000000;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(to bottom, #ffffff 1px, #e1e1e1 5px, #ffffff 10px);
  pointer-events: none;
  filter: blur(3px);
}

@media (prefers-color-scheme: dark) {
  body::before {
    background-image: repeating-linear-gradient(to bottom, #000000 1px, #1e1e1e 5px, #000000 10px);
  }
}

input {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;;
}

.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--aqua-border);
  z-index: 900;
}

@media (prefers-color-scheme: dark) {
  .menubar {
    background: rgba(0, 0, 0, 0.38);
  }
}

.menubar-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--aqua-foreground);
  text-decoration: none;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.menubar-links {
  display: flex;
  gap: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menubar-links a, .menubar-action {
  font-size: 14px;
  font-weight: 400;
  color: var(--aqua-foreground-muted);
  text-decoration: none;
  transition: color 0.18s;
  white-space: nowrap;
}

.menubar-links a:hover, .menubar-action:hover {
  color: var(--aqua-foreground);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--aqua-background);
  border: 1px solid var(--aqua-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s;
  flex-shrink: 0;
}

.hamburger:hover {
  background: color-mix(in srgb, var(--aqua-background) 60%, currentColor 40%)
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--aqua-foreground);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.18s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  background: var(--glass-background);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-bottom: 1px solid var(--aqua-border);
  z-index: 850;
  padding: 12px 20px 16px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.18s ease;
  pointer-events: none;
}

.menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--card-foreground);
  text-decoration: none;
  padding: 10px 4px;
  border-bottom: 1px solid var(--card-border);
  transition: color 0.15s;
}

.menu a:last-child {
  border-bottom: none;
}

.menu a:hover {
  color: var(--aqua-color);
}

@media (max-width: 640px) {
  .menubar-links {
    display: none;
  }

  .menubar-action {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .menu {
    display: flex;
  }
}

#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 80px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--aqua-foreground-muted);
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.55s ease 0.08s forwards;
}

.hero-headline {
  font-size: clamp(48px, 9.5vw, 108px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.96;
  color: var(--aqua-foreground);
  max-width: 820px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.72s ease 0.20s forwards;
}

.hero-headline .ghost {
  opacity: 0.5;
}

.hero-label {
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 20%, #000000 65%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
}

@media (prefers-color-scheme: dark) {
  .hero-label {
    background: linear-gradient(to bottom, #000000 0%, #000000 20%, #ffffff 65%);
  }
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 400;
  color: var(--aqua-foreground-muted);
  max-width: 440px;
  line-height: 1.72;
  margin-bottom: 44px;
  opacity: 0;
  animation: fade-up 0.72s ease 0.34s forwards;
}

.hero-sub a {
  color: color-mix(in srgb, var(--aqua-foreground) 50%, var(--aqua-foreground-muted) 50%);
  text-decoration: none;
  transition: color 0.18s ease;
}

.hero-sub a:hover {
  color: color-mix(in srgb, var(--aqua-foreground) 50%, var(--aqua-background) 50%);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fade-up 0.72s ease 0.48s forwards;
}

section {
  min-height: 100svh;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-header {
  width: 100%;
  max-width: 900px;
  margin-bottom: 36px;
  text-align: center;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--aqua-foreground-muted);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--aqua-foreground);
  line-height: 1.08;
  margin-bottom: 14px;
}

.section-description {
  font-size: 15px;
  font-weight: 400;
  color: var(--aqua-foreground-muted);
  line-height: 1.70;
  max-width: 560px;
  margin: 0 auto;
}

#installation, #ui-components {
  gap: 0;
}

.section-wrap {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.copy-button {
  font-size: 12px;
  font-weight: 500;
  color: var(--card-foreground-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.18s;
}

.copy-button:hover {
  color: var(--card-foreground);
}

pre, code {
  font-family: Monaco,  'Fira Code', 'Fira Mono', Menlo, monospace;
}

pre {
  padding: 13px 18px;
  font-size: 11.5px;
  line-height: 1.72;
  color: var(--card-foreground);
  overflow-x: auto;
  scrollbar-width: none;
}

pre::-webkit-scrollbar {
  display: none;
}

.token-attribute {
  color: var(--token-attribute);
}

.token-string {
  color: var(--token-string);
}

.token-tag {
  color: var(--token-tag);
}

.token-comment {
  color: var(--token-comment);
  font-style: italic;
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.code-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 13px;
  border-bottom: 1px solid var(--code-border);
}

.code-lang {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--card-foreground-muted);
  font-family: 'Lucida Grande', 'Lucida Sans Unicode', Geneva, sans-serif;
}

.preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  margin-top: 10px;
}

.glass-card {
  width: 100%;
  max-width: 900px;
  background: var(--glass-background);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  box-shadow: 0 1px 0 var(--glass-highlight) inset, 0 20px 50px rgba(0, 0, 0, 0.24), 0 2px 10px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  color: var(--card-foreground);
}

.card-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--card-foreground-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}

.card-intro {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--card-border);
}

.card-intro-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--card-foreground);
  margin-bottom: 4px;
}

.tabbed-card {
  display: flex;
  flex-direction: column;
}

.tab-content-area {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tab-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow-y: auto;
  scrollbar-width: none;
}

.tab-pane::-webkit-scrollbar {
  display: none;
}

.tab-pane.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tab-pane-inner {
  padding: 20px 24px 24px;
}

.tab-pane-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--card-foreground);
  margin-bottom: 4px;
}

.tab-pane-body {
  font-size: 14px;
  font-weight: 400;
  color: var(--card-foreground-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.card-intro-body {
  font-size: 14px;
  font-weight: 400;
  color: var(--card-foreground-muted);
  line-height: 1.65;
}

footer {
  padding: 28px 20px 40px;
  border-top: 1px solid var(--aqua-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand svg {
  width: 40px;
  height: 40px;
  fill: var(--aqua-foreground);
  opacity: 0.72;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.footer-brand-text .designed-by {
  font-size: 12px;
  font-weight: 400;
  color: var(--aqua-foreground-muted);
}

.footer-brand-text .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--aqua-foreground);
}

.footer-github {
  font-size: 14px;
  color: var(--aqua-foreground-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-github:hover {
  color: var(--aqua-foreground);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  } to {
    opacity: 1;
    transform: translateY(0);
  }
}

::selection {
  background: rgba(0, 113, 227, 0.18);
}

@media (max-width: 640px) {
  section {
    padding: 60px 14px;
  }

  .glass-card {
    border-radius: 16px;
  }

  .card-intro {
    padding: 16px 18px 14px;
  }

  .tab-pane-inner {
    padding: 14px 16px 18px;
  }

  pre {
    font-size: 10.5px;
  }
}