:root {
    --blue: #003799;
    --blue-alt: #003899;
    --blue-dark: #00266b;
    --blue-soft: #e8eef8;
    --green: #71c108;
    --green-dark: #5a9a06;
    --black: #000000;
    --ink: #1a2336;
    --muted: #5a6780;
    --gray: #f5f5f7;
    --white: #ffffff;
    --line: #d9e0ec;
    --surface: #ffffff;
    --surface-soft: #f5f5f7;
    --header-surface: rgba(255, 255, 255, 0.92);
    --header-scrolled: rgba(255, 255, 255, 0.97);
    --font: "Quicksand", sans-serif;
}

body.landing[data-theme="dark"] {
    --blue: #78baff;
    --blue-alt: #78baff;
    --blue-dark: #2869b8;
    --blue-soft: #1b2d45;
    --green: #a3e635;
    --green-dark: #a3e635;
    --ink: #e8eef8;
    --muted: #a9b8ce;
    --gray: #0b1422;
    --line: #26364b;
    --surface: #111c2c;
    --surface-soft: #0b1422;
    --header-surface: rgba(11, 20, 34, 0.92);
    --header-scrolled: rgba(11, 20, 34, 0.98);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

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

h1, h2, h3, strong, b, .brand, .btn-fill, .btn-outline, .top-cta, .num {
    font-weight: 700;
}

/* Header */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 5vw;
    background: var(--header-surface);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.topbar.is-scrolled {
    background: var(--header-scrolled);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(0, 35, 90, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: var(--blue);
}

.brand-type {
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: 0.04em;
    line-height: 1;
    gap: 0;
    position: relative;
    padding-bottom: 6px;
}

.logo-rin {
    color: var(--blue);
}

.logo-bot {
    color: var(--green-dark);
    background: linear-gradient(180deg, #82d61a 0%, var(--green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.brand-type::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue) 0 42%, var(--green) 42% 100%);
}

.brand-logo {
    height: 42px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}

.rinbot-logo {
    height: 44px;
}

.brand-sep {
    width: 1px;
    height: 18px;
    background: var(--line);
}

.brand-name {
    font-weight: 700;
    color: var(--blue);
}

.brand-mark {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(113, 193, 8, 0.2);
}

#siteNav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

#siteNav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease;
}

#siteNav a:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.theme-toggle-icon {
    color: var(--green-dark);
    font-size: 1.2rem;
    line-height: 1;
}

.top-cta {
    background: var(--green) !important;
    color: var(--black) !important;
    padding: 8px 16px !important;
}

.top-cta-lg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 32px !important;
    font-size: 1.08rem !important;
    line-height: 1.15 !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 24px rgba(113, 193, 8, 0.35);
    animation: ctaPulse 2.4s ease-in-out infinite;
}

.top-cta:hover,
.top-cta-lg:hover {
    background: var(--green-dark) !important;
    color: var(--white) !important;
    transform: translateY(-2px) scale(1.02);
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(113, 193, 8, 0.3); }
    50% { box-shadow: 0 14px 34px rgba(113, 193, 8, 0.5); }
}

.page-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 55, 153, 0.12), transparent 35%),
        radial-gradient(circle at 85% 20%, rgba(113, 193, 8, 0.12), transparent 40%);
    animation: glowShift 12s ease-in-out infinite alternate;
}

@keyframes glowShift {
    from { transform: scale(1) translateY(0); }
    to { transform: scale(1.05) translateY(-12px); }
}

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

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

.floaty {
    animation: floaty 5s ease-in-out infinite;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--blue);
    transition: transform 0.25s ease;
}

.nav-toggle.open span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 85% 15%, rgba(113, 193, 8, 0.18), transparent 40%),
        linear-gradient(145deg, #001845 0%, var(--blue) 55%, #002a7a 100%);
    background-size: 38px 38px, 38px 38px, auto, auto;
    color: var(--white);
    padding: 70px 5vw 60px;
}

.hero-wrap {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(113, 193, 8, 0.55);
    animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(113, 193, 8, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(113, 193, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(113, 193, 8, 0); }
}

.hero-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-pills li {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e8eefc;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--white);
}

.hero-lead {
    font-size: 1.08rem;
    color: #d9e3f7;
    max-width: 36rem;
}

.hero-lead strong {
    color: #ffffff;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.download-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.guide-download {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.btn-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    background: var(--green);
    color: var(--black);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-fill:hover {
    transform: translateY(-2px);
    background: #82d61a;
}

.btn-fill.light {
    align-items: center;
    flex-direction: row;
    background: var(--white);
    color: var(--blue);
}

.btn-fill.light:hover {
    background: var(--gray);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    color: var(--white);
    transition: background 0.2s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.demo-shell {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 28px 60px rgba(0, 20, 60, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

.demo-shell picture,
.demo-shell img {
    display: block;
    width: 100%;
    height: auto;
}

.novelty-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.novelty-card {
    position: relative;
    overflow: hidden;
    padding: 24px 20px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 35, 90, 0.05);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.novelty-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(113, 193, 8, 0.1);
    transition: transform 0.4s ease;
}

.novelty-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 55, 153, 0.25);
    box-shadow: 0 18px 40px rgba(0, 35, 90, 0.12);
}

.novelty-card:hover::after {
    transform: scale(1.35);
}

.novelty-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    color: var(--white);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.novelty-card h3 {
    color: var(--blue);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.novelty-card p {
    color: var(--muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.browser-mock {
    background: var(--surface);
    color: var(--ink);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
    animation: floaty 5s ease-in-out infinite;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: var(--gray);
    border-bottom: 1px solid var(--line);
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d7e4;
}

.browser-bar span:first-child { background: #ff6b6b; }
.browser-bar span:nth-child(2) { background: #ffd166; }
.browser-bar span:nth-child(3) { background: #71c108; }

.browser-bar em {
    margin-left: 10px;
    font-style: normal;
    font-size: 0.82rem;
    color: var(--muted);
}

.browser-body {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.gif-frame {
    background: #f7f8fb;
    position: relative;
}

.rin-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    background: #ecf0f6;
}

.gif-frame picture {
    display: block;
}

.guide-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.guide-track {
    display: none;
}

.guide-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.guide-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--blue), var(--green));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s ease;
}

.guide-card.in::before {
    transform: scaleY(1);
}

.guide-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 55, 153, 0.22);
    box-shadow: 0 18px 40px rgba(0, 35, 90, 0.12);
}

.guide-step {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(0, 55, 153, 0.22);
    position: relative;
}

.guide-step i {
    font-style: normal;
    animation: stepPop 0.55s ease both;
}

.guide-card.delay-1 .guide-step i { animation-delay: 0.12s; }
.guide-card.delay-2 .guide-step i { animation-delay: 0.22s; }
.guide-card.delay-3 .guide-step i { animation-delay: 0.32s; }

@keyframes stepPop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.guide-card h3 {
    color: var(--blue);
    margin-bottom: 12px;
}

.guide-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.guide-card li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.guide-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.guide-resources {
    max-width: 1100px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: center;
    padding: 28px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 10%, rgba(113, 193, 8, 0.18), transparent 40%),
        linear-gradient(135deg, #002a7a 0%, var(--blue) 55%, #001845 100%);
    color: var(--white);
    box-shadow: 0 22px 48px rgba(0, 55, 153, 0.28);
    position: relative;
    overflow: hidden;
}

.guide-resources::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(113, 193, 8, 0.12);
    animation: orbFloat 7s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.05); }
}

.guide-resources-copy,
.guide-resource-actions {
    position: relative;
    z-index: 1;
}

.guide-resources .version-tag {
    color: #c8f07a;
}

.guide-resources h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.guide-resources-copy > p:last-of-type {
    color: #d5def0;
    margin-bottom: 16px;
    max-width: 34rem;
}

.guide-diff-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 700;
    border-bottom: 1.5px solid rgba(113, 193, 8, 0.7);
    padding-bottom: 2px;
    transition: gap 0.25s ease, color 0.2s ease;
}

.guide-diff-link em {
    font-style: normal;
    color: var(--green);
    transition: transform 0.25s ease;
}

.guide-diff-link:hover {
    gap: 14px;
    color: #e8ffb0;
}

.guide-diff-link:hover em {
    transform: translateX(4px);
}

.guide-resource-actions {
    display: grid;
    gap: 12px;
}

.resource-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.resource-btn:hover {
    transform: translateX(6px) scale(1.01);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(113, 193, 8, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.resource-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.resource-pdf .resource-icon {
    background: rgba(255, 255, 255, 0.95);
    color: #b42318;
}

.resource-video .resource-icon {
    background: var(--green);
    color: var(--black);
    font-size: 1rem;
}

.resource-text {
    display: grid;
    gap: 2px;
}

.resource-text strong {
    font-size: 1rem;
}

.resource-text small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.guide-cta {
    max-width: 1100px;
    margin: 28px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.btn-fill.dark {
    background: var(--blue);
    color: var(--white);
}

.btn-fill.dark:hover {
    background: #1a4fb3;
}

.btn-text {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gif-hint code,
.media-note code {
    color: var(--blue);
    font-weight: 700;
}

.video-shell {
    max-width: 900px;
    margin: 0 auto;
    background: var(--black);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 35, 90, 0.14);
}

.demo-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b1220;
}

.video-shell .media-note {
    background: var(--white);
}

/* Flujo profesional */
.flow-track {
    list-style: none;
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 0;
    counter-reset: none;
}

.flow-node {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: start;
    padding: 8px 0 28px;
}

.flow-index {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 12px 28px rgba(0, 55, 153, 0.22);
    position: relative;
    z-index: 1;
}

.flow-body {
    padding: 14px 18px 16px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 35, 90, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.flow-node:hover .flow-body {
    transform: translateX(6px);
    border-color: rgba(113, 193, 8, 0.45);
    box-shadow: 0 16px 34px rgba(0, 35, 90, 0.1);
}

.flow-body h3 {
    color: var(--blue);
    margin-bottom: 6px;
}

.flow-body p {
    color: var(--muted);
}

.flow-connector {
    position: absolute;
    left: 27px;
    top: 64px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 55, 153, 0.35), rgba(113, 193, 8, 0.45));
}

.flow-node:last-child .flow-connector {
    display: none;
}

.doc-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.doc-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.doc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 55, 153, 0.28);
    box-shadow: 0 16px 36px rgba(0, 35, 90, 0.1);
}

.doc-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.doc-icon.formats {
    background: rgba(113, 193, 8, 0.18);
    color: var(--green-dark);
}

.doc-card h3 {
    color: var(--blue);
    margin-bottom: 8px;
}

.doc-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.doc-card-formats {
    background: linear-gradient(160deg, #f7faf2, #ffffff 55%);
    border-color: rgba(113, 193, 8, 0.35);
}

.version-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.version-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0, 35, 90, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.version-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--blue), var(--green));
}

.version-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 35, 90, 0.12);
}

.version-panel-alt {
    background: linear-gradient(165deg, #f5f8fd, #ffffff 50%);
}

.version-tag {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.version-panel h3 {
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.version-panel > p {
    color: var(--muted);
    margin-bottom: 16px;
}

.version-list-clean {
    list-style: none;
    display: grid;
    gap: 10px;
}

.version-list-clean li {
    position: relative;
    padding-left: 26px;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
}

.version-list-clean li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(113, 193, 8, 0.18);
}

.cta-band {
    max-width: 920px;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    box-shadow: 0 18px 40px rgba(0, 55, 153, 0.22);
}

.cta-band h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.cta-band p {
    color: #d5def0;
    max-width: 34rem;
    font-size: 0.98rem;
}

.story {
    max-width: 820px;
    margin: 0 auto 36px;
    display: grid;
    gap: 14px;
}

.story-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: start;
    padding: 20px 22px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 35, 90, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-item:hover {
    transform: translateX(8px);
    box-shadow: 0 14px 30px rgba(0, 35, 90, 0.1);
}

.story-num {
    font-size: 1.6rem;
    color: var(--green-dark);
    line-height: 1;
}

.story-item h3 {
    color: var(--blue);
    margin-bottom: 6px;
}

.story-item p {
    color: var(--muted);
}

.info-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-card {
    background: var(--gray);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0, 35, 90, 0.08);
}

.info-card h3 {
    color: var(--blue);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-card p {
    color: var(--muted);
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--gray);
    color: var(--ink);
    font-weight: 700;
}

.flow-step i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.flow-done {
    margin-top: 4px;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.metric {
    background: var(--white);
    padding: 24px 18px;
    text-align: center;
}

.metric strong {
    display: block;
    color: var(--blue);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.metric span {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Sections */
.section {
    padding: 72px 5vw;
    background: var(--surface);
}

.section-alt {
    background: var(--blue);
    color: var(--white);
}

.section-soft {
    background: var(--surface-soft);
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #c8f07a;
}

.section-intro h2,
.two-col h2,
.download-card h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    color: var(--blue);
    margin-bottom: 12px;
}

.section-alt h2,
.download-card h2 {
    color: var(--white);
}

.section-intro p,
.muted {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-alt .muted {
    color: #d5def0;
}

.process {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.process-card {
    background: var(--gray);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 35, 90, 0.1);
}

.process-card .num {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 1.2rem;
}

.process-card h3 {
    color: var(--blue);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.process-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.two-col {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.checklist {
    list-style: none;
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.checklist li {
    position: relative;
    padding-left: 32px;
    font-weight: 700;
    color: var(--white);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
}

.benefit-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 24px;
}

.benefit-box h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.benefit-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.benefit-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.benefit-item strong {
    display: block;
    margin-bottom: 4px;
}

.benefit-item span {
    color: #d5def0;
    font-size: 0.95rem;
}

.install-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.install-grid.three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 920px;
}

.install-grid article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.install-grid article:hover {
    border-color: var(--green);
    transform: translateY(-4px);
}

.install-grid b {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    margin-bottom: 12px;
}

.install-grid h3 {
    color: var(--blue);
    margin-bottom: 8px;
}

.install-grid p {
    color: var(--muted);
    font-size: 0.95rem;
}

.section-download {
    padding-top: 20px;
}

.download-card {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    box-shadow: 0 20px 45px rgba(0, 55, 153, 0.25);
}

.download-card p {
    color: #d5def0;
    max-width: 28rem;
}

.download-side {
    text-align: center;
    flex-shrink: 0;
}

.version-line {
    margin-top: 12px;
    color: #e8eefc !important;
}

.version-line strong {
    color: var(--white);
}

.testimonials {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.testimonials blockquote {
    background: var(--white);
    border-left: 4px solid var(--green);
    border-radius: 0 14px 14px 0;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(0, 35, 90, 0.06);
}

.testimonials p {
    color: var(--ink);
    margin-bottom: 12px;
}

.testimonials cite {
    font-style: normal;
    font-weight: 700;
    color: var(--blue);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 28px 5vw;
    background: var(--black);
    color: rgba(255, 255, 255, 0.7);
}

.footer strong {
    color: var(--white);
    letter-spacing: 0.04em;
}

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

@media (max-width: 980px) {
    .hero-wrap,
    .process,
    .two-col,
    .install-grid,
    .install-grid.three,
    .testimonials,
    .metrics,
    .info-grid,
    .doc-grid,
    .version-grid,
    .guide-grid,
    .guide-resources {
        grid-template-columns: 1fr;
    }

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

    .story-item,
    .flow-node {
        grid-template-columns: 56px 1fr;
    }

    .flow-index {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .flow-connector {
        left: 23px;
        top: 56px;
    }

    .cta-band {
        flex-direction: column;
        text-align: center;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .download-card p {
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .novelty-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: flex;
    }

    #siteNav {
        position: absolute;
        top: 64px;
        left: 4vw;
        right: 4vw;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 14px 30px rgba(0, 35, 90, 0.12);
        display: none;
    }

    #siteNav.open {
        display: flex;
    }

}

body.landing[data-theme="dark"] .doc-card-formats {
    background: linear-gradient(160deg, #172a20, var(--surface) 70%);
}

body.landing[data-theme="dark"] .hero {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 85% 15%, rgba(163, 230, 53, 0.12), transparent 40%),
        linear-gradient(145deg, #07152a 0%, #123d70 55%, #0b2550 100%);
}

body.landing[data-theme="dark"] .flow-index,
body.landing[data-theme="dark"] .novelty-icon,
body.landing[data-theme="dark"] .guide-step {
    background: linear-gradient(145deg, #123d70, #0b2550);
}

body.landing[data-theme="dark"] .top-cta {
    color: #101820 !important;
}

/* Auth / Admin */
.auth-page,
.admin-page {
    min-height: 100vh;
    font-family: var(--font);
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 15% 15%, rgba(113, 193, 8, 0.18), transparent 55%),
        linear-gradient(160deg, #001433 0%, var(--blue) 48%, #001a4d 100%);
}

.auth-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
}

.auth-bg .orb-a {
    width: 360px;
    height: 360px;
    background: rgba(113, 193, 8, 0.2);
    top: -50px;
    left: -40px;
}

.auth-bg .orb-b {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    right: -40px;
    bottom: 12%;
}

.auth-bg .grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-box {
    width: min(430px, 100%);
    background: var(--white);
    padding: 36px;
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.login-box .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: none;
}

.login-brand strong {
    display: block;
    color: var(--blue);
    font-size: 1.15rem;
}

.login-brand span {
    color: var(--muted);
    font-size: 0.88rem;
}

.login-note {
    background: var(--gray);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 16px;
}

.auth-form label span,
.form-grid label > span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue);
}

input[type="text"],
input[type="password"],
input:not([type="file"]):not([type="hidden"]) {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--gray);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 55, 153, 0.12);
}

.form-error {
    background: #ffe8e8;
    color: #9b1c1c;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.btn,
.btn-primary,
.btn-ghost,
.btn-green,
.btn-block,
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 10px;
}

.btn-primary:hover {
    background: #1a4fb3;
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid rgba(0, 55, 153, 0.25);
    padding: 8px 14px;
    border-radius: 999px;
}

.btn-ghost:hover {
    background: rgba(0, 55, 153, 0.06);
}

.btn-green {
    background: var(--green);
    color: var(--black);
    padding: 12px 18px;
    border-radius: 10px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 999px;
}

.admin-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5vw;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
}

.admin-page .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-weight: 700;
    font-size: 1.2rem;
}

.admin-page .logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}

.admin-page nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-chip {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 55, 153, 0.1);
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-container {
    padding: 100px 5vw 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.admin-hero {
    margin-bottom: 24px;
}

.admin-hero .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(113, 193, 8, 0.18);
    color: #d8ff9a;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-hero h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 8px;
}

.admin-hero p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 36rem;
}

.flash {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

.flash-ok {
    background: rgba(113, 193, 8, 0.2);
    color: #2f5200;
    border: 1px solid rgba(113, 193, 8, 0.4);
}

.flash-error {
    background: #ffe8e8;
    color: #9b1c1c;
}

.upload-box,
.versions-panel {
    background: var(--white);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.panel-head h2 {
    color: var(--blue);
    font-size: 1.2rem;
}

.badge {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 55, 153, 0.08);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-green {
    background: rgba(113, 193, 8, 0.16);
    color: #3f6d04;
}

.badge-blue {
    background: rgba(0, 55, 153, 0.12);
}

.file-drop {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 34px 18px;
    margin-bottom: 16px;
    border: 2px dashed rgba(0, 55, 153, 0.3);
    border-radius: 14px;
    background: var(--gray);
    text-align: center;
    cursor: pointer;
    position: relative;
}

.file-drop.dragover,
.file-drop:hover {
    border-color: var(--green);
}

.file-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-drop-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: var(--white);
    font-size: 1.3rem;
}

.file-drop strong {
    color: var(--blue);
}

.file-drop em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.version-list {
    display: grid;
    gap: 12px;
}

.version-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--gray);
}

.version-card.is-current {
    background: linear-gradient(120deg, rgba(0, 55, 153, 0.08), rgba(113, 193, 8, 0.1));
}

.version-meta h3 {
    color: var(--blue);
    margin-bottom: 4px;
}

.version-meta p {
    color: var(--muted);
    font-size: 0.92rem;
}

.version-meta ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.version-meta li {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 55, 153, 0.08);
    color: var(--blue);
}

.version-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-state {
    color: var(--muted);
}

@media (max-width: 760px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .version-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-chip {
        display: none;
    }
}
