/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    color: #222222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background: #F5F5F7;
}

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

/* ─── Focus styles ─── */
:focus-visible {
    outline: 2px solid #34C759;
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline-offset: 3px;
    border-radius: 9999px;
}

/* ─── Skip link ─── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #222;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 100;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 8px;
}

/* ─── Utilities ─── */
.text-center { text-align: center; }
.bg-white { background: #fff; }

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 672px;
}

.hide-mobile {
    display: none;
}

@media (min-width: 640px) {
    .hide-mobile { display: inline; }
}

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    font-weight: 500;
    border-radius: 9999px;
    transition: background 0.2s ease;
}

.btn-dark {
    background: #222;
    color: #fff;
}

.btn-dark:hover {
    background: #333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* ─── Nav ─── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(245, 245, 247, 0.8);
    border-bottom: 1px solid rgba(210, 210, 215, 0.4);
}

.nav-inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ─── Hero ─── */
.hero {
    padding: 80px 24px 64px;
}

@media (min-width: 768px) {
    .hero { padding-top: 112px; }
}

.hero-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(48px, 8vw, 72px);
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 18px;
    color: #86868B;
    max-width: 480px;
    margin: 0 auto 56px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-sub { font-size: 20px; }
}

/* ─── Window Mockup ─── */
.mockup-wrap {
    max-width: 640px;
    margin: 0 auto 56px;
}

.mockup {
    width: 100%;
    border-radius: 10px;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15)) drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.mockup-light {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)) drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

/* ─── Download ─── */
.download-note {
    margin-top: 12px;
    font-size: 14px;
    color: #86868B;
}

/* ─── Waitlist ─── */
.waitlist {
    margin-top: 32px;
}

.waitlist-label {
    display: block;
    font-size: 14px;
    color: #86868B;
    margin-bottom: 10px;
}

.waitlist-row {
    display: flex;
    gap: 8px;
    max-width: 380px;
    margin: 0 auto;
}

.waitlist-input {
    flex: 1;
    padding: 8px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #D2D2D7;
    border-radius: 9999px;
    background: #fff;
    color: #222;
    outline: none;
}

.waitlist-input:focus {
    border-color: #34C759;
}

.waitlist-input::placeholder {
    color: #AEAEB2;
}

/* ─── Dots Divider ─── */
.dots-divider {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
}

.dots-divider span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dots-divider-faded {
    margin-bottom: 40px;
}

.dots-divider-faded span {
    opacity: 0.5;
}

/* ─── Sections ─── */
.section {
    padding: 80px 24px;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 64px;
}

/* ─── Features ─── */
.features-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.features-grid-second {
    margin-top: 20px;
}

.feature-card {
    padding: 32px;
    border-radius: 16px;
    background: rgba(245, 245, 247, 0.6);
    border: 1px solid rgba(210, 210, 215, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 15px;
    color: #86868B;
    line-height: 1.6;
}

.feature-desc code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 5px;
    border-radius: 4px;
}

/* ─── Pull Quote ─── */
.pull-quote-section {
    padding: 96px 24px;
}

.pull-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(28px, 6vw, 48px);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: rgba(34, 34, 34, 0.7);
}

/* ─── Steps ─── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 64px;
    list-style: none;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 15px;
    color: #86868B;
    line-height: 1.6;
}

/* ─── Code Examples ─── */
.examples {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.example-label {
    font-size: 12px;
    font-weight: 500;
    color: #86868B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.code-block {
    background: #1D1D1F;
    border-radius: 12px;
    overflow: hidden;
}

.code-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-body {
    padding: 20px;
    overflow-x: auto;
}

.code-body pre {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
}

.c-green  { color: #34C759; }
.c-light  { color: #E5E5EA; }
.c-orange { color: #FF9F0A; }
.c-dim    { color: #636366; }

/* ─── Shortcuts ─── */
.shortcuts-block {
    background: #F5F5F7;
    border: 1px solid rgba(210, 210, 215, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-action {
    background: #3B7CCC;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
}

.shortcut-param {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* ─── Footer ─── */
.footer {
    background: #222;
    padding: 40px 24px;
}

.footer-inner {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.footer-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.1);
}

/* ─── Animations ─── */
@keyframes dot-glow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; filter: brightness(1.15); }
}

.hero-dot-red    { animation: dot-glow 4s ease-in-out infinite; }
.hero-dot-yellow { animation: dot-glow 4s ease-in-out 0.5s infinite; }
.hero-dot-green  { animation: dot-glow 4s ease-in-out 1s infinite; }

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor { animation: blink 1.1s step-end infinite; }

/* AppBar indicator bar animations */
@keyframes bar-bounce-1 {
    0%, 100% { height: 8px; y: 14px; }
    50% { height: 14px; y: 8px; }
}
@keyframes bar-bounce-2 {
    0%, 100% { height: 12px; y: 10px; }
    50% { height: 6px; y: 16px; }
}
@keyframes bar-bounce-3 {
    0%, 100% { height: 17px; y: 5px; }
    50% { height: 10px; y: 12px; }
}

.bar-1 { animation: bar-bounce-1 2.4s ease-in-out infinite; }
.bar-2 { animation: bar-bounce-2 1.8s ease-in-out infinite; }
.bar-3 { animation: bar-bounce-3 2.1s ease-in-out infinite; }

/* Status dot flash red */
@keyframes status-flash {
    0%, 85%, 100% { fill: #34C759; }
    90% { fill: #FF3B30; }
    95% { fill: #FF3B30; r: 4.5; }
}

.status-dot { animation: status-flash 8s ease-in-out infinite; }


/* Callout border pulse */
@keyframes callout-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.callout-border { animation: callout-pulse 3s ease-in-out infinite; }

/* Stats bar animations */
@keyframes bar-s1 {
    0%, 100% { height: 7px; y: 14px; }
    50% { height: 12px; y: 9px; }
}
@keyframes bar-s2 {
    0%, 100% { height: 11px; y: 10px; }
    50% { height: 7px; y: 14px; }
}
@keyframes bar-s3 {
    0%, 100% { height: 15px; y: 6px; }
    50% { height: 10px; y: 11px; }
}

.bar-s1 { animation: bar-s1 2.6s ease-in-out infinite; }
.bar-s2 { animation: bar-s2 2.0s ease-in-out infinite; }
.bar-s3 { animation: bar-s3 2.3s ease-in-out infinite; }


/* ─── Small screens ─── */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 64px 16px 48px;
    }

    .section {
        padding: 56px 16px;
    }

    .pull-quote-section {
        padding: 64px 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .code-body {
        padding: 16px;
    }

    .code-body pre {
        font-size: 12px;
    }

    .footer {
        padding: 32px 16px;
    }
}

/* ─── Dark mode ─── */
@media (prefers-color-scheme: dark) {
    html {
        color: #E5E5EA;
    }

    body {
        background: #1C1C1E;
    }

    .bg-white {
        background: #2C2C2E;
    }

    .nav {
        background: rgba(28, 28, 30, 0.8);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .nav-brand span {
        color: #E5E5EA;
    }

    .btn-dark {
        background: #E5E5EA;
        color: #1C1C1E;
    }

    .btn-dark:hover {
        background: #F5F5F7;
    }

    .hero-sub,
    .feature-desc,
    .step-desc,
    .download-note,
    .example-label {
        color: #98989D;
    }

    .pull-quote {
        color: rgba(229, 229, 234, 0.7);
    }

    .feature-card {
        background: rgba(44, 44, 46, 0.6);
        border-color: rgba(255, 255, 255, 0.06);
    }

    .feature-card:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .feature-title,
    .step-title {
        color: #E5E5EA;
    }

    .feature-desc code {
        background: rgba(255, 255, 255, 0.08);
        color: #E5E5EA;
    }

    .shortcuts-block {
        background: #2C2C2E;
        border-color: rgba(255, 255, 255, 0.06);
    }

    .skip-link {
        background: #E5E5EA;
        color: #1C1C1E;
    }

    .waitlist-input {
        background: #2C2C2E;
        border-color: rgba(255, 255, 255, 0.08);
        color: #E5E5EA;
    }

    .waitlist-input::placeholder {
        color: #636366;
    }

    .footer {
        background: #000;
    }

    .dots-divider span {
        opacity: 0.8;
    }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

