:root {
    --bg: #0a0a0a;
    --bar: #0a0a0a;
    --menu: #151515;
    --line: rgba(255, 255, 255, 0.14);
    --text: #ededed;
    --muted: #9b9b9b;
    --focus: #d0d0d0;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  }
  body { padding-top: 60px; }
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 60px;
    padding: 0 24px;
    background: transparent;
    transition: padding 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  .navbar.scrolled::before { opacity: 1; }

  @media (min-width: 481px) {
    .navbar.scrolled { padding-inline: max(24px, calc((100% - 900px) / 2)); }
  }
  @media (prefers-reduced-motion: reduce) {
    .navbar, .navbar::before { transition: none; }
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .logo img { width: 30px; height: 30px; display: block; }
  .navbar-divider { width: 1px; height: 26px; background: var(--line); }

  nav { display: flex; align-items: center; gap: 4px; }
  nav a, .dropdown-button {
    color: var(--muted);
    text-decoration: none;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 12px;
    transition: color 0.15s, background 0.15s;
  }
  nav a:hover, .dropdown-button:hover, .dropdown-button[aria-expanded="true"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
  }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

  .nav-download-button {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 12px;
    background: #ffffff;
    color: #0a0a0a;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
  }
  .nav-download-button:hover { background: #e2e2e2; }
  .nav-download-button:active { transform: scale(0.97); }
  .nav-download-button svg { width: 16px; height: 16px; flex: none; }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(36px, 10vh, 100px) 24px 60px;
  }
  .hero-title {
    margin: 0;
    max-width: 14ch;
    text-align: center;
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
  }
  .title-word {
    display: inline-block;
    opacity: 0;
    animation: word-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(0.25s + var(--word-index) * 0.17s);
    will-change: transform, opacity, filter;
  }
  @keyframes word-in {
    from { opacity: 0; transform: translateY(28px); filter: blur(14px); }
    60%  { opacity: 1; }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }
  .fade-in {
    animation: word-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: var(--delay, 0s);
  }
  .hero-subtitle {
    margin: 22px 0 0;
    max-width: 44ch;
    text-align: center;
    color: var(--muted);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 500;
    line-height: 1.55;
  }
  .hero-button {
    margin-top: 32px;
    display: inline-flex;
    padding: 14px 26px;
    border-radius: 14px;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
  }
  .hero-button:hover { background: #e2e2e2; }
  .hero-button:active { transform: scale(0.97); }
  .hero-button { align-items: center; gap: 10px; }
  .hero-button-icons { display: grid; width: 20px; height: 20px; flex: none; }
  .hero-button-icon {
    grid-area: 1 / 1;
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: scale(0.7);
    filter: blur(4px);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  }
  .hero-button-icon.active { opacity: 1; transform: none; filter: blur(0); }
  .hero-button-label { display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; }
  .os-names {
    display: grid;
    overflow: hidden;
    margin: -3px 0;
    padding: 3px 12px;
    border-radius: 9px;
    background: rgba(10, 10, 10, 0.09);
  }
  .os-name {
    grid-area: 1 / 1;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  }
  .os-name.current   { transform: none; opacity: 1; }
  .os-name.above { transform: translateY(-140%); opacity: 0; }
  .os-name.below { transform: translateY(140%); opacity: 0; }
  .os-name.reset { transition: none; }
  .section-heading {
    margin: 88px 0 0;
    text-align: center;
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .yours { color: #b8bec7; transition: color 0.8s ease; }
  .theme-preview {
    position: relative;
    width: min(920px, 100%);
    aspect-ratio: 16 / 9;
    margin-top: 28px;
    border-radius: 22px;
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid var(--line);
  }
  .theme-screenshot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
  }
  .theme-screenshot.active { opacity: 1; }
  .feature-cards {
    width: min(920px, 100%);
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .feature-card {
    display: flex;
    flex-direction: column;
    background: #101010;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
  }
  .feature-card img {
    display: block;
    width: 100%;
    aspect-ratio: 20 / 9;
    padding: 5% 32.5%;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
  }
  .feature-card-body { padding: 20px 22px 24px; }
  .feature-card h3 {
    margin: 0;
    padding: 20px 22px 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .feature-card p {
    margin: 0;
    padding: 8px 22px 24px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
  }

  .feature-card-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
  }
  .feature-card-wide img {
    width: 120px;
    height: 120px;
    aspect-ratio: auto;
    padding: 0;
    flex: none;
  }
  .feature-card-wide-text { min-width: 0; }
  .feature-card-wide h3 { padding: 0; }
  .feature-card-wide p { padding: 8px 0 0; }
  @media (max-width: 720px) {
    .feature-cards { grid-template-columns: 1fr; max-width: 420px; }
    .feature-card-wide { gap: 18px; padding: 20px; }
    .feature-card-wide img { width: 72px; height: 72px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .title-word, .fade-in { animation: none; }
    .title-word { opacity: 1; }
    .os-name, .hero-button-icon, .theme-screenshot, .yours { transition: none; }
  }

  #privacy { scroll-margin-top: 80px; }
  .privacy-text {
    width: min(560px, 100%);
    margin-top: 28px;
    text-align: center;
  }
  .privacy-text p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
  }
  .privacy-text p:last-child { margin-bottom: 0; }

  #faq { scroll-margin-top: 80px; }
  .faq {
    width: min(920px, 100%);
    margin-top: 28px;
    display: flex;
    flex-direction: column;
  }
  .faq-item { border-top: 1px solid var(--line); }
  .faq-item:last-child { border-bottom: 1px solid var(--line); }
  .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 4px;
    background: none;
    border: 0;
    color: var(--text);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: left;
    cursor: pointer;
  }
  .faq-question:hover svg { color: var(--text); }
  .faq-question svg {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--muted);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s;
  }
  .faq-item.open .faq-question svg { transform: rotate(180deg); }
  .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .faq-item.open .faq-answer { grid-template-rows: 1fr; }
  .faq-answer-inner {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s linear 0.35s;
  }
  .faq-item.open .faq-answer-inner {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease 0.05s, visibility 0s;
  }
  .faq-answer p {
    margin: 0;
    padding: 0 4px 24px;
    max-width: 68ch;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
  }
  .faq-answer a { color: var(--text); text-underline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) {
    .faq-question svg, .faq-answer, .faq-answer-inner { transition: none; }
  }

  #features { scroll-margin-top: 80px; }
  .footer {
    width: min(920px, calc(100% - 48px));
    margin: 20px auto 0;
    padding: 56px 0 36px;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
  }
  .footer-brand p { margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
  .footer-column { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-column h4 { margin: 0 0 12px; font-size: 0.95rem; font-weight: 600; }
  .footer-column a {
    padding: 5px 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
  }
  .footer-column a:hover { color: var(--text); }
  .copyright { margin: 48px 0 0; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
  @media (max-width: 720px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
  }

  .dropdown { position: relative; }
  .dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    line-height: inherit;
  }
  .dropdown-button .dropdown-arrow { width: 16px; height: 16px; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
  .dropdown-button[aria-expanded="true"] .dropdown-arrow { transform: rotate(180deg); }

  .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    padding: 6px;
    background: var(--menu);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 10;
  }
  .dropdown-menu {
    transform-origin: top left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px) scale(0.96);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0s linear 0.12s;
  }
  .dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.14s ease-out, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
  }
  .submenu { transform: translateX(-6px) scale(0.96); }
  .dropdown-menu a, .dropdown-menu .submenu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .dropdown-menu a:hover, .dropdown-menu .submenu-button:hover, .dropdown-menu .submenu-button[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.05);
  }
  .dropdown-menu svg { width: 16px; height: 16px; flex: none; }
  .dropdown-menu .submenu-button .submenu-arrow { margin-left: auto; }

  .dropdown-menu-wide { width: 250px; }
  .dropdown-menu a.has-description { align-items: flex-start; }
  .dropdown-menu a.has-description svg { margin-top: 2px; }
  .menu-item-text { display: flex; flex-direction: column; gap: 3px; }
  .menu-item-description { color: var(--muted); font-size: 0.78rem; font-weight: 400; line-height: 1.4; }

  .submenu-wrapper { position: relative; }
  .submenu { left: calc(100% + 8px); top: -6px; }

  @media (prefers-reduced-motion: reduce) {
    .dropdown-button .dropdown-arrow { transition: none; }
    .dropdown-menu, .submenu { transition: none !important; }
  }
  @media (max-width: 480px) {
    .navbar { gap: 8px; padding: 0 12px; }
    nav { gap: 0; }
    .nav-download-button span { display: none; }
    .nav-download-button { padding: 10px 12px; }
    .logo span { display: none; }
    nav a, .dropdown-button { padding: 8px; }
    .dropdown-menu { position: fixed; left: 12px; right: 12px; top: 64px; }
    .dropdown-menu-wide { width: auto; }
    .submenu {
      position: static;
      transform: none;
      box-shadow: none;
      background: rgba(255, 255, 255, 0.04);
      max-height: 0;
      margin-top: 0;
      padding-top: 0;
      padding-bottom: 0;
      border-width: 0;
      overflow: hidden;
      transition: max-height 0.15s ease, margin 0.15s ease, padding 0.15s ease, opacity 0.12s ease, visibility 0s linear 0.15s;
    }
    .submenu.open {
      max-height: 200px;
      margin-top: 4px;
      padding-top: 6px;
      padding-bottom: 6px;
      border-width: 1px;
      transition: max-height 0.22s cubic-bezier(0.16, 1, 0.3, 1), margin 0.22s cubic-bezier(0.16, 1, 0.3, 1), padding 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.14s ease-out, visibility 0s;
    }
  }

.hero-title .title-word:nth-child(1) { --word-index: 0; }
.hero-title .title-word:nth-child(2) { --word-index: 1; }
.hero-title .title-word:nth-child(3) { --word-index: 2; }
.hero-title .title-word:nth-child(4) { --word-index: 3; }
.hero-title .title-word:nth-child(5) { --word-index: 4; }
.delay-1 { --delay: 1.15s; }
.delay-2 { --delay: 1.35s; }
.delay-3 { --delay: 1.55s; }
.delay-4 { --delay: 1.75s; }
