  :root {
    color-scheme: light dark;
    --bg: #edf1ea;
    --card-bg: #ffffff;
    --text: #162419;
    --muted: #59645a;
    --accent: #298d32;
    --accent-strong: #1f7428;
    --border: #d9e3d7;
    --shadow: 0 24px 70px rgba(31, 70, 36, 0.18);
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #1c1c1e;
      --card-bg: #242426;
      --text: #f2f2f2;
      --muted: #a8afa4;
      --accent: #38a644;
      --accent-strong: #47bc54;
      --border: #38383a;
      --shadow: 0 28px 76px rgba(0, 0, 0, 0.38);
    }
  }
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #edf1ea;
    --card-bg: #ffffff;
    --text: #162419;
    --muted: #59645a;
    --accent: #298d32;
    --accent-strong: #1f7428;
    --border: #d9e3d7;
    --shadow: 0 24px 70px rgba(31, 70, 36, 0.18);
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #1c1c1e;
    --card-bg: #242426;
    --text: #f2f2f2;
    --muted: #a8afa4;
    --accent: #38a644;
    --accent-strong: #47bc54;
    --border: #38383a;
    --shadow: 0 28px 76px rgba(0, 0, 0, 0.38);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 32rem),
      radial-gradient(circle at 10% 88%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 30rem),
      var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
  }
  button, a { -webkit-tap-highlight-color: transparent; }
  a:focus-visible, button:focus-visible, .carousel:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
    outline-offset: 4px;
  }
  .site-header {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
  }
  .brand img { width: 38px; height: 38px; object-fit: contain; }
  .theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  }
  .hero {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 156px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    padding: 30px 0 48px;
  }
  .hero-copy { position: relative; z-index: 5; }
  h1 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(2.65rem, 5.2vw, 5.3rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }
  .hero-description {
    max-width: 570px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  }
  .store-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
  .store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 180ms ease, filter 180ms ease;
  }
  .store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2)); }
  .store-badge img { display: block; width: 168px; height: 56px; }
  .showcase { min-width: 0; position: relative; }
  .carousel {
    position: relative;
    width: 100%;
    min-height: 640px;
    border-radius: 38px;
    touch-action: pan-y;
  }
  .carousel-viewport {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
    perspective: 1200px;
    border-radius: inherit;
  }
  .carousel-track { list-style: none; margin: 0; padding: 0; }
  .carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(245px, 23vw, 280px);
    aspect-ratio: 1320 / 2868;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.62);
    transform-origin: center;
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease, filter 420ms ease;
    will-change: transform, opacity;
  }
  .phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 7px;
    overflow: hidden;
    border-radius: 15% / 7%;
    background: #090909;
    box-shadow: var(--shadow);
  }
  .phone-frame::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 50%;
    width: 29%;
    height: clamp(15px, 1.7vw, 22px);
    border-radius: 999px;
    background: #050505;
    transform: translateX(-50%);
  }
  .phone-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13% / 6%;
  }
  .carousel-slide.is-active {
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    filter: none;
    transform: translate(-50%, -50%) scale(1);
  }
  .carousel-slide.is-previous {
    z-index: 1;
    opacity: 0.56;
    filter: saturate(0.75);
    transform: translate(-113%, -50%) scale(0.77) rotateY(9deg);
  }
  .carousel-slide.is-next {
    z-index: 2;
    opacity: 0.66;
    filter: saturate(0.82);
    transform: translate(11%, -50%) scale(0.8) rotateY(-9deg);
  }
  .carousel-label {
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 10px auto 12px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--card-bg) 88%, transparent);
    color: var(--text);
    font-size: clamp(0.9rem, 1.2vw, 1.02rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
  }
  .carousel-label strong { color: var(--accent-strong); font-weight: 800; }
  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: -2px;
  }
  .carousel-arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  }
  .carousel-arrow svg { width: 20px; height: 20px; }
  .carousel-dots { display: flex; align-items: center; gap: 8px; }
  .carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--muted) 42%, transparent);
    cursor: pointer;
    transition: width 220ms ease, border-radius 220ms ease, background 220ms ease;
  }
  .carousel-dot[aria-current="true"] { width: 27px; border-radius: 999px; background: var(--accent); }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .features {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 64px;
  }
  .features-heading { max-width: 720px; margin: 0 auto 28px; text-align: center; }
  .features-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.08; letter-spacing: -0.035em; }
  .features-heading p { margin: 14px auto 0; color: var(--muted); font-size: 1.05rem; }
  .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .feature-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: color-mix(in srgb, var(--card-bg) 82%, transparent);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  }
  .feature-card h3 { margin: 0; font-size: 1.12rem; }
  .feature-card p { margin: 9px 0 0; color: var(--muted); }
  footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 34px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.88rem;
  }
  .footer-social { grid-column: 1; display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
  .footer-links { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 18px; }
  footer a { color: var(--muted); text-underline-offset: 3px; }
  footer a:hover { color: var(--accent-strong); }
  .social-icon { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
  .social-icon svg { width: 20px; height: 20px; }
  @media (max-width: 920px) {
    .hero { grid-template-columns: 1fr; min-height: auto; gap: 18px; padding-top: 48px; }
    .hero-copy { text-align: center; }
    h1, .hero-description { margin-left: auto; margin-right: auto; }
    .store-actions { justify-content: center; }
    .carousel { min-height: 0; }
    .carousel-viewport { min-height: 590px; height: 590px; }
    .feature-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    .site-header, .hero, .features, footer { width: min(100% - 32px, 1180px); }
    .site-header { min-height: 68px; }
    .brand img { width: 34px; height: 34px; }
    .hero { padding-top: 34px; gap: 8px; }
    h1 { font-size: clamp(2.55rem, 13.5vw, 4rem); }
    .hero-description { margin-top: 20px; font-size: 1.05rem; }
    .store-actions { justify-content: center; }
    .showcase { width: calc(100% + 16px); margin-left: -8px; }
    .carousel { min-height: 0; height: auto; display: flex; flex-direction: column; }
    .carousel-viewport { min-height: 0; height: 590px; order: 2; }
    .carousel-label { order: 1; margin-top: 0; }
    .carousel-slide { left: 43%; width: min(76vw, 268px); }
    .carousel-slide.is-previous { opacity: 0; transform: translate(-155%, -50%) scale(0.72); }
    .carousel-slide.is-next { opacity: 0.52; transform: translate(52%, -50%) scale(0.78); }
    .carousel-controls { order: 3; margin-top: 2px; }
    footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer-social, .footer-links { grid-column: 1; }
    .footer-links { justify-content: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    .carousel-slide, .carousel-dot, .store-badge { transition: none; }
  }
