/* ============================================
   iUnlocker - Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --bg:           #060810;
    --bg2:          #0c0f1a;
    --surface:      rgba(14, 18, 32, 0.7);
    --surface-2:    rgba(20, 26, 46, 0.6);
    --border:       rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);

    --blue:         #4f8cff;
    --blue-dark:    #1d4ed8;
    --blue-glow:    rgba(79, 140, 255, 0.35);

    --purple:       #a78bfa;
    --purple-dark:  #7c3aed;
    --purple-glow:  rgba(167, 139, 250, 0.35);

    --cyan:         #22d3ee;
    --green:        #10d98d;
    --green-glow:   rgba(16, 217, 141, 0.3);

    --gold:         #f59e0b;
    --red:          #ef4444;

    --text:         #f1f5f9;
    --text-muted:   #64748b;
    --text-dim:     #94a3b8;

    --radius-sm:    8px;
    --radius-md:    14px;
    --radius-lg:    20px;
    --radius-xl:    28px;

    --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(79,140,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ---- Background Mesh ---- */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(79,140,255,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(167,139,250,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(34,211,238,0.04) 0%, transparent 60%),
        var(--bg);
    pointer-events: none;
}

/* ---- Animated Grid ---- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(79,140,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,140,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ---- Animated Orbs ---- */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,140,255,0.14), rgba(79,140,255,0.04) 60%, transparent);
    top: -150px; left: -100px;
    animation: orb-drift-1 18s ease-in-out infinite;
}

.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(167,139,250,0.13), rgba(167,139,250,0.03) 60%, transparent);
    top: 30%; right: -120px;
    animation: orb-drift-2 22s ease-in-out infinite;
}

.orb-3 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(34,211,238,0.09), rgba(34,211,238,0.02) 60%, transparent);
    bottom: -100px; left: 30%;
    animation: orb-drift-3 26s ease-in-out infinite;
}

.orb-4 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(167,139,250,0.1), transparent 70%);
    top: 60%; left: 10%;
    animation: orb-drift-4 20s ease-in-out infinite;
}

@keyframes orb-drift-1 {
    0%,100% { transform: translate(0,0) scale(1); }
    25%      { transform: translate(60px,-80px) scale(1.08); }
    50%      { transform: translate(30px,40px) scale(0.95); }
    75%      { transform: translate(-40px,-30px) scale(1.04); }
}

@keyframes orb-drift-2 {
    0%,100% { transform: translate(0,0) scale(1); }
    30%      { transform: translate(-70px,50px) scale(1.1); }
    60%      { transform: translate(40px,-60px) scale(0.92); }
}

@keyframes orb-drift-3 {
    0%,100% { transform: translate(0,0) scale(1); }
    40%      { transform: translate(-50px,-40px) scale(1.06); }
    70%      { transform: translate(60px,30px) scale(0.96); }
}

@keyframes orb-drift-4 {
    0%,100% { transform: translate(0,0) scale(1); }
    35%      { transform: translate(50px,-50px) scale(1.12); }
    65%      { transform: translate(-30px,40px) scale(0.9); }
}

/* ---- Particle Canvas ---- */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* ---- Nav Logo SVG ---- */
.logo-svg-wrap {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--purple-dark));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 16px var(--blue-glow);
    flex-shrink: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 1rem 5%;
    background: rgba(6, 8, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 16px var(--blue-glow);
}

.nav-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    letter-spacing: 0.05em;
    -webkit-text-fill-color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-links a.active {
    color: var(--blue);
    background: rgba(79,140,255,0.1);
}

.nav-cta {
    background: linear-gradient(135deg, var(--blue), var(--purple)) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    -webkit-text-fill-color: white !important;
    box-shadow: 0 4px 14px var(--blue-glow) !important;
}
.nav-cta:hover {
    box-shadow: 0 6px 20px var(--blue-glow) !important;
    transform: translateY(-1px) !important;
    background: rgba(255,255,255,0.05) !important;
}

/* ============================================
   GLASS CARDS
   ============================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-blue { border-color: rgba(79,140,255,0.15); }
.card-blue::before { background: radial-gradient(circle at top, rgba(79,140,255,0.06), transparent 70%); }
.card-blue:hover { border-color: rgba(79,140,255,0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(79,140,255,0.15); }
.card-blue:hover::before { opacity: 1; }

.card-purple { border-color: rgba(167,139,250,0.15); }
.card-purple::before { background: radial-gradient(circle at top, rgba(167,139,250,0.06), transparent 70%); }
.card-purple:hover { border-color: rgba(167,139,250,0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(167,139,250,0.15); }
.card-purple:hover::before { opacity: 1; }

.card-green { border-color: rgba(16,217,141,0.15); }
.card-green:hover { border-color: rgba(16,217,141,0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(16,217,141,0.15); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(79,140,255,0.4);
}
.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(79,140,255,0.6);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-green {
    background: linear-gradient(135deg, var(--green), #059669);
    color: white;
    box-shadow: 0 4px 20px var(--green-glow);
}
.btn-green:hover {
    box-shadow: 0 6px 28px var(--green-glow);
    transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--blue) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, var(--gold), #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BADGES / TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.badge-blue {
    background: rgba(79,140,255,0.12);
    border: 1px solid rgba(79,140,255,0.3);
    color: var(--blue);
}

.badge-purple {
    background: rgba(167,139,250,0.12);
    border: 1px solid rgba(167,139,250,0.3);
    color: var(--purple);
}

.badge-green {
    background: rgba(16,217,141,0.12);
    border: 1px solid rgba(16,217,141,0.3);
    color: var(--green);
}

.badge-gold {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--gold);
}

/* ============================================
   ICON BOXES
   ============================================ */
.icon-box {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.icon-box-sm {
    width: 36px; height: 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
}

.icon-blue { background: rgba(79,140,255,0.12); color: var(--blue); }
.icon-purple { background: rgba(167,139,250,0.12); color: var(--purple); }
.icon-green { background: rgba(16,217,141,0.12); color: var(--green); }
.icon-gold { background: rgba(245,158,11,0.12); color: var(--gold); }
.icon-cyan { background: rgba(34,211,238,0.12); color: var(--cyan); }
.icon-red { background: rgba(239,68,68,0.12); color: var(--red); }

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 2rem 0;
}

/* ============================================
   SECTION
   ============================================ */
.section {
    padding: 5rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

/* ============================================
   FORM CONTROLS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--blue);
    background: rgba(79,140,255,0.05);
    box-shadow: 0 0 0 3px rgba(79,140,255,0.1);
}

.form-control::placeholder { color: var(--text-muted); }

/* mono for crypto addresses */
.form-control.mono { font-family: 'Courier New', monospace; font-size: 0.85rem; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg2);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-dim);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--blue-glow); }
    50%       { box-shadow: 0 0 40px var(--blue-glow), 0 0 60px rgba(79,140,255,0.2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   GLOW LINE (accent bar)
   ============================================ */
.glow-line {
    width: 60px; height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    margin: 0.75rem 0 1.5rem;
}

.glow-line-center { margin: 0.75rem auto 1.5rem; }

/* ============================================
   HIDDEN UTILITY
   ============================================ */
.hidden { display: none !important; }

/* ============================================
   SUCCESS / ALERT BOXES
   ============================================ */
.alert-success {
    background: rgba(16,217,141,0.1);
    border: 1px solid rgba(16,217,141,0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-warn {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section { padding: 3rem 5%; }
    nav { padding: 0.75rem 5%; }
    .nav-links a:not(.nav-cta) { display: none; }
    .btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }
}
