@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

body {
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-kastle-primary {
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
}

.dark .btn-kastle-primary {
    background-color: #ffffff;
    color: #06090e;
}

.btn-kastle-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-kastle-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.7s ease;
}

.dark .btn-kastle-primary::after {
    background: rgba(0, 0, 0, 0.1);
}

.btn-kastle-primary:hover::after {
    left: 120%;
}

.btn-kastle-secondary {
    background-color: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
}

.dark .btn-kastle-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-kastle-secondary:hover {
    background-color: rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.dark .btn-kastle-secondary:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
}

.kastle-bg-glow {
    background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.image-glow {
    transition: all 0.5s ease;
    box-shadow: 0 0 40px -10px rgba(99, 102, 241, 0.2);
}

.dark .image-glow {
    box-shadow: 0 0 40px -10px rgba(139, 92, 246, 0.3);
}

.group:hover .image-glow {
    transform: scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.3);
}

.dark .group:hover .image-glow {
    box-shadow: 0 0 60px -10px rgba(139, 92, 246, 0.5);
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.site-aux-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #e5eefb;
    background:
        radial-gradient(circle at top, rgba(99, 102, 241, 0.18), transparent 38%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.dark .site-aux-body {
    color: #e5eefb;
    background:
        radial-gradient(circle at top, rgba(99, 102, 241, 0.18), transparent 38%),
        linear-gradient(180deg, #0f172a 0%, #06090e 100%);
}

.site-aux-shell {
    position: relative;
    min-height: 100vh;
}

.site-aux-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.dark .site-aux-mesh {
    opacity: 0.6;
}

.site-aux-main {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.site-aux-brand {
    margin-bottom: 32px;
}

.site-aux-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dark .site-aux-brand a {
    color: #cbd5e1;
}

.site-aux-brand a:hover {
    color: #0f172a;
}

.dark .site-aux-brand a:hover {
    color: #ffffff;
}

.site-aux-brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #818cf8;
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.45);
}

.site-aux-hero {
    max-width: 760px;
    margin-bottom: 40px;
}

.site-aux-eyebrow {
    margin: 0 0 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #4f46e5;
}

.dark .site-aux-eyebrow {
    color: #a5b4fc;
}

.site-aux-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.dark .site-aux-hero h1 {
    color: #ffffff;
}

.site-aux-intro,
.site-aux-date {
    margin: 0;
    color: #475569;
}

.dark .site-aux-intro,
.dark .site-aux-date {
    color: #cbd5e1;
}

.site-aux-intro {
    font-size: 1.05rem;
    line-height: 1.8;
}

.site-aux-date {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.site-aux-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    padding: 28px;
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 80px rgba(148, 163, 184, 0.22);
}

.dark .site-aux-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
}

.site-aux-video-frame {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #000000;
}

.dark .site-aux-video-frame {
    border-color: rgba(255, 255, 255, 0.1);
}

.site-aux-video-frame video {
    display: block;
    width: 100%;
    height: auto;
}

.site-aux-content {
    color: #334155;
    line-height: 1.8;
    font-size: 1rem;
}

.dark .site-aux-content {
    color: #dbe4f0;
}

.site-aux-content h2,
.site-aux-content h3 {
    color: #0f172a;
    letter-spacing: -0.03em;
}

.dark .site-aux-content h2,
.dark .site-aux-content h3 {
    color: #ffffff;
}

.site-aux-content h2 {
    margin: 32px 0 12px;
    padding-bottom: 10px;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dark .site-aux-content h2 {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-aux-content h3 {
    margin: 24px 0 10px;
    font-size: 1.1rem;
}

.site-aux-content p,
.site-aux-content ul,
.site-aux-content ol,
.site-aux-content table,
.site-aux-content .site-note,
.site-aux-content .site-formula {
    margin: 0 0 18px;
}

.site-aux-content ul,
.site-aux-content ol {
    padding-left: 22px;
}

.site-aux-content li {
    margin-bottom: 8px;
}

.site-aux-content a {
    color: #4f46e5;
}

.dark .site-aux-content a {
    color: #a5b4fc;
}

.site-note {
    padding: 18px 20px;
    border-left: 4px solid #818cf8;
    border-radius: 0 12px 12px 0;
    background: rgba(99, 102, 241, 0.08);
}

.dark .site-note {
    background: rgba(255, 255, 255, 0.06);
}

.site-formula {
    padding: 14px 18px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.95);
    text-align: center;
    color: #0f172a;
    font-family: "Courier New", Courier, monospace;
}

.dark .site-formula {
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
}

.site-aux-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

.site-aux-content th,
.site-aux-content td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.site-aux-content th {
    background: rgba(129, 140, 248, 0.14);
    color: #0f172a;
}

.dark .site-aux-content th {
    color: #ffffff;
}

.site-aux-content tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.03);
}

.dark .site-aux-content tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.site-aux-footer {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.85rem;
}

.dark .site-aux-footer {
    color: #94a3b8;
}

.site-aux-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-aux-footer a {
    color: #475569;
    text-decoration: none;
}

.dark .site-aux-footer a {
    color: #cbd5e1;
}

.site-aux-footer a:hover {
    color: #0f172a;
}

.dark .site-aux-footer a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .site-aux-main {
        padding: 32px 18px 48px;
    }

    .site-aux-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .site-aux-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
