@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,500..700,50&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --bg-soothing: #F4F8F5;
    --bg-mint: #E7F3ED;
    --bg-ink: #13201D;
    --card-bg: #FEFFFC;
    --primary-sage: #0F6F66;
    --primary-sage-light: #138A7E;
    --primary-sage-muted: #CDE9E1;
    --accent-blue: #DFA63A;
    --accent-soft: #FFF3CD;
    --text-main: #16211F;
    --text-muted: #5B6D67;
    --border-color: #D9E6DF;
    --glass-bg: rgba(254, 255, 252, 0.78);
    --glass-border: rgba(15, 111, 102, 0.16);
    --shadow-soft: 0 24px 70px -32px rgba(15, 82, 76, 0.42);
    --shadow-subtle: 0 14px 38px -28px rgba(19, 32, 29, 0.38);
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at 8% 6%, rgba(205, 233, 225, 0.74), transparent 34rem),
        radial-gradient(circle at 92% 18%, rgba(255, 243, 205, 0.86), transparent 32rem),
        linear-gradient(180deg, #F9FCF8 0%, var(--bg-soothing) 58%, #EEF6F0 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(19, 32, 29, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 32, 29, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

h1,
h2,
h3,
.heading-serif {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.035em;
}

/* Base Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
    cursor: pointer;
}

.btn-primary {
    background:
        linear-gradient(135deg, var(--primary-sage), var(--primary-sage-light));
    color: white;
    box-shadow: 0 18px 38px -20px rgba(15, 111, 102, 0.72);
}

.btn-primary:hover {
    background:
        linear-gradient(135deg, #0B5E56, var(--primary-sage-light));
    transform: translateY(-3px);
    box-shadow: 0 22px 48px -22px rgba(15, 111, 102, 0.86);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--primary-sage);
    border: 1px solid var(--primary-sage-muted);
}

.btn-secondary:hover {
    background-color: var(--bg-soothing);
    border-color: var(--primary-sage);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(223, 166, 58, 0.42);
    outline-offset: 3px;
}

/* Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(15, 111, 102, 0.08);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text-main);
}

.logo-img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 10px 16px rgba(15, 111, 102, 0.22));
}

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

.nav-setup-link {
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-setup-link:hover {
    background: rgba(15, 111, 102, 0.08);
    color: var(--primary-sage);
}

.language-select {
    background: transparent;
    border: none;
    padding: 6px 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.lang-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 111, 102, 0.07);
    padding: 2px 12px;
    border-radius: 999px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.lang-wrapper:hover {
    background: rgba(15, 111, 102, 0.11);
    border-color: var(--primary-sage-muted);
}

.lang-icon {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background:
        radial-gradient(circle at 78% 18%, rgba(205, 233, 225, 0.78), transparent 28rem),
        radial-gradient(circle at 18% 84%, rgba(255, 243, 205, 0.9), transparent 26rem);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 112px;
    right: max(-8vw, -120px);
    width: clamp(180px, 22vw, 360px);
    height: clamp(180px, 22vw, 360px);
    border-radius: 42% 58% 54% 46%;
    border: 1px solid rgba(15, 111, 102, 0.14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(205, 233, 225, 0.24));
    transform: rotate(-10deg);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 4vw, 3.05rem);
    line-height: 1.08;
    margin-bottom: 24px;
    color: var(--text-main);
    text-wrap: balance;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    text-wrap: pretty;
}

.hero-highlight {
    font-weight: 600;
    color: var(--primary-sage);
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-download-note {
    margin-top: 18px;
    max-width: 560px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hero-download-note a {
    color: var(--primary-sage);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(15, 111, 102, 0.28);
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-download-note a:hover {
    color: var(--primary-sage-light);
    text-decoration-color: currentColor;
}

.hero-download-note a + span {
    margin-left: 0.25em;
}

/* Screenshot Player Styling */
.hero-screenshot-player {
    position: relative;
}

.screenshot-player-window {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
}

.screenshot-player-header {
    background: linear-gradient(180deg, #FBFCFA, #EEF5F0);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.screenshot-player-header .dots {
    display: flex;
    gap: 6px;
}

.screenshot-player-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #B9CCC4;
}

.screenshot-player-header .dots span:nth-child(1) {
    background: #E89B82;
}

.screenshot-player-header .dots span:nth-child(2) {
    background: #E9C15D;
}

.screenshot-player-header .dots span:nth-child(3) {
    background: #5DBB9C;
}

.screenshot-player-header .url-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.86);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #79918A;
    text-align: center;
}

.screenshot-player-content {
    background:
        radial-gradient(circle at 18% 8%, rgba(205, 233, 225, 0.54), transparent 26rem),
        #F7FBF8;
    height: 400px;
    position: relative;
}

.screenshot-player-slide-container {
    width: 100%;
    height: 100%;
}

.screenshot-player-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
}

.screenshot-player-slide.active {
    opacity: 1;
    z-index: 10;
}

.screenshot-player-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Removed .slide-caption styles as they moved to controls */

/* Mock Browser for Slide 1 */
.mock-browser {
    padding: 40px;
    background: white;
    flex: 1;
}

.mock-content h3 {
    margin-bottom: 20px;
}

.mock-content p {
    color: var(--text-muted);
}

.selection-box {
    position: absolute;
    top: 100px;
    left: 40px;
    width: 0;
    height: 24px;
    background: rgba(223, 166, 58, 0.26);
    border-right: 2px solid var(--accent-blue);
    animation: extendSelection 4s infinite;
}

@keyframes extendSelection {
    0% {
        width: 0;
    }

    40% {
        width: 300px;
    }

    100% {
        width: 300px;
    }
}

.floating-toolbar {
    position: absolute;
    top: 130px;
    left: 140px;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    animation: showToolbar 4s infinite;
}

@keyframes showToolbar {

    0%,
    45% {
        opacity: 0;
        transform: translateY(10px);
    }

    55%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
    }
}

.screenshot-player-controls {
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    position: relative;
    min-height: 68px;
}

.controls-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.screenshot-player-captions {
    position: relative;
    height: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-caption {
    position: absolute;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}

.control-caption.active {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-player-controls button {
    background: rgba(15, 111, 102, 0.07);
    border: 1px solid rgba(15, 111, 102, 0.1);
    border-radius: 12px;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.screenshot-player-controls button:hover {
    color: var(--primary-sage);
    background: rgba(15, 111, 102, 0.12);
    transform: translateY(-1px);
}

.slide-dots {
    display: flex;
    gap: 8px;
}

.slide-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-sage-muted);
    cursor: pointer;
}

.slide-dots span.active {
    background: var(--primary-sage);
    transform: scale(1.2);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-kicker {
    display: block;
    color: var(--primary-sage);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
    text-wrap: balance;
}

.setup-path {
    padding: 92px 0 110px;
    background:
        linear-gradient(180deg, rgba(254, 255, 252, 0.58), rgba(231, 243, 237, 0.74)),
        radial-gradient(circle at 16% 24%, rgba(223, 166, 58, 0.16), transparent 28rem);
    border-top: 1px solid rgba(15, 111, 102, 0.08);
    border-bottom: 1px solid rgba(15, 111, 102, 0.08);
}

.setup-heading .section-title {
    margin-bottom: 18px;
}

.setup-heading .section-subtext {
    margin-bottom: 44px;
}

.setup-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.setup-step {
    position: relative;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 26px;
    border: 1px solid rgba(15, 111, 102, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 249, 0.86));
    color: inherit;
    text-decoration: none;
    box-shadow: 0 24px 58px -46px rgba(15, 82, 76, 0.58);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.setup-step:hover,
.setup-step:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(15, 111, 102, 0.34);
    box-shadow: 0 34px 72px -44px rgba(15, 82, 76, 0.76);
}

.setup-step:focus-visible {
    outline: 3px solid rgba(223, 166, 58, 0.42);
    outline-offset: 4px;
}

.setup-step:hover .setup-link,
.setup-step:focus-visible .setup-link {
    transform: translateY(-2px);
    background: var(--primary-sage);
    color: white;
}

.setup-step:hover .setup-link::after,
.setup-step:focus-visible .setup-link::after {
    transform: translateX(3px);
}

.setup-step::after {
    content: '';
    position: absolute;
    top: 34px;
    right: -26px;
    width: 52px;
    height: 1px;
    background: rgba(15, 111, 102, 0.22);
}

.setup-step:last-child::after {
    display: none;
}

.setup-step-primary {
    background:
        radial-gradient(circle at 18% 8%, rgba(19, 138, 126, 0.18), transparent 18rem),
        linear-gradient(180deg, rgba(239, 250, 246, 0.98), rgba(254, 255, 252, 0.9));
    border-color: rgba(15, 111, 102, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 30px 68px -48px rgba(15, 82, 76, 0.68);
}

.setup-step-ai {
    background:
        radial-gradient(circle at 18% 8%, rgba(223, 166, 58, 0.16), transparent 18rem),
        linear-gradient(180deg, rgba(255, 250, 236, 0.96), rgba(254, 255, 252, 0.9));
    border-color: rgba(223, 166, 58, 0.2);
}

.setup-step-destination {
    background:
        radial-gradient(circle at 18% 8%, rgba(83, 166, 151, 0.14), transparent 18rem),
        linear-gradient(180deg, rgba(240, 249, 247, 0.96), rgba(254, 255, 252, 0.9));
    border-color: rgba(83, 166, 151, 0.2);
}

.setup-step-quiet {
    background:
        linear-gradient(180deg, rgba(255, 243, 205, 0.62), rgba(254, 255, 252, 0.9));
    border-color: rgba(223, 166, 58, 0.22);
}

.setup-step-number {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(15, 111, 102, 0.09);
    color: var(--primary-sage);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.setup-step-primary .setup-step-number {
    background: var(--primary-sage);
    color: white;
}

.setup-step-ai .setup-step-number {
    background: rgba(223, 166, 58, 0.18);
    color: #8A6200;
}

.setup-step-destination .setup-step-number {
    background: rgba(15, 111, 102, 0.12);
    color: var(--primary-sage);
}

.setup-step-quiet .setup-step-number {
    background: rgba(223, 166, 58, 0.16);
    color: #8A6200;
}

.setup-step h3 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--text-main);
    font-size: 1.42rem;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
    text-wrap: balance;
}

.setup-step p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.58;
    text-wrap: pretty;
}

.setup-step.setup-step-primary .setup-step-label,
.setup-step.setup-step-primary h3 {
    color: var(--text-main);
}

.setup-step.setup-step-primary p {
    color: var(--text-muted);
}

.setup-meta,
.setup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.setup-meta span,
.setup-options span,
.setup-options a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 111, 102, 0.08);
    color: var(--primary-sage);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.setup-step-primary .setup-meta span {
    background: rgba(15, 111, 102, 0.1);
    color: var(--primary-sage);
}

.setup-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--primary-sage);
    background: rgba(15, 111, 102, 0.08);
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(15, 111, 102, 0.12);
    transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.setup-link::after {
    content: '→';
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.22s ease;
}

.setup-step-primary .setup-link {
    color: white;
    background: var(--primary-sage);
    box-shadow: 0 16px 34px -24px rgba(15, 111, 102, 0.86);
}

.setup-hub {
    padding-top: 72px;
}

.setup-hub-hero {
    padding: 96px 0 72px;
    background:
        radial-gradient(circle at 82% 8%, rgba(223, 166, 58, 0.2), transparent 26rem),
        radial-gradient(circle at 12% 22%, rgba(205, 233, 225, 0.78), transparent 30rem);
}

.setup-hub-hero .section-kicker {
    text-align: left;
}

.setup-hub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
    gap: 64px;
    align-items: center;
}

.setup-hub h1 {
    max-width: 760px;
    font-size: clamp(2rem, 3.4vw, 2.95rem);
    line-height: 1.08;
    margin-bottom: 20px;
    color: var(--text-main);
    text-wrap: balance;
}

.setup-hub-hero p {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1.16rem;
    line-height: 1.7;
}

.setup-hub-card {
    padding: 26px;
    border-radius: 18px;
    background: rgba(254, 255, 252, 0.86);
    border: 1px solid rgba(15, 111, 102, 0.12);
    box-shadow: var(--shadow-soft);
}

.setup-hub-card ol {
    list-style: none;
    display: grid;
    gap: 12px;
    counter-reset: setupHub;
}

.setup-hub-card li {
    counter-increment: setupHub;
}

.setup-hub-card a {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 900;
}

.setup-hub-card a::before {
    content: counter(setupHub, decimal-leading-zero);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15, 111, 102, 0.09);
    color: var(--primary-sage);
    font-size: 0.82rem;
}

.setup-hub-section {
    padding: 84px 0;
    border-top: 1px solid rgba(15, 111, 102, 0.09);
}

.setup-hub-section-final {
    background: rgba(255, 243, 205, 0.32);
}

.setup-hub-section-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.setup-hub-section-copy {
    position: sticky;
    top: 108px;
}

.setup-hub-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--primary-sage);
    color: white;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.setup-hub-section h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    color: var(--text-main);
    margin-bottom: 18px;
    text-wrap: balance;
}

.setup-hub-section-copy p {
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.setup-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.setup-choice-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    border-radius: 18px;
    border: 1px solid rgba(15, 111, 102, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 249, 0.9));
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 22px 56px -46px rgba(19, 32, 29, 0.52);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.setup-choice-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 111, 102, 0.24);
    box-shadow: 0 30px 64px -46px rgba(15, 82, 76, 0.66);
}

.setup-choice-card span {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 111, 102, 0.08);
    color: var(--primary-sage);
    font-size: 0.78rem;
    font-weight: 900;
}

.setup-choice-card h3 {
    margin: 22px 0 10px;
    color: var(--text-main);
    font-size: 1.34rem;
    line-height: 1.14;
    text-wrap: balance;
}

.setup-choice-card p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.62;
}

.setup-choice-card-disabled {
    opacity: 0.78;
}

.setup-choice-card-disabled:hover {
    transform: none;
    box-shadow: 0 22px 56px -46px rgba(19, 32, 29, 0.52);
}

.manual-install-page {
    padding-top: 72px;
}

.manual-install-hero {
    padding: 96px 0 72px;
    background:
        radial-gradient(circle at 82% 10%, rgba(223, 166, 58, 0.2), transparent 26rem),
        radial-gradient(circle at 10% 22%, rgba(205, 233, 225, 0.76), transparent 31rem);
}

.manual-install-hero .section-kicker {
    text-align: left;
}

.manual-install-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    gap: 56px;
    align-items: center;
}

.manual-install-page h1 {
    max-width: 760px;
    font-size: clamp(2rem, 3.4vw, 2.95rem);
    line-height: 1.08;
    color: var(--text-main);
    margin-bottom: 20px;
    text-wrap: balance;
}

.manual-install-hero p {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1.16rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.download-panel {
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(15, 111, 102, 0.16);
    background:
        radial-gradient(circle at 18% 8%, rgba(19, 138, 126, 0.14), transparent 18rem),
        rgba(254, 255, 252, 0.9);
    box-shadow: var(--shadow-soft);
}

.download-panel > span,
.checksum-box span {
    color: var(--primary-sage);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.download-panel h2 {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    font-size: 1.18rem;
    letter-spacing: 0;
    margin: 12px 0 10px;
    word-break: break-word;
}

.download-panel p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.checksum-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(15, 111, 102, 0.08);
    border: 1px solid rgba(15, 111, 102, 0.1);
}

.checksum-box code {
    display: block;
    margin-top: 8px;
    color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow-x: auto;
}

.code-panel {
    margin: 16px 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(15, 111, 102, 0.08);
    border: 1px solid rgba(15, 111, 102, 0.1);
    overflow-x: auto;
}

.code-panel code,
.manual-step-card code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-panel code {
    color: var(--text-main);
    font-size: 0.92rem;
    white-space: nowrap;
}

.code-panel-wide {
    max-width: 760px;
}

.official-doc-section {
    padding: 0 0 96px;
}

.official-doc-note {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    text-align: left;
}

.official-doc-note a {
    color: var(--primary-sage);
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 111, 102, 0.24);
    overflow-wrap: anywhere;
}

.official-doc-note a:hover {
    border-bottom-color: currentColor;
}

.manual-steps {
    padding: 84px 0 108px;
}

.manual-steps-layout {
    display: grid;
    gap: 22px;
}

.manual-step-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px;
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(15, 111, 102, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 249, 0.88));
    box-shadow: 0 24px 58px -48px rgba(15, 82, 76, 0.58);
}

.manual-step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-sage);
    color: white;
    font-weight: 900;
}

.manual-step-card h2 {
    color: var(--text-main);
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    line-height: 1.08;
    margin-bottom: 12px;
    text-wrap: balance;
}

.manual-step-card p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 18px;
    text-wrap: pretty;
}

.manual-step-card ol {
    padding-left: 20px;
    color: var(--text-main);
}

.manual-step-card li {
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.62;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.case-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(254, 255, 252, 0.78));
    padding: 34px;
    border-radius: 18px;
    border: 1px solid rgba(15, 111, 102, 0.09);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(15, 111, 102, 0.22);
    box-shadow: 0 28px 62px -44px rgba(15, 82, 76, 0.62);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--bg-mint);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-sage);
    transition: all 0.3s ease;
}

.case-card:hover .icon-wrapper {
    background:
        linear-gradient(135deg, var(--primary-sage), var(--primary-sage-light));
    color: white;
}

/* Integrations Section */
.integ-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-left {
    text-align: left;
}

.section-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 800px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-wrap: pretty;
}

#integrations .section-subtext {
    max-width: 900px;
}

@media (min-width: 1025px) {
    #integrations .section-subtext {
        white-space: nowrap;
    }
}

.integ-item {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    gap: 20px;
    padding: 30px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 249, 0.88));
    box-shadow: 0 20px 52px -42px rgba(19, 32, 29, 0.48);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(15, 111, 102, 0.1);
}

.integ-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-sage-muted);
    box-shadow: 0 30px 64px -42px rgba(15, 82, 76, 0.62);
}

.integ-icon-small {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.obsidian-color {
    background: #EFF0FF;
    color: #5846A2;
}

.drive-color {
    background: #EAF8EF;
    color: #16844B;
}

.notion-color {
    background: #EEF3F0;
    color: #16211F;
}

.ai-color {
    background: var(--accent-soft);
    color: #9A6B00;
}

.integ-info h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.integ-info p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.logo-wall {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px 60px;
    margin-top: 40px;
}

.integ-logo {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Tiers */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tier-card {
    background: var(--card-bg);
    padding: 48px;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.tier-card.featured {
    border-color: var(--primary-sage);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.tier-card .badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary-sage-muted);
    color: var(--primary-sage);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.tier-price {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 16px 0 32px;
    color: var(--primary-sage);
}

.tier-features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.tier-features li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-sage);
    font-weight: bold;
}

/* Footer */
footer {
    padding: 32px 0 24px;
    background: rgba(254, 255, 252, 0.82);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.footer-brand .logo-img {
    height: 28px;
}

.footer-brand .logo span {
    font-size: 1.25rem;
}

.footer-brand .logo {
    margin-bottom: 4px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-info {
    display: flex;
    gap: 48px;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-contact-item:hover {
    color: var(--primary-sage);
    transform: translateX(2px);
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 48px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-info {
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer-info {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .setup-hub-hero-grid,
    .setup-hub-section-grid,
    .manual-install-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .setup-hub-section-copy {
        position: static;
    }

    .tier-grid,
    .case-grid,
    .setup-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .setup-step::after {
        display: none;
    }

    .integ-row {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text .subtitle {
        margin: 0 auto 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-download-note {
        margin-left: auto;
        margin-right: auto;
    }

    .integ-left,
    .left-align {
        text-align: center;
        margin-bottom: 32px;
    }

    .section-subtext {
        margin: 0 auto 48px;
    }

    .ecosystem-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .case-grid,
    .setup-flow {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-setup-link {
        padding: 7px 9px;
        font-size: 0.84rem;
    }

    .setup-hub h1 {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .manual-install-page h1 {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .manual-step-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .setup-step {
        min-height: auto;
    }

    .screenshot-player-controls {
        min-height: 78px;
        padding: 10px 12px;
    }

    .screenshot-player-controls button {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .control-caption {
        max-width: calc(100% - 88px);
        white-space: normal;
        font-size: 0.78rem;
        line-height: 1.3;
    }
}

/* Theater Mode Slideshow */
.screenshot-player-window {
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.screenshot-player-window:hover {
    transform: scale(1.02);
    box-shadow: 0 34px 76px -28px rgba(15, 82, 76, 0.55);
}

/* Bulletproof Theater Mode centered logic */
body.theater-mode-active {
    overflow: hidden !important;
}

body.theater-mode-active #screenshot-player {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    background: rgba(19, 32, 29, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 24px;
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    /* Kill any animations/transforms from the grid/intersection observer */
    transform: none !important;
    transition: none !important;
    animation: theaterFadeIn 0.3s ease-out !important;
}

@keyframes theaterFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.theater-mode-active .screenshot-player-display {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.theater-mode-active .screenshot-player-window {
    width: 90vw;
    max-width: 1100px;
    height: 80vh;
    max-height: 800px;
    cursor: default;
    transform: none !important;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.46);
    display: flex;
    flex-direction: column;
}

body.theater-mode-active .screenshot-player-content {
    flex: 1;
    height: auto;
}

.theater-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

body.theater-mode-active .theater-close {
    opacity: 1;
    visibility: visible;
}

.theater-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    body.theater-mode-active #screenshot-player {
        padding: 12px;
    }
    body.theater-mode-active .screenshot-player-window {
        width: 100%;
        height: 70vh;
    }
}
