:root {
    color-scheme: light;
    --bg: #f4f3f1;
    --bg-deep: #ece9e5;
    --ink: #1d1d1f;
    --muted: #5a5d63;
    --glass: rgba(255, 255, 255, 0.65);
    --glass-strong: rgba(255, 255, 255, 0.75);
    --glass-stroke: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 20px 40px rgba(25, 28, 33, 0.08);
    --accent: #5078ff;
    --accent-warm: #ff9b5c;
    --accent-deep: #3647b8;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

body {
    font-family: 'Sora', sans-serif;
    background:
        radial-gradient(circle at 12% 8%, #f7fbff 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, #fff1e5 0%, transparent 45%),
        linear-gradient(180deg, var(--bg), var(--bg-deep));
    color: var(--ink);
    min-height: 100vh;
    padding: 32px 24px 48px;
    position: relative;
    overflow-x: hidden;
}

.bg-orb {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    z-index: 0;
    animation: float 14s ease-in-out infinite;
}

.orb-one {
    background: #bcd0ff;
    top: -60px;
    left: -40px;
}

.orb-two {
    background: #ffd7b6;
    bottom: -80px;
    right: -40px;
    animation-delay: -4s;
}

.orb-three {
    background: #cdeee9;
    top: 38%;
    right: 10%;
    width: 200px;
    height: 200px;
    animation-delay: -8s;
}

.topbar {
    max-width: 980px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(20, 22, 30, 0.18);
    background: rgba(255, 255, 255, 0.6);
    padding: 4px;
}

.brand-pill {
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.4px;
}

.brand-note {
    font-size: 0.9rem;
    color: var(--muted);
}

.top-actions {
    display: flex;
    gap: 12px;
}

.page {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    z-index: 1;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.hero-panel {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--muted);
}

.hero h1 {
    font-family: 'Spectral', serif;
    font-size: clamp(2.2rem, 2.8vw, 3rem);
    line-height: 1.1;
}

.subhead {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.video-shell {
    padding: 20px;
    display: grid;
    place-items: center;
    width: 100%;
}

.video-frame {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 55%);
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--muted);
}

.play-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(180deg, #ffffff, #e5e5e5);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -4px 8px rgba(0, 0, 0, 0.08),
        0 12px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #2a2a2a;
    transform: translate(-35%, -50%);
}

.section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-kicker {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.section-title h2 {
    font-family: 'Spectral', serif;
    font-size: clamp(1.6rem, 2.1vw, 2.2rem);
}

.section-copy {
    color: var(--muted);
}

.glass-panel,
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-stroke);
    box-shadow: var(--glass-shadow);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.feature-grid-tight {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(25, 28, 33, 0.12);
}

.feature-card h3 {
    font-size: 1.05rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.5;
}

.markdown-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-note {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted);
}

pre {
    background: rgba(17, 19, 22, 0.9);
    color: #f2f2f2;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.command-stack {
    display: grid;
    gap: 12px;
}

.command-chip {
    padding: 16px 20px;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.command-chip code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: var(--ink);
    word-break: break-word;
}

.command-topic {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--muted);
}

.search-card {
    padding: 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: center;
}

.search-copy ul {
    margin-top: 12px;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.search-copy li {
    margin-bottom: 6px;
}

.search-visual svg {
    width: 100%;
    height: auto;
}

.scanline {
    stroke: url(#scan);
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 120;
    animation: scan 3s ease-in-out infinite;
}

.pulse {
    fill: rgba(80, 120, 255, 0.4);
    stroke: rgba(80, 120, 255, 0.8);
    stroke-width: 2;
    animation: pulse 2.2s ease-in-out infinite;
}

.connector {
    fill: none;
    stroke: rgba(255, 155, 92, 0.8);
    stroke-width: 2;
    stroke-dasharray: 12;
}

.philosophy-card {
    padding: 24px;
}

.philosophy-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--muted);
    line-height: 1.6;
    font-family: 'Caveat', cursive;
    font-size: 1.35rem;
}

.philosophy-body ul {
    padding-left: 18px;
}

.philosophy-body li {
    margin-bottom: 6px;
}

.philosophy-signoff {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #2f2c2c;
}

.btn {
    border: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-skeuo {
    background: linear-gradient(180deg, #ffffff, #dcdcdc);
    color: #1a1a1a;
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.9),
        inset 0 -4px 8px rgba(0, 0, 0, 0.12),
        0 8px 18px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-skeuo:hover {
    transform: translateY(-1px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #1a1a1a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.btn-mini {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.cta-section {
    align-items: center;
}

.footer {
    margin-top: 36px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 16px;
    background: rgba(25, 28, 33, 0.88);
    color: #fff;
    border-radius: 12px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@supports not (backdrop-filter: blur(10px)) {
    .glass-panel,
    .glass-card {
        background: #ffffff;
    }

    .btn-glass {
        background: #ffffff;
    }
}

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

@keyframes scan {
    0% {
        stroke-dashoffset: 120;
        opacity: 0.4;
    }
    50% {
        stroke-dashoffset: 30;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 120;
        opacity: 0.4;
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@media (max-width: 880px) {
    .topbar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

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

    .search-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 24px 16px 40px;
    }

    .top-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
