/* ================================================
   SOTAStack - Component Styles
   Buttons, Cards, Navigation, Footer, Forms
   ================================================ */

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 980px;
    position: relative;
    overflow: hidden;
}

.btn-text {
    background: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 18px;
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-primary {
    background: var(--purple);
    color: var(--white);
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.25);
}

.btn-primary:hover {
    background: var(--purple-hover);
    box-shadow: 0 6px 20px rgba(99, 91, 255, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: #5851ea;
    transform: translateY(0);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 12px 24px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-glass-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 12px 24px;
}

.btn-glass-dark:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-link {
    background: none;
    color: var(--purple);
    padding: 0;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--purple-hover);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* -------------------- Navigation -------------------- */
nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(15, 39, 68, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    width: calc(100% - 48px);
    max-width: 1100px;
}

.nav-container {
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: relative;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-brand .logo-img {
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, #6b6b6b, #4a4a4a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.logo-mark::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 5px 5px 0 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.logo-text span {
    background: linear-gradient(135deg, var(--teal), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

/* -------------------- Cards -------------------- */
.card {
    background: var(--glass-bg-navy);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 36px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 91, 255, 0.3);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card-icon.purple { background: var(--purple); }
.card-icon.navy { background: var(--navy); }
.card-icon.cyan { background: var(--cyan); }

.card-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--white);
}

.card-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    font-size: 12px;
    font-weight: 500;
    background: rgba(99, 91, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 980px;
}

/* -------------------- Footer -------------------- */
footer {
    background: rgba(15, 39, 68, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 24px 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--purple);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
    transform: translateY(-2px);
}

.social-link.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.social-link.twitter:hover { background: #000000; border-color: #000000; }

.social-link svg {
    width: 18px;
    height: 18px;
}

/* -------------------- Forms -------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Newsletter Form */
.newsletter-input-group {
    display: flex;
    gap: 12px;
}

.newsletter-input-group input {
    width: 280px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* -------------------- Toast Notification -------------------- */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 39, 68, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.toast span {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        width: calc(100% - 32px);
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .logo-img {
        height: 40px;
    }

    .footer-brand .logo-img {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: -1px;
        right: -1px;
        flex-direction: column;
        background: rgba(10, 28, 52, 0.98);
        backdrop-filter: saturate(180%) blur(24px);
        -webkit-backdrop-filter: saturate(180%) blur(24px);
        border-radius: 0 0 20px 20px;
        padding: 8px 16px 16px;
        margin-top: 0;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: none;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px 18px;
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input-group input {
        width: 100%;
    }
}
