/* ============================================
   UghStorage — Site Styles
   ============================================ */

:root {
    --brand: #6C5CE7;
    --brand-light: #a29bfe;
    --brand-dark: #5a4bd1;
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --surface: #1e1e2a;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --green: #00b894;
    --red: #e17055;
    --orange: #fdcb6e;
    --blue: #0984e3;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --max-width: 1200px;
    --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--nav-height);
}

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

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.9em; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.gradient-text {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes packet-flow {
    0% { left: -8px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: calc(100% + 8px); opacity: 0; }
}

@keyframes blink-led {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes dash-flow {
    0% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand-light);
    background: rgba(108, 92, 231, 0.06);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; }

.btn-nav {
    background: rgba(108, 92, 231, 0.12);
    color: var(--brand-light);
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 10px;
}
.btn-nav:hover { background: rgba(108, 92, 231, 0.2); }

/* ============================================
   NAV
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 10px;
}

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

.nav-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-github { color: var(--text-secondary); transition: color 0.2s; }
.nav-github:hover { color: var(--text); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}
.hero-glow-1 { width: 500px; height: 500px; background: var(--brand); top: -150px; left: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: var(--brand-light); bottom: -100px; right: -50px; opacity: 0.2; }

.hero-orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(108, 92, 231, 0.15);
    animation: float 6s ease-in-out infinite;
}
.hero-orb-1 { width: 8px; height: 8px; background: var(--brand); top: 25%; left: 15%; animation-delay: 0s; }
.hero-orb-2 { width: 5px; height: 5px; background: var(--brand-light); top: 60%; right: 20%; animation-delay: 2s; }
.hero-orb-3 { width: 6px; height: 6px; background: var(--brand); bottom: 30%; left: 30%; animation-delay: 4s; }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-light);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 36px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
}

.stat { text-align: center; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.device-mockup {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.mockup-phone {
    width: 220px;
    height: 440px;
    background: var(--bg-card);
    border-radius: 32px;
    border: 2px solid var(--border);
    padding: 12px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: float 8s ease-in-out infinite;
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: var(--bg);
    border-radius: 0 0 16px 16px;
    margin: 0 auto 12px;
}

.phone-screen {
    background: var(--bg-elevated);
    border-radius: 20px;
    height: calc(100% - 36px);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.screen-title { font-weight: 700; font-size: 1rem; }
.screen-icons { display: flex; gap: 6px; }
.screen-dot { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }

.screen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
}

.screen-file {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.screen-file .file-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    opacity: 0.7;
}
.screen-file span { font-size: 0.55rem; color: var(--text-secondary); text-align: center; }
.f-img .file-thumb { background: linear-gradient(135deg, #e17055, #fdcb6e); }
.f-vid .file-thumb { background: linear-gradient(135deg, #6C5CE7, #0984e3); }
.f-doc .file-thumb { background: linear-gradient(135deg, #e17055, #d63031); }
.f-folder .file-thumb { background: linear-gradient(135deg, #00b894, #0984e3); }
.f-audio .file-thumb { background: linear-gradient(135deg, #a29bfe, #fd79a8); }

.screen-tab-bar {
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.tab { text-align: center; font-size: 0.5rem; color: var(--text-muted); }
.tab.active { color: var(--brand-light); }
.tab-icon { width: 16px; height: 16px; background: currentColor; border-radius: 4px; margin: 0 auto 2px; opacity: 0.5; }
.tab.active .tab-icon { opacity: 1; }

/* Pi Mockup */
.mockup-pi {
    text-align: center;
    animation: float 8s ease-in-out infinite;
    animation-delay: -3s;
}

.pi-board {
    width: 160px;
    height: 100px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    position: relative;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.pi-chip {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #333, #555);
    border-radius: 4px;
    border: 1px solid #666;
    position: absolute;
    top: 14px;
    left: 14px;
}

.pi-ports { position: absolute; right: 8px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.pi-port { width: 14px; height: 10px; background: #333; border-radius: 2px; border: 1px solid #555; }

.pi-led { width: 6px; height: 6px; border-radius: 50%; position: absolute; bottom: 10px; }
.pi-led-green { left: 14px; background: var(--green); animation: blink-led 1.5s ease-in-out infinite; box-shadow: 0 0 8px var(--green); }
.pi-led-red { left: 26px; background: var(--red); opacity: 0.6; }

.pi-ssd {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-family: var(--mono);
    white-space: nowrap;
}

.pi-label {
    margin-top: 32px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Connection */
.connection-line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.connection-svg {
    width: 100%;
    height: 100%;
}
.connection-svg path { animation: dash-flow 1.5s linear infinite; }

.connection-label {
    position: absolute;
    bottom: -6px;
    font-size: 0.65rem;
    color: var(--brand-light);
    font-weight: 500;
    white-space: nowrap;
    background: var(--bg);
    padding: 0 6px;
}

.connection-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--brand);
    border-radius: 50%;
    animation: packet-flow 2.5s linear infinite;
    top: 50%;
    transform: translateY(-50%);
}
.cd-1 { animation-delay: 0s; }
.cd-2 { animation-delay: 0.8s; }
.cd-3 { animation-delay: 1.6s; }

/* ============================================
   SOCIAL PROOF MARQUEE
   ============================================ */

.social-proof {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    overflow: hidden;
}

.proof-scroll {
    display: flex;
    gap: 32px;
    animation: scroll-marquee 30s linear infinite;
    width: max-content;
}

.proof-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.proof-dot {
    width: 4px;
    height: 4px;
    background: var(--brand);
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   FEATURES
   ============================================ */

.features {
    padding: 120px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
    border-color: rgba(108, 92, 231, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-card-lg { grid-column: span 2; }

.feature-icon-wrap { margin-bottom: 20px; }
.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 14px;
    color: var(--brand-light);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
    padding: 120px 0;
    background: var(--bg-elevated);
}

.arch-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    margin-bottom: 24px;
}

.arch-block-compact { padding: 36px 48px; }

.arch-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.arch-desc {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 0.95rem;
}

/* Everyday diagram */
.arch-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.arch-node {
    text-align: center;
    padding: 24px;
    min-width: 140px;
}

.node-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin: 0 auto 12px;
    color: var(--brand-light);
}
.node-phone .node-icon { background: rgba(108, 92, 231, 0.12); }
.node-cloud .node-icon { background: rgba(0, 184, 148, 0.12); color: var(--green); }
.node-pi .node-icon { background: rgba(253, 203, 110, 0.12); color: var(--orange); }

.node-label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.node-sub { font-size: 0.75rem; color: var(--text-muted); }

.arch-arrow {
    position: relative;
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arrow-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    opacity: 0.3;
    position: relative;
}

.arrow-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    animation: packet-flow 2.5s linear infinite;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--brand);
}
.ap-1 { animation-delay: 0s; }
.ap-2 { animation-delay: 0.8s; }
.ap-3 { animation-delay: 1.6s; }

.arrow-label {
    position: absolute;
    bottom: 2px;
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.arch-callouts {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.callout {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.callout-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.callout-green { background: rgba(0, 184, 148, 0.15); color: var(--green); }

/* Setup Flow */
.setup-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.setup-step {
    text-align: center;
    padding: 24px 20px;
    position: relative;
    flex: 1;
    min-width: 150px;
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.15);
    color: var(--brand-light);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.setup-step.active .step-number {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.step-icon { color: var(--brand-light); margin-bottom: 12px; }
.setup-step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.setup-step p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

.setup-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0.3;
    align-self: center;
    margin-top: -30px;
    flex-shrink: 0;
}

/* Pi Internals */
.pi-internals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pi-service {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    transition: border-color 0.3s;
}
.pi-service:hover { border-color: var(--border-hover); }

.service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.service-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.dot-orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

.service-header code { font-weight: 600; font-size: 0.9rem; }
.service-badge {
    margin-left: auto;
    font-size: 0.65rem;
    background: rgba(108, 92, 231, 0.1);
    color: var(--brand-light);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.pi-service p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }

.pi-storage {
    grid-column: 1 / -1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.storage-visual { margin-bottom: 20px; }

.storage-bar-bg {
    height: 12px;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.storage-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 8px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.storage-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.storage-used { color: var(--brand-light); font-weight: 600; }

.storage-paths {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.spath {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}
.spath code {
    background: rgba(108, 92, 231, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--brand-light);
}
.spath span { color: var(--text-secondary); }

/* Move Flow */
.move-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.move-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.move-emoji { font-size: 1.5rem; }
.move-step span { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.move-arrow { color: var(--text-muted); flex-shrink: 0; }

/* ============================================
   APP SHOWCASE
   ============================================ */

.app-showcase {
    padding: 120px 0;
    position: relative;
}

.app-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.app-feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.af-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--af-color) 12%, transparent);
    border-radius: 12px;
    color: var(--af-color);
    margin-bottom: 16px;
}

.app-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.app-feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison {
    padding: 120px 0;
    background: var(--bg-elevated);
}

.comparison-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.comp-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
}
.comp-row:last-child { border-bottom: none; }

.comp-cell {
    padding: 18px 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.comp-header .comp-cell {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 24px;
    background: var(--bg-elevated);
}

.comp-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comp-highlight {
    background: rgba(108, 92, 231, 0.04);
    border-left: 1px solid rgba(108, 92, 231, 0.1);
}

.comp-header .comp-highlight {
    background: rgba(108, 92, 231, 0.1);
    color: var(--brand-light);
}

.comp-note { font-size: 0.7rem; color: var(--text-muted); margin-left: 4px; }
.comp-red { color: var(--red); }
.comp-green { color: var(--green); font-weight: 600; }

/* ============================================
   GET YOURS
   ============================================ */

.get-yours {
    padding: 120px 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.option-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    transition: all 0.35s;
}
.option-card:hover { border-color: rgba(108, 92, 231, 0.3); }

.option-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.option-badge-alt {
    background: linear-gradient(135deg, var(--brand-light), #fd79a8);
}

.option-icon {
    color: var(--brand-light);
    margin-bottom: 20px;
}

.option-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.option-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-light);
    margin-bottom: 12px;
}
.option-price span { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }

.option-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.option-list {
    list-style: none;
    margin-bottom: 32px;
}
.option-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.option-list svg { flex-shrink: 0; }

.option-prebuilt {
    border-style: dashed;
    opacity: 0.8;
}
.option-prebuilt:hover { opacity: 1; }

/* ============================================
   DIY SECTION
   ============================================ */

.diy-section {
    padding: 120px 0;
    background: var(--bg-elevated);
}

.parts-list {
    margin-bottom: 48px;
}

.parts-list h3, .diy-steps h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.part-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}
.part-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.part-icon { color: var(--brand-light); margin-bottom: 12px; }

.part-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.part-price { color: var(--brand-light); font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.part-card p { font-size: 0.78rem; color: var(--text-muted); }

/* DIY Steps */
.diy-step-list { margin-bottom: 40px; }

.diy-step {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.diy-step:last-child { border-bottom: none; }

.diy-step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.12);
    color: var(--brand-light);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.diy-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.diy-step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.diy-step-content a { color: var(--brand-light); text-decoration: underline; text-underline-offset: 3px; }

.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand-light); }

.code-block pre {
    padding: 16px;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7;
}
.code-block code { color: var(--text); }
.code-prompt { color: var(--brand-light); }

.diy-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   FAQ
   ============================================ */

.faq-section {
    padding: 120px 0;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

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

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    text-align: left;
    gap: 16px;
}
.faq-question:hover { color: var(--brand-light); }

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.faq-more {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.faq-more a {
    color: var(--brand-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
    padding: 80px 0 120px;
    background: var(--bg-elevated);
}

.cta-card {
    background: var(--bg-card);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 24px;
    padding: 80px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--brand);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
    max-width: 250px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-actions .btn-nav { display: none; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .feature-card-lg { grid-column: span 1; }

    .arch-diagram { flex-direction: column; gap: 0; }
    .arch-arrow { width: 60px; height: 50px; transform: rotate(90deg); }
    .arch-block { padding: 28px 20px; }

    .setup-flow { flex-direction: column; align-items: center; }
    .setup-connector { width: 2px; height: 24px; margin: 0; }

    .comp-row { grid-template-columns: 1.2fr repeat(3, 1fr); }
    .comp-cell { padding: 12px 10px; font-size: 0.75rem; }

    .device-mockup { flex-direction: column; gap: 20px; }
    .connection-line { display: none; }

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

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

    .hero-stats { gap: 20px; }
    .stat-value { font-size: 1.4rem; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .hero { padding: 100px 0 40px; }

    .comp-row { grid-template-columns: 1fr 1fr; }
    .comp-header .comp-cell:nth-child(2),
    .comp-header .comp-cell:nth-child(3),
    .comp-row .comp-cell:nth-child(2),
    .comp-row .comp-cell:nth-child(3) { display: none; }

    .arch-callouts { flex-direction: column; gap: 12px; }
    .move-flow { gap: 10px; }
    .move-arrow { display: none; }
    .mockup-phone { width: 180px; height: 360px; }

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

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

/* ============================================
   SETUP GUIDE PAGE
   ============================================ */

.setup-hero {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
    text-align: center;
}

.setup-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.setup-hero .container {
    position: relative;
    z-index: 1;
}

.setup-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 32px;
    transition: color 0.2s;
}
.setup-back:hover { color: var(--brand-light); }

.setup-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.setup-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 28px;
}

.setup-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--brand-light);
}

/* Progress Tracker */
.progress-tracker {
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    transition: opacity 0.3s;
}

.progress-tracker-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.progress-dot {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
}

.progress-dot::after {
    content: '';
    position: absolute;
    right: -8px;
    width: 8px;
    height: 1px;
    background: var(--border);
}
.progress-dot:last-child::after { display: none; }

.progress-dot.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 16px rgba(108, 92, 231, 0.4);
    transform: scale(1.1);
}

.progress-dot.completed {
    background: var(--brand);
    border-color: transparent;
    color: #fff;
    opacity: 0.6;
}

/* Setup Content */
.setup-content {
    padding: 48px 0 80px;
    background: var(--bg);
}

.setup-content .container {
    max-width: 800px;
}

/* Step Cards */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 24px;
    transition: border-color 0.3s;
}
.step-card:hover {
    border-color: rgba(108, 92, 231, 0.2);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.step-num {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.step-num-alt {
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 4px 16px rgba(253, 203, 110, 0.3);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.step-time {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.step-body a {
    color: var(--brand-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Checklist */
.checklist {
    margin: 20px 0;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.check-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.check-item input { display: none; }

.check-box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-hover);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
    position: relative;
}

.check-item input:checked ~ .check-box {
    background: var(--brand);
    border-color: var(--brand);
}
.check-item input:checked ~ .check-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-item input:checked ~ .check-label {
    opacity: 0.6;
}

.check-label {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text);
    transition: opacity 0.2s;
}
.check-label strong { font-weight: 600; }
.check-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.check-sub a { color: var(--brand-light); text-decoration: underline; text-underline-offset: 2px; }

/* Step Instructions */
.step-instructions {
    padding-left: 24px;
    margin: 16px 0;
}
.step-instructions li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 4px;
}
.step-instructions li strong { color: var(--text); }

.explain-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.explain-list li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    padding: 6px 0 6px 20px;
    position: relative;
}
.explain-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-light);
}

/* Callout Boxes */
.callout-box {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.callout-box strong { color: var(--text); }
.callout-box ul { margin-top: 6px; }
.callout-box li { margin-bottom: 4px; }

.callout-icon-box {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-top: -2px;
}

.callout-tip {
    background: rgba(108, 92, 231, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.12);
}
.callout-tip .callout-icon-box { background: rgba(108, 92, 231, 0.12); color: var(--brand-light); }

.callout-warning {
    background: rgba(253, 203, 110, 0.06);
    border: 1px solid rgba(253, 203, 110, 0.15);
}
.callout-warning .callout-icon-box { background: rgba(253, 203, 110, 0.15); color: var(--orange); }

.callout-danger {
    background: rgba(225, 112, 85, 0.06);
    border: 1px solid rgba(225, 112, 85, 0.15);
}
.callout-danger .callout-icon-box { background: rgba(225, 112, 85, 0.15); color: var(--red); }

.callout-success {
    background: rgba(0, 184, 148, 0.06);
    border: 1px solid rgba(0, 184, 148, 0.15);
}
.callout-success .callout-icon-box { background: rgba(0, 184, 148, 0.15); color: var(--green); }

/* Settings Card */
.settings-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    overflow: hidden;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }

.settings-key {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.settings-val {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

/* Terminal Output (dimmer) */
.terminal-output {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    overflow: hidden;
}
.terminal-output .code-header {
    background: var(--surface);
    border-bottom-color: var(--border);
}
.terminal-output pre {
    padding: 16px;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.7;
}
.terminal-output code {
    color: var(--text-muted);
    font-family: var(--mono);
}

.code-highlight { color: var(--brand-light); font-weight: 600; }
.code-success { color: var(--green); font-weight: 600; }
.text-green { color: var(--green); }

/* Substep Titles */
.substep-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 12px;
    letter-spacing: -0.01em;
}

/* Keystroke Guide */
.keystroke-guide {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    overflow: hidden;
}

.keystroke {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.keystroke:last-child { border-bottom: none; }

.keystroke kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-light);
}

.keystroke span {
    color: var(--text-secondary);
}

/* Script Breakdown */
.script-breakdown {
    margin: 20px 0;
}

.script-step {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.script-step:last-child { border-bottom: none; }

.script-step-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-light);
    font-family: var(--mono);
    align-self: flex-start;
    margin-top: 2px;
}

.script-step strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2px;
}
.script-step p {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

/* App Flow */
.app-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.app-flow-step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.app-flow-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.12);
    color: var(--brand-light);
    border-radius: 14px;
    margin: 0 auto 12px;
}

.app-flow-icon-success {
    background: rgba(0, 184, 148, 0.12);
    color: var(--green);
}

.app-flow-step h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.app-flow-step p {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    line-height: 1.5 !important;
}

.app-flow-arrow {
    display: flex;
    align-items: center;
    color: var(--brand-light);
    opacity: 0.4;
    padding-top: 28px;
    flex-shrink: 0;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(253, 203, 110, 0.1);
    border: 1px solid rgba(253, 203, 110, 0.2);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--orange);
    margin-left: 8px;
    vertical-align: middle;
}

/* Troubleshooting Card */
.troubleshooting-card {
    border-color: rgba(253, 203, 110, 0.15);
}
.troubleshooting-card .faq-list {
    max-width: 100%;
}

.troubleshooting-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* Setup Footer */
.setup-footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.setup-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.setup-footer a {
    color: var(--brand-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Setup page responsive */
@media (max-width: 900px) {
    .step-card { padding: 28px 24px; }
    .progress-dot { width: 28px; height: 28px; font-size: 0.65rem; }
    .progress-dot::after { width: 4px; right: -4px; }
    .progress-tracker-inner { gap: 4px; }
    .app-flow-arrow { display: none; }
    .app-flow { gap: 12px; }
}

@media (max-width: 600px) {
    .setup-hero { padding: 110px 0 40px; }
    .setup-hero-title { font-size: 2rem; }
    .step-card { padding: 24px 18px; }
    .step-header { gap: 14px; }
    .step-num { width: 40px; height: 40px; font-size: 1rem; border-radius: 12px; }
    .step-title { font-size: 1.15rem; }
    .settings-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .settings-val { text-align: left; }
    .keystroke kbd { min-width: 36px; padding: 4px 8px; }
    .app-flow-step { min-width: 100%; }
    .meta-badge { font-size: 0.75rem; padding: 6px 12px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
