/* ==========================================================================
   Tunnel Focus - Shared Styles
   ========================================================================== */

:root {
    --green-50: #ecfdf3;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-300: #6ee7b7;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065f46;
    --green-900: #064e3b;

    --emerald-400: #2dd4bf;
    --emerald-500: #14b8a6;
    --emerald-600: #0d9488;

    --teal-400: #22d3ee;
    --teal-500: #06b6d4;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --bg-base: #020617;
    --bg-soft: #0b1324;
    --surface: rgba(9, 15, 30, 0.88);
    --surface-strong: rgba(11, 18, 35, 0.96);

    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(148, 163, 184, 0.28);
    --glass-shadow: 0 14px 44px rgba(2, 6, 23, 0.45);
    --glass-shadow-hover: 0 22px 56px rgba(2, 6, 23, 0.6);
    --glass-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);

    --liquid-gradient: linear-gradient(140deg, rgba(15, 23, 42, 0.84) 0%, rgba(30, 41, 59, 0.7) 50%, rgba(15, 23, 42, 0.84) 100%);
    --frost-blur: blur(20px);

    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--gray-100);
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 700px at 100% -20%, rgba(20, 184, 166, 0.14) 0%, transparent 70%),
        radial-gradient(900px 600px at -10% 100%, rgba(56, 189, 248, 0.1) 0%, transparent 65%),
        linear-gradient(160deg, #020617 0%, #020617 40%, #0b1324 100%);
    background-attachment: fixed;
}

a {
    color: var(--green-300);
    text-decoration: none;
}

a:hover {
    color: var(--green-200);
}

.obf-link {
    cursor: pointer;
}

.obf-link:hover {
    text-decoration: underline;
}

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
}

.light-orb-1 {
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, transparent 72%);
    top: -260px;
    right: -120px;
}

.light-orb-2 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.26) 0%, transparent 72%);
    bottom: -220px;
    left: -140px;
}

.light-orb-3 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, transparent 75%);
    top: 36%;
    left: 28%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.62rem 1.25rem;
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    -webkit-backdrop-filter: var(--frost-blur);
    top: 0;
    width: 100%;
    border-radius: 0;
    border: 1px solid transparent;
    border-bottom-color: rgba(148, 163, 184, 0.24);
    box-shadow: none;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gray-50);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--green-500), var(--emerald-500));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecfeff;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
    transition: transform 0.3s var(--transition-spring), box-shadow 0.3s var(--transition-smooth);
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.4);
}

.nav-links {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    align-items: center;
}

.nav-link,
.nav-links > li > a {
    display: block;
    text-decoration: none;
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.52rem 1rem;
    border-radius: 10px;
    transition: all 0.24s var(--transition-smooth);
}

.nav-link:hover,
.nav-links > li > a:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.14);
}

.nav-cta {
    background: linear-gradient(135deg, var(--green-500), var(--emerald-500));
    color: #042f2e !important;
    padding: 0.58rem 1.15rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
    transition: all 0.3s var(--transition-smooth);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-200);
    margin: 4px 0;
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.88rem 1.65rem;
    background: linear-gradient(135deg, var(--green-400), var(--emerald-400));
    color: #042f2e;
    font-weight: 700;
    font-size: 0.98rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(20, 184, 166, 0.3);
    transition: all 0.3s var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(20, 184, 166, 0.4);
    color: #042f2e;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.88rem 1.65rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: var(--gray-100);
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--glass-shadow);
    color: #f8fafc;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(148, 163, 184, 0.26);
    padding: 0.5rem 1rem 0.65rem;
    z-index: 100;
}

.mobile-nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.mobile-nav-item a,
.mobile-nav-item span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 0.65rem;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    transition: all 0.2s var(--transition-smooth);
}

.mobile-nav-item a:hover,
.mobile-nav-item a.active,
.mobile-nav-item span:hover {
    color: var(--green-200);
    background: rgba(16, 185, 129, 0.14);
}

.mobile-nav-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 3rem 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gray-50);
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.92rem;
    color: var(--gray-400);
    line-height: 1.65;
}

.footer-column h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--green-200);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.84rem;
    color: var(--gray-500);
}

.footer-legal-links {
    display: flex;
    gap: 1.2rem;
}

.footer-legal-links a {
    color: var(--gray-500);
}

.footer-legal-links a:hover {
    color: var(--green-200);
}

/* ==========================================================================
   Focus States
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--green-300);
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: block;
    }
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media print {
    .nav,
    .mobile-nav,
    .ambient-bg {
        display: none !important;
    }
}
