/**
 * Spendwise Design - propfirmcompanies.com
 * Dark SaaS fintech theme: black + blue #0070fa + purple #6b40f3
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==================== BASE ==================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-light); }

img { max-width: 100%; height: auto; }

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    height: var(--header-height);
    background: rgba(8, 10, 16, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.header-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.header-logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Desktop Nav */
.nav-main {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #b3b3b3;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    z-index: var(--z-dropdown);
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #b3b3b3;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-dropdown-link:hover, .nav-dropdown-link.active {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.nav-dropdown-link small {
    color: #555;
    font-size: 0.75rem;
}

/* Header CTA */
.header-cta {
    display: none;
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition-base);
}

/* Mobile Nav */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 290;
    backdrop-filter: blur(4px);
}

.mobile-overlay.active { display: block; }

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0c14;
    z-index: var(--z-fixed);
    overflow-y: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav.active { display: block; }

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-close svg { width: 20px; height: 20px; }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #b3b3b3;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.mobile-nav-link svg { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.mobile-nav-item.open .mobile-nav-link svg { transform: rotate(180deg); }

.mobile-nav-dropdown {
    display: none;
    padding: 4px 0 4px 16px;
}

.mobile-nav-item.open .mobile-nav-dropdown { display: block; }

.mobile-nav-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #888;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.mobile-nav-dropdown a:hover, .mobile-nav-dropdown a.active {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}

.mobile-nav-all {
    color: var(--color-primary) !important;
    font-weight: 500;
}

/* ==================== HERO ==================== */
.sw-hero {
    position: relative;
    min-height: min(calc(100vh - var(--header-height)), 820px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 24px 0;
    overflow: hidden;
    background: #080a10;
}

.sw-hero-glow {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(107,64,243,0.4) 0%, rgba(0,112,250,0.25) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(30px);
}

.sw-hero-glow2 {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0,112,250,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.sw-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.sw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 112, 250, 0.12);
    border: 1px solid rgba(0, 112, 250, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #3d8eff;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}

.sw-hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #0070fa;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.sw-hero-title {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.sw-hero-title span {
    background: linear-gradient(135deg, #0070fa 0%, #6b40f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sw-hero-subtitle {
    font-size: 1.125rem;
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.sw-hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.sw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #0070fa;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(0,112,250,0.35);
}

.sw-btn-primary:hover {
    background: #0057d9;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0,112,250,0.5);
}

.sw-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.sw-btn-secondary:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

.sw-hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 60px;
}

.sw-hero-trust-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
}

.sw-hero-trust-stars svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sw-hero-dashboard {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.sw-hero-dashboard-img {
    width: 100%;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    box-shadow: 0 -20px 80px rgba(0,112,250,0.15), 0 0 0 1px rgba(255,255,255,0.05);
    display: block;
}

.sw-hero-dashboard-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #080a10 0%, transparent 100%);
    pointer-events: none;
}

/* ==================== SECTIONS COMMON ==================== */
.sw-section {
    padding: 100px 0;
    position: relative;
}

.sw-section-dark {
    background: #080a10;
}

.sw-section-alt {
    background: #0a0c14;
}

.sw-section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.sw-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sw-section-label::before {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.sw-section-title {
    font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.sw-section-subtitle {
    font-size: 1.05rem;
    color: #888;
    line-height: 1.6;
    max-width: 520px;
}

/* ==================== PROBLEM SECTION ==================== */
.sw-problem {
    background: #0a0c14;
}

.sw-problem-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 48px;
}

.sw-problem-card {
    background: #111520;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition-base);
}

.sw-problem-card:hover {
    border-color: rgba(255,255,255,0.15);
    background: #161b2a;
    transform: translateY(-2px);
}

.sw-problem-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,80,80,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #ff5050;
}

.sw-problem-icon svg {
    width: 22px;
    height: 22px;
}

.sw-problem-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

/* ==================== SOLUTION SECTION ==================== */
.sw-solution {
    background: #080a10;
}

.sw-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.sw-solution-card {
    background: #111520;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.sw-solution-card:hover {
    border-color: rgba(0,112,250,0.3);
    box-shadow: 0 8px 30px rgba(0,112,250,0.15);
    transform: translateY(-3px);
}

.sw-solution-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    object-position: top;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sw-solution-card-body {
    padding: 24px;
}

.sw-solution-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.sw-solution-card-text {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
}

/* ==================== FEATURES SECTION ==================== */
.sw-features {
    background: #0a0c14;
}

.sw-feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sw-feature-split:last-child {
    border-bottom: none;
}

.sw-feature-split.reverse {
    direction: rtl;
}

.sw-feature-split.reverse > * {
    direction: ltr;
}

.sw-feature-text .sw-section-label {
    display: inline-flex;
}

.sw-feature-title {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.sw-feature-desc {
    font-size: 1rem;
    color: #888;
    line-height: 1.7;
    margin-bottom: 28px;
}

.sw-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #b3b3b3;
}

.sw-feature-list li::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: rgba(0,112,250,0.15);
    border: 1px solid rgba(0,112,250,0.4);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230070fa'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 1px;
}

.sw-feature-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.sw-feature-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== CATEGORIES SECTION ==================== */
.sw-categories {
    background: #080a10;
}

.sw-categories-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.sw-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sw-cat-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.sw-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card-hover);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sw-cat-card:hover {
    border-color: rgba(0,112,250,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,112,250,0.12);
}

.sw-cat-card:hover::after { opacity: 1; }

.sw-cat-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,112,250,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.sw-cat-icon svg {
    width: 24px;
    height: 24px;
}

.sw-cat-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.sw-cat-count {
    font-size: 0.8rem;
    color: #555;
    position: relative;
    z-index: 1;
}

/* ==================== STATS SECTION ==================== */
.sw-stats {
    background: #0a0c14;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sw-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.sw-stat-item {
    padding: 48px 40px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sw-stat-item:last-child { border-right: none; }

.sw-stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sw-stat-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ==================== TAGS SECTION ==================== */
.sw-tags-section {
    background: #080a10;
}

.sw-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.sw-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #b3b3b3;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.sw-tag:hover {
    color: #ffffff;
    border-color: rgba(0,112,250,0.4);
    background: rgba(0,112,250,0.08);
}

.sw-tag-count {
    font-size: 0.75rem;
    color: #555;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    padding: 1px 7px;
}

/* ==================== CAROUSEL ==================== */
.sw-carousel-section {
    background: #080a10;
    padding: 64px 0;
    overflow: hidden;
}

.sw-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.sw-carousel-wrapper::before,
.sw-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.sw-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #080a10, transparent);
}

.sw-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #080a10, transparent);
}

.carousel-triple {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-row {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: scroll-left var(--carousel-speed-row1) linear infinite;
}

.carousel-row.reverse {
    animation: scroll-right var(--carousel-speed-row2) linear infinite;
}

.carousel-row.slow {
    animation: scroll-left var(--carousel-speed-row3) linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.kw-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #b3b3b3;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
}

.kw-pill:hover {
    color: #ffffff;
    border-color: rgba(0,112,250,0.4);
    background: rgba(0,112,250,0.08);
}

/* Single row */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #080a10, transparent);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #080a10, transparent);
}

/* ==================== SEO CONTENT ==================== */
.sw-seo-section {
    background: #080a10;
    padding: 80px 0;
}

.sw-seo-content {
    max-width: 760px;
    margin: 0 auto;
}

.sw-seo-content p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--color-bg-footer);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
    margin-top: 16px;
    max-width: 300px;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: #555;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: #b3b3b3; }

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

.footer-bottom p {
    font-size: 0.8rem;
    color: #444;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #3a3a3a;
    max-width: 600px;
}

/* ==================== INTERNAL PAGE HERO ==================== */
.page-hero {
    background: #080a10;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(107,64,243,0.2) 0%, rgba(0,112,250,0.1) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

.page-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(1.875rem, 3vw + 0.5rem, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.page-hero p {
    color: #888;
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #555;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-primary); }

.breadcrumb-sep { color: #333; }

/* ==================== MAIN CONTENT AREA ==================== */
.main {
    padding-top: 25px;
    padding-bottom: 25px;
    background: #080a10;
}

.main-home {
    padding-top: 0;
}

/* ==================== ARTICLE / CONTENT STYLES ==================== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px var(--container-padding);
}

.article-content {
    min-width: 0;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: #ffffff;
}

.article-content p,
.article-content li {
    color: #b3b3b3;
    line-height: 1.7;
}

.article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
}

/* Article cards */
.sw-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.sw-article-card {
    display: flex;
    flex-direction: column;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-base);
}

.sw-article-card:hover {
    border-color: rgba(0,112,250,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,112,250,0.12);
}

.sw-article-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sw-article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sw-article-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar cards */
.sidebar-card {
    background: #111520;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-primary {
    background: #0070fa;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,112,250,0.3);
}

.btn-primary:hover {
    background: #0057d9;
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(0,112,250,0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

/* Contact Form */
.contact-form-wrap {
    max-width: 620px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #b3b3b3;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: var(--font-main);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(0,112,250,0.5);
    box-shadow: 0 0 0 3px rgba(0,112,250,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #444;
}

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

/* Tag page chips */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tag-chip:hover {
    color: var(--color-primary);
    border-color: rgba(0,112,250,0.4);
    background: rgba(0,112,250,0.06);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: var(--z-modal-backdrop);
    backdrop-filter: blur(4px);
}

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

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 680px;
    max-height: 80vh;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    z-index: var(--z-modal);
    overflow: hidden;
    flex-direction: column;
}

.modal.active { display: flex; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.modal-close:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
.modal-close svg { width: 20px; height: 20px; }

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: #b3b3b3;
    line-height: 1.7;
    font-size: 0.95rem;
}

.preloaded-content { display: none; }

/* 404 page */
.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 60px 24px;
}

.page-404-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
}

/* ==================== ARTICLE BODY TEXT ==================== */
.article-body p,
.article-body li,
.article-body td,
.article-body th,
.article-body blockquote {
    color: #b3b3b3;
    line-height: 1.8;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(0,112,250,0.4);
}

.article-body a:hover {
    color: var(--color-primary-light);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-body td,
.article-body th {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
}

.article-body th {
    background: rgba(0,112,250,0.08);
    color: #ffffff;
    font-weight: 600;
}

.article-body img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 12px 20px;
    background: rgba(0,112,250,0.05);
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-style: italic;
}

/* ==================== CASINO/PARTNER CARDS (dark override) ==================== */
.casino-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.casino-card-new {
    background: #111520 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    padding: 24px 20px !important;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: none !important;
}
.casino-card-new:hover {
    border-color: rgba(0,112,250,0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,112,250,0.12) !important;
}
.casino-card-new-badge {
    width: 52px;
    height: 52px;
    background: rgba(0,112,250,0.12) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--color-primary) !important;
}
.casino-card-new-badge svg { width: 26px; height: 26px; }
.casino-card-new:nth-child(2n) .casino-card-new-badge,
.casino-card-new:nth-child(3n) .casino-card-new-badge,
.casino-card-new:nth-child(5n) .casino-card-new-badge {
    background: rgba(107,64,243,0.12) !important;
    color: #8a63ff !important;
}
.casino-card-new-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 8px;
}
.casino-card-new-rating { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 16px; }
.casino-card-new-rating svg { width: 14px; height: 14px; fill: #f59e0b; color: #f59e0b; }
.casino-card-new-rating .rating-value { font-size: 0.8rem; color: #888; font-weight: 600; margin-left: 4px; }
.casino-card-new-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px !important;
    background: #0070fa !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}
.casino-card-new-btn:hover { background: #0057d9 !important; color: #ffffff !important; }
.casino-card-new-btn svg { width: 16px; height: 16px; }
@media (max-width: 768px) { .casino-grid-new { grid-template-columns: repeat(2, 1fr); } }

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #111520;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    z-index: 9999;
    max-width: 400px;
    animation: toast-in 0.3s ease;
}

.toast-success { border-left: 3px solid #22c55e; }
.toast-error { border-left: 3px solid #ef4444; }

.toast-icon svg { width: 20px; height: 20px; color: currentColor; }
.toast-success .toast-icon { color: #22c55e; }
.toast-error .toast-icon { color: #ef4444; }

.toast-content { display: flex; flex-direction: column; gap: 4px; }
.toast-content strong { color: #ffffff; font-size: 0.9rem; }
.toast-content span { color: #888; font-size: 0.8rem; }

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.toast-close:hover { color: #888; }
.toast-close svg { width: 16px; height: 16px; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-hiding {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(16px); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .sw-feature-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sw-feature-split.reverse { direction: ltr; }
    .sw-problem-grid { grid-template-columns: repeat(3, 1fr); }
    .sw-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .sw-article-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sw-solution-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-main { display: none; }
    .mobile-menu-toggle { display: flex; }
    .sw-section { padding: 60px 0; }
    .sw-hero { padding: 80px 16px 0; width: 100%; }
    .sw-hero-content { max-width: calc(100vw - 32px); overflow: hidden; }
    .sw-hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .sw-hero-subtitle { font-size: 0.95rem; max-width: 100%; }
    .sw-hero-badge { max-width: 100%; font-size: 0.75rem; padding: 5px 12px; }
    .sw-problem-grid { grid-template-columns: repeat(2, 1fr); }
    .sw-solution-grid { grid-template-columns: 1fr; }
    .sw-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .sw-stats-grid { grid-template-columns: 1fr; }
    .sw-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 32px 24px; }
    .sw-stat-item:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .sw-categories-header { flex-direction: column; align-items: flex-start; }
    .sw-article-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .sw-hero-buttons { flex-direction: column; align-items: stretch; }
    .sw-btn-primary, .sw-btn-secondary { justify-content: center; }
    .sw-problem-grid { grid-template-columns: repeat(2, 1fr); }
    .sw-cat-grid { grid-template-columns: 1fr; }
}
