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

/* ---- Theme: Night (default) ---- */
:root, :root[data-theme="night"] {
    --bg: #0a0a18;
    --surface: #111125;
    --surface2: #181830;
    --border: #1e1e38;
    --text: #e8e8f0;
    --muted: #7a7a96;
    --accent: #ff6b2b;
    --accent-glow: rgba(255, 107, 43, 0.12);
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    --gradient-a: rgba(79, 70, 180, 0.15);
    --gradient-b: rgba(30, 60, 160, 0.12);
}

/* ---- Theme: Day ---- */
:root[data-theme="day"] {
    --bg: #faf8f4;
    --surface: #ffffff;
    --surface2: #f5f3ee;
    --border: #e5e2da;
    --text: #1a1a2e;
    --muted: #6b6b80;
    --accent: #e8571a;
    --accent-glow: rgba(232, 87, 26, 0.08);
    --green: #16a34a;
    --red: #dc2626;
    --yellow: #ca8a04;
    --gradient-a: rgba(255, 220, 180, 0.3);
    --gradient-b: rgba(255, 200, 140, 0.15);
}

/* ---- Theme: Dusk ---- */
:root[data-theme="dusk"] {
    --bg: #161822;
    --surface: #1c1f2e;
    --surface2: #222538;
    --border: #2c3048;
    --text: #e0e2ec;
    --muted: #808498;
    --accent: #ff6b2b;
    --accent-glow: rgba(255, 107, 43, 0.10);
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    --gradient-a: rgba(100, 80, 150, 0.10);
    --gradient-b: rgba(60, 80, 130, 0.08);
}

/* ---- Auto-detect ---- */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg: #faf8f4; --surface: #ffffff; --surface2: #f5f3ee; --border: #e5e2da;
        --text: #1a1a2e; --muted: #6b6b80; --accent: #e8571a;
        --accent-glow: rgba(232, 87, 26, 0.08); --green: #16a34a; --red: #dc2626;
        --yellow: #ca8a04; --gradient-a: rgba(255, 220, 180, 0.3); --gradient-b: rgba(255, 200, 140, 0.15);
    }
}

/* ---- Base ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.5s ease, color 0.5s ease;
}

.w { max-width: 880px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Ambient Gradient ---- */
.ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 600px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 80% 50% at 30% 10%, var(--gradient-a), transparent),
                radial-gradient(ellipse 60% 40% at 70% 20%, var(--gradient-b), transparent);
    transition: background 0.5s ease;
}

/* ---- Nav ---- */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-login {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-login:hover {
    border-color: var(--text);
    background: var(--surface2);
    text-decoration: none;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--text);
    color: var(--bg);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}
.btn-nav:hover { opacity: 0.9; text-decoration: none; transform: translateY(-1px); }

/* ---- Connector Strip ---- */
.connectors {
    padding: 56px 0 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.connectors-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    transition: color 0.5s ease;
}
.connectors-sub {
    color: var(--muted);
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto 32px;
    transition: color 0.5s ease;
}
.connector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    text-align: left;
}
.connector-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 18px;
    color: var(--text);
    transition: transform 0.15s, border-color 0.2s, background 0.5s ease;
    display: flex;
    flex-direction: column;
}
.connector-card:hover {
    border-color: var(--accent);
    background: var(--surface2);
    text-decoration: none;
    transform: translateY(-2px);
}
.connector-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    color: var(--accent);
}
.connector-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
    transition: color 0.5s ease;
}
.connector-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
    transition: color 0.5s ease;
}
.connector-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.5s ease;
}
@media (max-width: 720px) {
    .connector-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Connector detail cards (hub page) ---- */
.connector-details {
    padding: 56px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.connector-detail {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 28px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    transition: border-color 0.2s, transform 0.15s, background 0.5s ease;
}
.connector-detail:hover {
    border-color: var(--accent);
    text-decoration: none;
    transform: translateY(-2px);
}
.connector-detail-icon {
    width: 64px;
    height: 64px;
    color: var(--accent);
    background: var(--surface2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease;
}
.connector-detail-icon svg {
    width: 28px;
    height: 28px;
}
.connector-detail-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.connector-detail h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.4px;
    color: var(--text);
    transition: color 0.5s ease;
}
.connector-detail-tagline {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    transition: color 0.5s ease;
}
.connector-detail-body {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    transition: color 0.5s ease;
}
.connector-detail-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
    margin-bottom: 16px;
}
.connector-detail-list li {
    color: var(--muted);
    font-size: 13px;
    padding-left: 18px;
    position: relative;
    transition: color 0.5s ease;
}
.connector-detail-list li:before {
    content: "\2713";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 700;
}
.connector-detail-cta {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}
.connector-mix {
    text-align: center;
    padding: 40px 0 80px;
}
.connector-mix h2 {
    font-size: 28px;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
    color: var(--text);
    transition: color 0.5s ease;
}
.connector-mix p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 15px;
    line-height: 1.7;
    transition: color 0.5s ease;
}
@media (max-width: 720px) {
    .connector-detail { grid-template-columns: 1fr; padding: 20px; }
    .connector-detail-list { grid-template-columns: 1fr; }
}

/* ---- Features grid (sub-pages) ---- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.feature-item {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    transition: color 0.5s ease;
}
.feature-item p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    transition: color 0.5s ease;
}
@media (max-width: 720px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ---- Code block (sub-pages) ---- */
.section-sub {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 12px 0 20px;
    transition: color 0.5s ease;
}
.section-sub code {
    background: var(--surface2);
    color: var(--text);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    transition: background 0.5s ease, color 0.5s ease;
}
.code-block {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}
.code-block code {
    color: var(--text);
    background: transparent;
    white-space: pre;
}

/* ---- AI Assistant chat showcase ---- */
.chat-showcase {
    padding: 64px 0 24px;
}
.chat-showcase-eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 12px;
    transition: color 0.5s ease;
}
.chat-showcase-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    transition: color 0.5s ease;
}
.chat-showcase-sub {
    color: var(--muted);
    font-size: 16px;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
    transition: color 0.5s ease;
}
.chat-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(0,0,0,0.25);
    transition: background 0.5s ease, border-color 0.5s ease;
}
.chat-window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
    transition: background 0.5s ease, border-color 0.5s ease;
}
.chat-window-dots {
    display: flex;
    gap: 6px;
}
.chat-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.5s ease;
}
.chat-window-title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.5s ease;
}
.chat-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.msg {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}
.msg-user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}
.msg-assistant {
    align-self: flex-start;
    background: var(--surface2);
    color: var(--text);
    border-bottom-left-radius: 4px;
    max-width: 88%;
    transition: background 0.5s ease, color 0.5s ease;
}
.msg-thinking {
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
    margin-bottom: 10px;
    transition: color 0.5s ease;
}
.msg-list {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.msg-list li {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.msg-list li strong { color: var(--text); transition: color 0.5s ease; }
@media (max-width: 720px) {
    .chat-showcase-title { font-size: 26px; }
    .msg, .msg-assistant { max-width: 95%; }
}

/* ---- Demo link (hero secondary) ---- */
.hero-demo {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}
.hero-demo a {
    color: var(--accent);
    font-weight: 500;
    transition: color 0.5s ease;
}
.chat-showcase-link {
    color: var(--accent);
    font-weight: 600;
    margin-left: 4px;
    white-space: nowrap;
    transition: color 0.5s ease;
}

/* ---- Logo ---- */
.logo {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    transition: color 0.5s ease;
}
.logo:hover { text-decoration: none; }
.logo-text span { color: var(--accent); transition: color 0.5s ease; position: relative; }

.logo-pulse-line {
    display: block;
    width: 36px;
    height: 6px;
    position: absolute;
    bottom: -5px;
    left: 0;
    overflow: visible;
}

.logo-pulse-line .pulse-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    transition: stroke 0.5s ease;
}

@keyframes ecgPulse {
    0% { stroke-dashoffset: 60; opacity: 0.3; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    70% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -60; opacity: 0.3; }
}

.logo-pulse-line .pulse-path {
    animation: ecgPulse 4s ease-in-out infinite;
}

/* ---- Theme Toggle (pill with icons, detached top-right) ---- */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 50;
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
    transition: background 0.5s ease, border-color 0.5s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.theme-btn svg {
    width: 16px;
    height: 16px;
}

.theme-btn:hover {
    color: var(--text);
}
.theme-btn.active {
    background: var(--text);
    color: var(--bg);
}

@media (max-width: 1099px) {
    .theme-toggle {
        position: static;
        box-shadow: none;
    }
}
@media (max-width: 720px) {
    .theme-toggle { display: none; }
}

/* ---- Hero ---- */
.hero {
    padding: 100px 0 48px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    transition: color 0.5s ease;
}

.hero h1 strong {
    font-weight: 700;
    color: var(--text);
}

.hero .subhead {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 36px;
    transition: color 0.5s ease;
}

/* ---- Hero Buttons ---- */
.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #1a1a2e;
}

.btn-primary svg { width: 16px; height: 16px; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    border-color: var(--muted);
    transform: translateY(-1px);
    text-decoration: none;
}

[data-theme="day"] .btn-primary {
    background: #1a1a2e;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

[data-theme="day"] .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
}

.hero-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 24px;
    transition: color 0.5s ease;
}

/* ---- Scan Input ---- */
.scan-input-wrap {
    max-width: 520px;
    margin: 0 auto;
    margin-top: 16px;
}

.scan-input-box {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.5s ease;
}

.scan-input-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.scan-input-box input {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    transition: color 0.5s ease;
}

.scan-input-box input::placeholder { color: var(--muted); }

.scan-input-box button {
    background: var(--surface2);
    color: var(--text);
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.scan-input-box button:hover { background: var(--border); }

/* ---- Scan Result ---- */
#scan-result { margin-top: 14px; }

/* ---- Section ---- */
.section {
    padding: 72px 0;
    text-align: center;
}

.section h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin-bottom: 40px;
    color: var(--text);
    transition: color 0.5s ease;
}

/* ---- How It Works ---- */
.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.step {
    flex: 1;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.step-icon svg { width: 20px; height: 20px; color: var(--accent); transition: transform 0.3s; }

/* Connecting line between steps */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: var(--border);
    z-index: 1;
    transition: background 0.5s ease;
}

/* Cycling animation for steps */
@keyframes stepPulse {
    0%, 5% { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
    30%, 100% { border-color: var(--border); box-shadow: none; }
}

.step:nth-child(1) .step-icon { animation: stepPulse 6s ease-in-out infinite; }
.step:nth-child(2) .step-icon { animation: stepPulse 6s ease-in-out infinite 2s; }
.step:nth-child(3) .step-icon { animation: stepPulse 6s ease-in-out infinite 4s; }

/* Animate connecting lines too */
@keyframes linePulse {
    0%, 5% { background: var(--accent); opacity: 0.5; }
    30%, 100% { background: var(--border); opacity: 1; }
}

.step:nth-child(1)::after { animation: linePulse 6s ease-in-out infinite 1s; }
.step:nth-child(2)::after { animation: linePulse 6s ease-in-out infinite 3s; }

.step h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.5s ease;
}

.step p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
    transition: color 0.5s ease;
}

/* ---- Pricing Cards ---- */
.pricing-sub {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    max-width: 560px;
    margin: -8px auto 32px;
    transition: color 0.5s ease;
}
.pricing-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.price-features {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price-features li {
    font-size: 13px;
    color: var(--muted);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.5s ease;
}

.price-features li::before {
    content: '';
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.5s ease;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    border-color: var(--muted);
    transform: translateY(-2px);
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.price-card.featured:hover {
    box-shadow: 0 0 50px var(--accent-glow);
}

.price-tier {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.5s ease;
}

.price-badge {
    font-size: 10px;
    font-weight: 600;
    background: var(--surface2);
    color: var(--text);
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0;
    text-transform: none;
    transition: background 0.5s ease, color 0.5s ease;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    transition: color 0.5s ease;
}

.price-period {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    transition: color 0.5s ease;
}

.price-cta {
    display: block;
    text-align: center;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-top: auto;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.5s ease;
}

.price-cta:hover {
    border-color: var(--muted);
    text-decoration: none;
}

.price-card.featured .price-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.price-card.featured .price-cta:hover {
    filter: brightness(1.1);
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.5s ease, color 0.5s ease;
}

footer nav { display: flex; gap: 24px; }
footer nav a { color: var(--muted); font-size: 13px; transition: color 0.2s; white-space: nowrap; }
footer nav a:hover { color: var(--text); }

/* ---- Networks ---- */
.networks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.network-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding: 7px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease, transform 0.15s;
}

.network-badge:hover {
    transform: translateY(-1px);
    border-color: var(--muted);
}

.network-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- FAQ ---- */
.faq-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    transition: border-color 0.5s ease;
}

.faq-item summary {
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    list-style: none;
    transition: color 0.5s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+ '; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::before { content: '- '; }

.faq-item p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    padding-bottom: 16px;
    transition: color 0.5s ease;
}

/* ---- Day theme depth ---- */
[data-theme="day"] .step,
[data-theme="day"] .price-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border-color: transparent;
}
[data-theme="day"] .step:hover,
[data-theme="day"] .price-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="day"] .price-card.featured {
    box-shadow: 0 4px 20px rgba(232, 87, 26, 0.12);
    border-color: var(--accent);
}

/* ---- Product Preview ---- */
.video-story {
    padding: 32px 0 56px;
}
.story-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.5s ease;
}

.preview {
    padding: 20px 0 48px;
}

.preview-title {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    transition: color 0.5s ease;
}

.preview-window {
    max-width: 560px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.5s ease, border-color 0.5s ease;
}

.preview-bar {
    padding: 10px 18px;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.5s ease, border-color 0.5s ease;
}

.preview-bar-stats {
    display: flex;
    gap: 12px;
}

.preview-bar-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
}

.preview-bar-stat .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.preview-page {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.5s ease;
}

.preview-page:last-child { border-bottom: none; }

.preview-page-url {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    margin-bottom: 6px;
    transition: color 0.5s ease;
}

.preview-page-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.preview-stat {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.5s ease;
}

.preview-stat .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.preview-stat strong {
    color: var(--text);
    font-weight: 600;
}

.preview-stat.risk {
    color: var(--red);
    font-weight: 600;
}

/* ---- Scan CTA (after result) ---- */
.scan-cta {
    margin-top: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.5s ease, border-color 0.5s ease;
}

.scan-cta p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.scan-cta a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 0 16px var(--accent-glow);
    transition: filter 0.15s;
}

.scan-cta a:hover { filter: brightness(1.1); text-decoration: none; }

/* ---- Scan loading animation ---- */
.lp-scan-loading { padding: 40px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.lp-scan-ring { width: 64px; height: 64px; position: relative; }
.lp-scan-ring-inner { width: 100%; height: 100%; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent); animation: lp-spin 1s linear infinite, lp-glow 2s ease-in-out infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-glow { 0%, 100% { box-shadow: 0 0 12px rgba(255,107,43,0.2), inset 0 0 12px rgba(255,107,43,0.05); } 50% { box-shadow: 0 0 28px rgba(255,107,43,0.45), inset 0 0 20px rgba(255,107,43,0.1); } }
.lp-scan-loading-text { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lp-scan-step { font-size: 14px; color: var(--muted); opacity: 0; transform: translateY(4px); transition: opacity 0.4s, transform 0.4s, color 0.3s; }
.lp-scan-step.lp-active { opacity: 1; color: var(--text); transform: translateY(0); }
.lp-scan-step.lp-done { opacity: 0.35; color: var(--muted); transform: translateY(-2px); }

/* ---- Scan result card ---- */
.lp-result { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-align: center; animation: lp-fadein 0.4s ease; }
@keyframes lp-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.lp-result-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin: 0 auto 12px; }
.lp-icon-green { background: rgba(34,197,94,0.12); color: var(--green); }
.lp-icon-red { background: rgba(239,68,68,0.12); color: var(--red); }
.lp-icon-yellow { background: rgba(234,179,8,0.12); color: var(--yellow); }
.lp-icon-muted { background: var(--surface2); color: var(--muted); }
.lp-result-title { font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 6px; }
.lp-network { display: inline-block; background: var(--accent-glow); color: var(--accent); padding: 3px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 12px; }
.lp-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.lp-detail { font-size: 12px; color: var(--muted); opacity: 0.6; font-family: 'SF Mono', 'Fira Code', monospace; }
.lp-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; text-align: left; }
.lp-info-item { background: var(--surface2); padding: 10px 14px; border-radius: 6px; }
.lp-info-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.lp-info-value { font-size: 14px; color: var(--text); font-weight: 500; }
.lp-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; word-break: break-all; }
.lp-chain { margin-bottom: 16px; text-align: left; }
.lp-chain-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.lp-chain-hop { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface2); border-radius: 6px; }
.lp-chain-code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; font-weight: 700; flex-shrink: 0; width: 32px; }
.lp-chain-url { font-size: 12px; color: var(--muted); font-family: 'SF Mono', 'Fira Code', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-chain-arrow { color: var(--muted); font-size: 12px; padding-left: 14px; line-height: 1; }
.lp-suggestion { display: block; padding: 10px 14px; background: var(--accent-glow); border: 1px solid rgba(255,107,43,0.2); border-radius: 6px; color: var(--accent); font-size: 13px; font-weight: 500; text-decoration: none; margin-bottom: 16px; transition: background 0.2s; text-align: center; }
.lp-suggestion:hover { background: rgba(255,107,43,0.15); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero { padding: 60px 0 36px; }
    .hero h1 { font-size: 34px; letter-spacing: -1px; }
    .hero .subhead { font-size: 16px; }
    .steps { flex-direction: column; align-items: center; }
    .step:not(:last-child)::after { display: none; }
    .step p { max-width: 300px; }
    .pricing-row { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 30px; }
    .pricing-row { grid-template-columns: 1fr; }
}

/* ---- Pricing comparison table ---- */
.compare-table {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    transition: background 0.5s ease, border-color 0.5s ease;
}
.compare-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.5s ease;
}
.compare-row:last-child { border-bottom: none; }
.compare-row.compare-head {
    background: var(--surface2);
    font-weight: 600;
    transition: background 0.5s ease;
}
.compare-cell-feature, .compare-cell {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text);
    transition: color 0.5s ease;
}
.compare-cell-feature {
    color: var(--text);
    font-weight: 500;
    border-right: 1px solid var(--border);
    transition: color 0.5s ease, border-color 0.5s ease;
}
.compare-cell {
    text-align: center;
    color: var(--muted);
    border-right: 1px solid var(--border);
    transition: color 0.5s ease, border-color 0.5s ease;
}
.compare-cell:last-child { border-right: none; }
.compare-row.compare-head .compare-cell { color: var(--text); }
@media (max-width: 720px) {
    .compare-table { font-size: 12px; }
    .compare-row { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .compare-cell-feature, .compare-cell { padding: 10px 8px; font-size: 12px; }
}
