/* ── Theme Tokens ──────────────────────────────────────────────────────── */
:root {
    /* Primary: #0EA5E9 */
    --color-primary: #0ea5e9;
    --color-primary-rgb: 14, 165, 233;
    /* Secondary: #2563EB */
    --color-secondary: #2563eb;
    /* Accent: #06B6D4 */
    --color-accent: #06b6d4;
    /* Success: #22C55E */
    --color-success: #22c55e;
    
    /* Default Dark Mode */
    color-scheme: dark;
    --color-bg: 3 7 18; /* #030712 */
    --color-nav: 3 7 18;
    --color-text: 243 244 246; /* #f3f4f6 */
    --color-muted: 156 163 175; /* #9ca3af */
    --color-surface: 17 24 39; /* #111827 */
    --color-surface-soft: 31 41 55; /* #1f2937 */
    --color-border: 55 65 81; /* #374151 */
    --color-shadow: 0 0 0;
}

/* Light Mode Overrides */
:root[data-theme="light"] {
    color-scheme: light;
    --color-bg: 248 250 252;
    --color-nav: 255 255 255;
    --color-text: 15 23 42;
    --color-muted: 100 116 139;
    --color-surface: 255 255 255;
    --color-surface-soft: 241 245 249;
    --color-border: 226 232 240;
    --color-shadow: 0 0 0;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
    background-color: rgb(var(--color-bg));
    color: rgb(var(--color-text));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Navigation Glass ──────────────────────────────────────────────────── */
.apple-glass {
    background: rgba(var(--color-surface), 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgb(var(--color-border) / 0.5);
    box-shadow: 0 4px 30px rgba(var(--color-shadow), 0.1);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.top-contact-bar {
    background: rgb(var(--color-surface) / 0.78);
    border-bottom: 1px solid rgb(var(--color-border) / 0.55);
    color: rgb(var(--color-muted));
}

.site-logo-text {
    color: rgb(var(--color-text));
    line-height: 1.05;
}

.group:hover .site-logo-text {
    color: var(--color-primary);
}

.mobile-menu-trigger {
    color: rgb(var(--color-muted));
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-trigger:hover {
    color: rgb(var(--color-text));
    transform: translateY(-1px);
}

.mobile-menu-panel {
    background: rgb(var(--color-surface) / 0.96);
    border-color: rgb(var(--color-border));
}

.mobile-menu-panel a {
    color: rgb(var(--color-muted));
    transition: color 0.2s ease;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a.active {
    color: rgb(var(--color-text));
}

.mobile-menu-divider {
    background: rgb(var(--color-border));
}

:root[data-theme="dark"] .top-contact-bar {
    background: rgba(3, 7, 18, 0.72);
}

/* ── Hero Gradient ─────────────────────────────────────────────────────── */
.hero-gradient {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.15), transparent 40%),
                linear-gradient(180deg, rgb(var(--color-bg)) 0%, rgb(var(--color-surface)) 100%);
}

.glow-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.15) 0%, rgba(var(--color-primary-rgb), 0) 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(60px);
}

/* ── Typography & Text Gradients ───────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.apple-btn {
    background-color: transparent;
    color: rgb(var(--color-text));
    border: 1px solid rgb(var(--color-border));
    border-radius: 980px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.apple-btn:hover {
    background-color: rgb(var(--color-surface-soft));
    transform: translateY(-2px);
    border-color: var(--color-muted);
}
.apple-btn-blue {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    border-radius: 980px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(var(--color-primary-rgb), 0.39);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.apple-btn-blue:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.5);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.unlock-card, .dash-card, .service-card {
    background: rgba(var(--color-surface), 0.8);
    border: 1px solid rgb(var(--color-border) / 0.5);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px -10px rgba(var(--color-shadow), 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(var(--color-primary-rgb), 0.15);
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

/* ── Glass Inputs ──────────────────────────────────────────────────────── */
.input-glass {
    background: rgba(var(--color-surface-soft), 0.5);
    border: 1px solid rgb(var(--color-border));
    color: rgb(var(--color-text));
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(8px);
}
.input-glass:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.15);
    outline: none;
    background: rgb(var(--color-surface));
}
.input-glass::placeholder { color: rgb(var(--color-muted)); }

/* ── Overrides for Tailwind classes in themes ───────────────────────────── */
.bg-white { background-color: rgb(var(--color-surface)) !important; }
.bg-slate-50 { background-color: rgb(var(--color-bg)) !important; }
.bg-slate-100 { background-color: rgb(var(--color-surface-soft)) !important; }
.text-slate-900, .text-slate-800, .text-slate-700 { color: rgb(var(--color-text)) !important; }
.text-slate-600, .text-slate-500, .text-slate-400 { color: rgb(var(--color-muted)) !important; }
.border-slate-100, .border-slate-200, .border-slate-300 { border-color: rgb(var(--color-border)) !important; }

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes shimmer {
    100% { transform: translateX(100%); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* ── Logos & Grayscale effect ──────────────────────────────────────────── */
.brand-logo-hover {
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}
.brand-logo-hover:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Accordion */
.accordion-content {
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    max-height: 0;
    overflow: hidden;
}
.accordion-content.open {
    max-height: 500px; /* arbitrary large value */
}
