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

:root {
    --bg-dark: #070b14;
    --bg-surface: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.72);
    --card-border: rgba(148, 163, 184, 0.12);
    --sky-primary: #38bdf8;
    --emerald-accent: #10b981;
    --indigo-accent: #6366f1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 15% 0%, rgba(14, 165, 233, 0.13) 0px, transparent 50%),
        radial-gradient(at 85% 5%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 45%, rgba(16, 185, 129, 0.06) 0px, transparent 60%);
    background-attachment: fixed;
    color: #f8fafc;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

/* Subtle architectural grid overlay */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* Glassmorphism 2.0 Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.glass-card-hover {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 24px 48px -12px rgba(2, 132, 199, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

/* Bento Spotlight Card */
.bento-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.18), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.hero-gradient {
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.22) 0%, rgba(99, 102, 241, 0.10) 45%, rgba(15, 23, 42, 0) 80%);
}

.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 45%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fb7185 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Range Input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    height: 10px;
    border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8 0%, #10b981 100%);
    cursor: pointer;
    border: 3px solid #0f172a;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.12);
}

/* Mockup Tab Switcher Active State */
.mockup-tab-btn {
    transition: all 0.2s ease;
}

.mockup-tab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

/* Fade animation for mockup screens */
.mockup-screen-anim {
    animation: mockupFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mockupFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #070b14;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #070b14;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Legal pages content typography */
.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
}
.legal-content p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.legal-content ul, .legal-content ol {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.legal-content ul { list-style-type: disc; }
.legal-content ol { list-style-type: decimal; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover { color: #7dd3fc; }
.legal-content strong { color: #e2e8f0; }
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}
.legal-content th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.legal-content td {
    padding: 0.75rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

/* BYHOS NG Logo Styles (matching Laravel App) */
.byhos-logo-b {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #4f46e5 100%) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.25s ease-in-out;
}

.group:hover .byhos-logo-b {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.7);
}

.byhos-badge-ng {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1 !important;
}
