/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}
body {
    font-family:
        -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1d1d1f;
    background: #fbfbfd;
    line-height: 1.47059;
    letter-spacing: -0.022em;
}
a {
    color: #06c;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
img {
    max-width: 100%;
    display: block;
}

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner {
    max-width: 1024px;
    margin: 0 auto;
    height: 44px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.nav-brand:hover {
    text-decoration: none;
    opacity: 0.85;
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: -0.01em;
}
.nav-links a:hover {
    opacity: 1;
    text-decoration: none;
}
.nav-cta {
    background: #0071e3;
    color: #fff !important;
    padding: 4px 11px;
    border-radius: 980px;
    opacity: 1 !important;
}
.nav-cta:hover {
    background: #0077ed;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-primary {
    background: #0071e3;
    color: #fff;
}
.btn-primary:hover {
    background: #0077ed;
    text-decoration: none;
}
.btn-secondary {
    background: #fff;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}
.btn-secondary:hover {
    background: #f5f5f7;
    text-decoration: none;
}
.btn-link {
    color: #0071e3;
    padding: 12px 8px;
}
.btn-link:hover {
    text-decoration: underline;
}

/* ---------- Section primitives ---------- */
.eyebrow {
    font-size: 17px;
    color: #6e6e73;
    font-weight: 400;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.section-title {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-align: center;
    margin: 0 0 12px;
    color: #1d1d1f;
}
.section-sub {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    text-align: center;
    color: #6e6e73;
    margin: 0 0 56px;
    letter-spacing: 0.011em;
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 92px 22px 0;
    background: #fbfbfd;
}
.hero .eyebrow {
    font-size: 21px;
    color: #1d1d1f;
    margin-bottom: 18px;
}
.hero-title {
    font-size: 96px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 24px;
}
.hero-title .grad {
    background: linear-gradient(90deg, #0071e3 0%, #5e5ce6 50%, #ff375f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-sub {
    font-size: 28px;
    line-height: 1.14;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: #1d1d1f;
    max-width: 700px;
    margin: 0 auto 36px;
}
.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-screenshot {
    max-width: 1156px;
    width: 100%;
    margin: 80px auto 0;
    border-radius: 20px;
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.35),
        0 12px 30px -10px rgba(0, 0, 0, 0.2);
    display: block;
}

.prev-h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.prev-h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 18px 0 6px;
    letter-spacing: -0.005em;
}
.prev-meta {
    color: #6e6e73;
    font-size: 12px;
    margin-bottom: 6px;
}
.prev-muted {
    color: #6e6e73;
    font-size: 13px;
}
.prev-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}
.prev-list li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.checkbox.checked {
    background: #007aff;
    color: #fff;
}
.checkbox.checked::after {
    content: "✓";
    font-size: 12px;
    font-weight: 700;
}
.checkbox.unchecked {
    border: 2px solid #c7c7cc;
    background: #fff;
}
.prev-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
    font-size: 13px;
    border: 1px solid #e6e6eb;
    border-radius: 12px;
    overflow: hidden;
}
.prev-table th,
.prev-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e6e6eb;
    border-right: 1px solid #e6e6eb;
    text-align: left;
}
.prev-table th:last-child,
.prev-table td:last-child {
    border-right: none;
}
.prev-table tr:last-child td {
    border-bottom: none;
}
.prev-table th {
    color: #1d1d1f;
    font-weight: 500;
}

/* ---------- Bento grid ---------- */
.bento {
    padding: 130px 22px;
    max-width: 1200px;
    margin: 0 auto;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}
.tile {
    border-radius: 28px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.tile-light {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tile-dark {
    background: #1d1d1f;
    color: #f5f5f7;
}
.tile-accent {
    background: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
    color: #fff;
}
.tile-wide {
    grid-column: span 2;
}
.tile-eyebrow {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.65;
    margin-bottom: 16px;
}
.tile-dark .tile-eyebrow,
.tile-accent .tile-eyebrow {
    opacity: 0.8;
}
.tile-title {
    font-size: 32px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin: 0 0 16px;
}
.tile-wide.tile-dark .tile-title {
    font-size: 44px;
}
.tile-body {
    font-size: 17px;
    line-height: 1.42;
    margin: 0;
    opacity: 0.85;
    max-width: 460px;
}
.mini-table {
    margin: 22px 0 0;
    font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #1d1d1f;
    background: #f5f5f7;
    padding: 14px 16px;
    border-radius: 12px;
    white-space: pre;
    overflow: auto;
}
.tile-art {
    margin-top: auto;
    padding-top: 24px;
}
.tile-video-wrap {
    margin-top: 24px;
    border-radius: 20px;
    overflow: hidden;
}
.tile-video {
    width: 100%;
    display: block;
}
.art-fps {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 80px;
    margin-top: auto;
}
.art-fps span {
    flex: 1;
    background: linear-gradient(180deg, #5e5ce6 0%, #0071e3 100%);
    border-radius: 4px;
    animation: pulse 1.6s ease-in-out infinite;
    opacity: 0.6;
}
.art-fps span:nth-child(1) {
    height: 30%;
    animation-delay: 0s;
}
.art-fps span:nth-child(2) {
    height: 70%;
    animation-delay: 0.1s;
}
.art-fps span:nth-child(3) {
    height: 50%;
    animation-delay: 0.2s;
}
.art-fps span:nth-child(4) {
    height: 90%;
    animation-delay: 0.3s;
}
.art-fps span:nth-child(5) {
    height: 40%;
    animation-delay: 0.4s;
}
.art-fps span:nth-child(6) {
    height: 65%;
    animation-delay: 0.5s;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.art-llm {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 1.5rem;
    color: #5e5ce6;
}
.llm-prompt {
    opacity: 0.7;
}
.llm-cursor {
    display: inline-block;
    width: 10px;
    height: 1.4em;
    background: #5e5ce6;
    border-radius: 2px;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ---------- Detail sections ---------- */
.detail {
    padding: 130px 22px;
}
.detail-dark {
    background: #000;
    color: #f5f5f7;
}
.detail-light {
    background: #f5f5f7;
    color: #1d1d1f;
}
.detail-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.detail-inner.reverse .detail-text {
    order: 2;
}
.detail-inner.reverse .detail-art {
    order: 1;
}
.detail-text .eyebrow {
    color: inherit;
    opacity: 0.7;
}
.detail-title {
    font-size: 56px;
    line-height: 1.07;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin: 0 0 24px;
}
.detail-body {
    font-size: 21px;
    line-height: 1.42;
    font-weight: 400;
    letter-spacing: 0.011em;
    opacity: 0.9;
    margin: 0 0 28px;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}
.check-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-top: 1px solid currentColor;
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 0.92;
}
.detail-light .check-list li {
    border-color: rgba(0, 0, 0, 0.1);
}
.check-list li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.detail-light .check-list li:last-child {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #30d158;
    font-weight: 700;
}

/* keyboard chord art */
.detail-art {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}
.kbd-chord {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    width: 100%;
    max-width: 380px;
}
.detail-light .kbd-chord {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.kbd-chord kbd {
    display: inline-block;
    min-width: 32px;
    padding: 6px 10px;
    background: linear-gradient(180deg, #2c2c2e 0%, #1d1d1f 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 13px;
    color: #f5f5f7;
    text-align: center;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}
.detail-light .kbd-chord kbd {
    background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
    border-color: #d2d2d7;
    color: #1d1d1f;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
.kbd-label {
    margin-left: 14px;
    font-size: 15px;
    opacity: 0.85;
}

/* preview card on light detail */
.detail-art.card {
    background: #fff;
    padding: 36px;
    border-radius: 22px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15);
    align-self: stretch;
    display: block;
}

/* ---------- Specs ---------- */
.specs {
    padding: 130px 22px;
    max-width: 1100px;
    margin: 0 auto;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e6e6eb;
    border-radius: 22px;
    overflow: hidden;
    margin-top: 40px;
}
.spec {
    background: #fff;
    padding: 44px 32px;
    text-align: left;
}
.spec-num {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.1;
    background: linear-gradient(135deg, #1d1d1f 0%, #5e5ce6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
.spec-unit {
    font-size: 28px;
    font-weight: 500;
    opacity: 0.7;
}
.spec p {
    margin: 0;
    font-size: 17px;
    line-height: 1.42;
    color: #6e6e73;
    max-width: 220px;
}

/* ---------- Download ---------- */
.download {
    padding: 130px 22px;
    text-align: center;
    background: linear-gradient(180deg, #fbfbfd 0%, #f0f0f3 100%);
}
.download-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
    border-radius: 26px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2);
}
.download-title {
    font-size: 64px;
    line-height: 1.0625;
    font-weight: 600;
    letter-spacing: -0.009em;
    margin: 0 0 16px;
}
.download-sub {
    font-size: 24px;
    font-weight: 400;
    color: #6e6e73;
    margin: 0 0 36px;
}
.download-fine {
    margin-top: 28px;
    font-size: 14px;
    color: #6e6e73;
}

/* ---------- Footer ---------- */
.footer {
    background: #f5f5f7;
    border-top: 1px solid #d2d2d7;
    padding: 40px 22px 24px;
    font-size: 12px;
    color: #6e6e73;
}
.footer-inner {
    max-width: 1024px;
    margin: 0 auto;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid #d2d2d7;
}
.footer-col h4 {
    margin: 0 0 12px;
    font-size: 12px;
    color: #1d1d1f;
    font-weight: 600;
}
.footer-col a {
    display: block;
    color: #6e6e73;
    font-size: 12px;
    padding: 4px 0;
}
.footer-col a:hover {
    color: #1d1d1f;
    text-decoration: none;
}
.footer-fine {
    margin: 24px 0 0;
    line-height: 1.5;
    max-width: 880px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-title {
        font-size: 64px;
    }
    .hero-sub {
        font-size: 22px;
    }
    .section-title,
    .detail-title {
        font-size: 40px;
    }
    .download-title {
        font-size: 48px;
    }
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .tile-wide {
        grid-column: span 1;
    }
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .detail-inner.reverse .detail-text {
        order: 0;
    }
    .detail-inner.reverse .detail-art {
        order: 0;
    }
    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
@media (max-width: 540px) {
    .hero {
        padding-top: 60px;
    }
    .hero-title {
        font-size: 44px;
    }
    .hero-sub {
        font-size: 18px;
    }
    .section-title,
    .detail-title {
        font-size: 32px;
    }
    .download-title {
        font-size: 36px;
    }
    .tile-title {
        font-size: 26px !important;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .spec-num {
        font-size: 48px;
    }
    .footer-cols {
        grid-template-columns: 1fr;
    }
}
