/* Keypr Dark Theme — Public/Landing Pages
   Inspired by hanky code blues, dark luxury aesthetic.
   Playful. Commanding. Intimate. */

/* ============================================
   Color Palette
   ============================================ */
:root {
    --kd-bg: #0a0a0f;
    --kd-bg-elevated: #12121a;
    --kd-bg-card: #1a1a26;
    --kd-bg-card-hover: #22222f;
    --kd-surface: #2a2a3a;

    /* Hanky code blues */
    --kd-blue: #69b3e7;
    --kd-blue-bright: #8ec8f0;
    --kd-blue-dim: #4a8ab8;
    --kd-navy: #1e3a5f;
    --kd-navy-glow: rgba(105, 179, 231, 0.15);

    --kd-text: #e8e8f0;
    --kd-text-muted: #8888a0;
    --kd-text-dim: #555566;
    --kd-accent: #69b3e7;
    --kd-accent-hover: #8ec8f0;
    --kd-danger: #e74c5e;
    --kd-success: #4ecb8d;

    --kd-border: rgba(255, 255, 255, 0.06);
    --kd-glow: 0 0 40px rgba(105, 179, 231, 0.08);
    --kd-glow-strong: 0 0 60px rgba(105, 179, 231, 0.15);
}

/* ============================================
   Base
   ============================================ */
.dark-theme {
    background-color: var(--kd-bg);
    color: var(--kd-text);
    min-height: 100vh;
}

.dark-theme h1, .dark-theme h2, .dark-theme h3,
.dark-theme h4, .dark-theme h5, .dark-theme h6 {
    color: #ffffff;
    font-weight: 700;
}

/* ============================================
   Typography
   ============================================ */
.dark-theme .display-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.dark-theme .hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--kd-text-muted);
    line-height: 1.6;
    max-width: 540px;
}

.dark-theme .section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--kd-blue);
    margin-bottom: 0.75rem;
}

.dark-theme .section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.dark-theme .section-subtitle {
    font-size: 1.1rem;
    color: var(--kd-text-muted);
    max-width: 600px;
}

/* ============================================
   Navigation
   ============================================ */
.dark-theme .navbar-dark-custom {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--kd-border);
    padding: 1rem 0;
}

.dark-theme .navbar-dark-custom .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.dark-theme .navbar-dark-custom .brand-icon {
    color: var(--kd-blue);
}

.dark-theme .navbar-dark-custom .nav-link {
    color: var(--kd-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.dark-theme .navbar-dark-custom .nav-link:hover {
    color: #fff;
}

/* ============================================
   Buttons
   ============================================ */
.dark-theme .btn-glow {
    background: var(--kd-blue);
    color: #0a0a0f;
    border: none;
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 0.6rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(105, 179, 231, 0.3);
}

.dark-theme .btn-glow:hover {
    background: var(--kd-blue-bright);
    color: #0a0a0f;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(105, 179, 231, 0.45);
}

.dark-theme .btn-outline-glow {
    background: transparent;
    color: var(--kd-blue);
    border: 1px solid rgba(105, 179, 231, 0.3);
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: 0.6rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dark-theme .btn-outline-glow:hover {
    background: rgba(105, 179, 231, 0.1);
    color: var(--kd-blue-bright);
    border-color: var(--kd-blue);
}

/* ============================================
   Hero Section
   ============================================ */
.dark-theme .hero-section {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.dark-theme .hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105, 179, 231, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.dark-theme .hero-badge {
    display: inline-block;
    background: rgba(105, 179, 231, 0.1);
    color: var(--kd-blue);
    border: 1px solid rgba(105, 179, 231, 0.2);
    border-radius: 100px;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.dark-theme .text-gradient {
    background: linear-gradient(135deg, var(--kd-blue) 0%, #a0d4f7 50%, var(--kd-blue-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Feature Cards
   ============================================ */
.dark-theme .feature-card {
    background: var(--kd-bg-card);
    border: 1px solid var(--kd-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.dark-theme .feature-card:hover {
    background: var(--kd-bg-card-hover);
    border-color: rgba(105, 179, 231, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--kd-glow);
}

.dark-theme .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(105, 179, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--kd-blue);
}

.dark-theme .feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.dark-theme .feature-card p {
    color: var(--kd-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   Steps
   ============================================ */
.dark-theme .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(105, 179, 231, 0.1);
    border: 2px solid rgba(105, 179, 231, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--kd-blue);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.dark-theme .cta-section {
    background: var(--kd-bg-card);
    border: 1px solid var(--kd-border);
    border-radius: 1.5rem;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dark-theme .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kd-blue), transparent);
}

/* ============================================
   Lock Animation
   ============================================ */
.dark-theme .lock-visual {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dark-theme .lock-visual .lock-icon {
    font-size: 8rem;
    color: var(--kd-blue);
    filter: drop-shadow(0 0 40px rgba(105, 179, 231, 0.3));
    animation: lock-breathe 4s ease-in-out infinite;
}

@keyframes lock-breathe {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(105, 179, 231, 0.2)); }
    50% { filter: drop-shadow(0 0 50px rgba(105, 179, 231, 0.4)); }
}

.dark-theme .lock-visual .lock-ring {
    position: absolute;
    border: 1px solid rgba(105, 179, 231, 0.1);
    border-radius: 50%;
    animation: ring-pulse 4s ease-in-out infinite;
}

.dark-theme .lock-visual .lock-ring-1 { width: 200px; height: 200px; }
.dark-theme .lock-visual .lock-ring-2 { width: 260px; height: 260px; animation-delay: 0.5s; }
.dark-theme .lock-visual .lock-ring-3 { width: 320px; height: 320px; animation-delay: 1s; }

@keyframes ring-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.03); }
}

/* ============================================
   Dividers
   ============================================ */
.dark-theme .section-divider {
    border: none;
    height: 1px;
    background: var(--kd-border);
    margin: 5rem 0;
}

/* ============================================
   Footer
   ============================================ */
.dark-theme .footer-dark {
    background: var(--kd-bg);
    border-top: 1px solid var(--kd-border);
    padding: 3rem 0;
    color: var(--kd-text-dim);
}

.dark-theme .footer-dark a {
    color: var(--kd-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.dark-theme .footer-dark a:hover {
    color: var(--kd-blue);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .dark-theme .hero-section { padding: 5rem 0 4rem; }
    .dark-theme .cta-section { padding: 2.5rem 1.5rem; }
    .dark-theme .display-title { font-size: 2.2rem; }
    .dark-theme .lock-visual .lock-icon { font-size: 5rem; }
    .dark-theme .lock-visual .lock-ring-1 { width: 140px; height: 140px; }
    .dark-theme .lock-visual .lock-ring-2 { width: 180px; height: 180px; }
    .dark-theme .lock-visual .lock-ring-3 { width: 220px; height: 220px; }
}
