/* =========================================================================
   FOOTLINK GLOBAL THEME & DESIGN SYSTEM
   ========================================================================= */

:root {
    /* Footlink Brand Colors */
    --br-primary: #5A00FF;
    --br-primary-light: #8A4CFF;
    --br-primary-dark: #3700B3;
    --br-primary-alpha-10: rgba(90, 0, 255, 0.1);
    --br-primary-alpha-20: rgba(90, 0, 255, 0.2);
    --br-primary-alpha-80: rgba(90, 0, 255, 0.8);

    --br-bg-dark: #0A0A0F;
    --br-bg-surface: #12121A;
    --br-bg-surface-glass: rgba(18, 18, 26, 0.6);
    --br-bg-surface-glass-light: rgba(255, 255, 255, 0.03);

    --br-text-main: #FFFFFF;
    --br-text-muted: #9CA3AF;

    --br-border: rgba(255, 255, 255, 0.08);
    --br-border-glow: rgba(90, 0, 255, 0.3);

    /* Overriding trackio styles */
    --button-primary-bg: var(--br-primary);
    --button-primary-hover: var(--br-primary-light);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--br-bg-dark) !important;
    color: var(--br-text-main) !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--br-text-main) !important;
}

/* --- Animations & Reveals --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: ds-reveal-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

@keyframes ds-reveal-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Ambient Background --- */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--br-bg-dark);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.ambient-orb.orb-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: var(--br-primary);
    animation-duration: 25s;
}

.ambient-orb.orb-2 {
    bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: #8A4CFF;
    animation-duration: 22s;
    animation-delay: -5s;
}

.ambient-orb.orb-3 {
    bottom: 20%; left: 30%; width: 30vw; height: 30vw;
    background: rgba(255, 0, 150, 0.2);
    animation-duration: 30s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 5%) scale(1.1); }
    100% { transform: translate(-5%, 15%) scale(0.9); }
}

/* --- Global Navigation --- */
.ds-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: var(--br-bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--br-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: all 0.3s ease;
}

.ds-nav-logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.ds-nav-logo img {
    height: 32px;
    width: auto;
}

.ds-nav-center-wrapper {
    flex: 2;
    display: flex;
    justify-content: center;
}

.ds-nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--br-border);
    padding: 8px 24px;
    border-radius: 100px;
}

.ds-nav-link {
    color: var(--br-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s;
    position: relative;
}

.ds-nav-link:hover, .ds-nav-link.active {
    opacity: 1;
    color: var(--br-primary-light);
}

.ds-nav-link.active::after {
    content: ''; position: absolute; bottom: -12px; left: 0; width: 100%; height: 2px;
    background: var(--br-primary-light); border-radius: 2px;
}

.ds-nav-cta {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: max-content;
}

/* --- Typography & Labels --- */
.ds-section-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--br-primary-light);
    font-weight: 700;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--br-primary-alpha-10);
    border: 1px solid var(--br-primary-alpha-20);
    border-radius: 100px;
}

.home-span {
    background: linear-gradient(#fff 18%, var(--br-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-primary {
    background: var(--br-primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--br-primary-alpha-20);
    border: 1px solid var(--br-primary-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--br-primary-alpha-80);
    background: var(--br-primary-light);
    color: #fff;
}

.btn-glass {
    background: var(--br-bg-surface-glass-light);
    color: #fff;
    border: 1px solid var(--br-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--br-primary-light);
    border: 1px solid var(--br-primary-alpha-80);
}

.btn-outline:hover {
    background: var(--br-primary-alpha-10);
    box-shadow: 0 0 20px var(--br-primary-alpha-20);
    transform: translateY(-2px);
}

/* --- Inputs --- */
.ds-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--br-border);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.ds-input:focus {
    border-color: var(--br-primary);
    box-shadow: 0 0 0 3px var(--br-primary-alpha-20);
    background: rgba(0, 0, 0, 0.4);
}

.ds-input::placeholder {
    color: var(--br-text-muted);
}

/* --- Glass Cards --- */
.glass-card {
    background: var(--br-bg-surface-glass-light);
    border: 1px solid var(--br-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--br-border-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px var(--br-primary-alpha-10);
}

/* --- Global Footer --- */
.ds-footer {
    background: #05020a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background-color: transparent !important;
    transition: all 0.3s;
    border-radius: 14px;
}

.social-link:hover {
    transform: translateY(-4px);
    background: var(--br-primary-light);
}

.wpp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 991px) {
    .ds-nav-center-wrapper { display: none; }
    .ds-nav { justify-content: space-between; }
}

@media (max-width: 767px) {
    .footer-content { flex-direction: column; align-items: flex-start; }
}
