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

:root {
    --bg:       #050505;
    --fg:       #eaeaea;
    --muted:    #666;
    --border:   rgba(255,255,255,0.12);
    --accent:   #fff;
    --card-bg:  rgba(255,255,255,0.04);
    --radius:   2px;
    --font:     'Inter', -apple-system, sans-serif;
    --mono:     'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: rgba(255,255,255,0.15); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

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

/* ── Typography ───────────────────────────────────────── */
h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
}

p { color: var(--muted); max-width: 540px; }

.section-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 28px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-sm { padding: 8px 18px; font-size: 0.7rem; }

.btn-outline {
    background: transparent;
    color: var(--fg);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.btn-filled {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.btn-filled:hover {
    background: transparent;
    color: var(--fg);
    border-color: var(--border);
}

/* Corner brackets on hover */
.btn::before, .btn::after,
.btn-bracket-left::before, .btn-bracket-left::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--accent);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn::before {
    top: -4px; left: -4px;
    border-right: none; border-bottom: none;
}
.btn::after {
    bottom: -4px; right: -4px;
    border-left: none; border-top: none;
}
.btn:hover::before, .btn:hover::after {
    opacity: 1;
    width: 20px;
    height: 20px;
}

/* ── Nav ──────────────────────────────────────────────── */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--fg); }

/* ── Hero ─────────────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    margin: 24px auto 40px;
    max-width: 560px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ── Sections (shared) ────────────────────────────────── */
section {
    padding: 120px 40px;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-header p {
    margin: 16px auto 0;
}

/* ── Features ─────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px 32px;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.feature-icon {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.feature-card h3 { margin-bottom: 12px; }

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Workflow ─────────────────────────────────────────── */
.workflow-steps {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.workflow-step {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.workflow-step.reverse {
    flex-direction: row-reverse;
}

.step-number {
    font-family: var(--mono);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    flex: 0 0 80px;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h3 { margin-bottom: 12px; }

.step-image {
    flex: 0 0 420px;
    max-width: 420px;
    overflow: hidden;
    border-radius: 10px;
}

.step-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    cursor: zoom-in;
    transition: opacity 0.15s;
}

.step-screenshot:hover {
    opacity: 0.88;
}

.placeholder-img {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    max-width: 480px;
}

.placeholder-img.large {
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

/* ── Showcase ─────────────────────────────────────────── */
#showcase {
    padding-bottom: 60px;
}

.showcase-image {
    max-width: 1100px;
    margin: 0 auto;
}

/* Portrait (iPhone) capture: cap by height and centre, phone-frame style */
.showcase-video {
    display: block;
    width: auto;
    max-height: min(78vh, 720px);
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card-bg);
}

/* ── Pricing ──────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-grid-single {
    grid-template-columns: 1fr;
    max-width: 380px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 48px 40px;
    text-align: center;
}

.pricing-card.featured {
    border-color: rgba(255,255,255,0.3);
}

.pricing-card h3 {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    margin-bottom: 16px;
    color: var(--muted);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
}

.price-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: -20px;
    margin-bottom: 28px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 36px;
    text-align: left;
}

.pricing-card li {
    font-size: 0.9rem;
    color: var(--muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-card li::before {
    content: '+';
    font-family: var(--mono);
    margin-right: 12px;
    color: var(--fg);
}

.pricing-card .btn { width: 100%; text-align: center; }

/* ── FAQ ──────────────────────────────────────────────── */
#faq {
    max-width: 700px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--fg);
    font-family: var(--font);
    font-size: 1rem;
    text-align: left;
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-q::after {
    content: '+';
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--muted);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item.open .faq-q::after {
    transform: rotate(45deg);
}

.faq-q:hover { color: var(--accent); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-a {
    max-height: 200px;
}

.faq-a p {
    padding-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── Download / CTA ───────────────────────────────────── */
#download {
    position: relative;
    text-align: center;
    padding: 160px 40px;
    overflow: hidden;
}

#footer-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.download-content {
    position: relative;
    z-index: 2;
}

.download-content p {
    margin: 16px auto 40px;
    font-size: 1.1rem;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--muted);
}

a.footer-copy:hover {
    color: var(--fg);
}

/* ── Reveal animation ─────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    section { padding: 80px 24px; }
    #nav { padding: 16px 24px; }

    .nav-links a:not(.btn) { display: none; }

    .features-grid { grid-template-columns: 1fr; }

    .workflow-step {
        flex-direction: column;
        gap: 24px;
    }
    .workflow-step.reverse { flex-direction: column; }
    .step-image { flex: 0 0 auto; max-width: 100%; width: 100%; }
    .step-number { font-size: 2.5rem; flex: 0 0 auto; }

    .stats-grid { grid-template-columns: 1fr; gap: 24px; }

    .pricing-grid { grid-template-columns: 1fr; }

    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn { width: 100%; max-width: 280px; text-align: center; }
}
