/* ==========================================================================
   Splash Gateway Styles
   Theme colors provided by ecosystem-themes.css.
   ========================================================================== */

* { box-sizing: border-box; }
body {
    margin: 0;
    overflow-x: hidden;
    background: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
}

#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.splash-wrapper {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.splash-brand {
    text-align: center;
    margin-bottom: 48px;
}

.splash-brand h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.splash-brand h1.animated {
    background: var(--holo-gradient);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.splash-brand p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.splash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 48px;
}

.splash-card {
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: var(--radius, 12px);
    padding: 32px 28px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: visible;
}

.splash-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--holo-gradient);
    background-size: 100% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

[data-moving-borders] .splash-card::before {
    background-size: 300% 300%;
    animation: holoShift 4s linear infinite;
}

a.splash-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.splash-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.splash-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.splash-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.splash-card .card-cta {
    display: inline-block;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.splash-card .card-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
    color: var(--brand-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.splash-auth {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.splash-auth a {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.splash-auth a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.splash-auth .btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.splash-auth .btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--text-primary);
}

.splash-auth .btn-primary {
    background: var(--brand-primary);
    color: #fff;
    border: 1px solid transparent;
}

.splash-footer-card {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: fit-content;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    padding: 12px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.splash-footer-card .social-links {
    display: flex;
    gap: 16px;
}

.splash-footer-card .social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}

.splash-footer-card .social-links a:hover {
    color: var(--brand-primary);
}

.splash-footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
}

.splash-footer-legal {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 8px;
}
.splash-footer-legal span { color: var(--text-muted); }
.splash-footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.splash-footer-legal a:hover { color: var(--brand-primary); }

.splash-disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
    margin: 12px 0 0;
    max-width: fit-content;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    padding: 12px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 960px) {
    .splash-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .splash-brand h1 { font-size: 2.5rem; }
    .splash-grid { grid-template-columns: 1fr; }
    .splash-card { padding: 24px 20px; }
    .splash-footer-card { max-width: 100%; flex-wrap: wrap; justify-content: center; }
    .splash-disclaimer { max-width: 100%; }
}
