/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #000000;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #3b82f6;
    --accent-secondary: #1e40af;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --border-color: rgba(59, 130, 246, 0.2);
    --grid-color: rgba(59, 130, 246, 0.05);
    --hero-blur-bg: rgba(10, 10, 10, 0.6);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-primary: #2563eb;
    --accent-secondary: #1e3a8a;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --border-color: rgba(37, 99, 235, 0.3);
    --grid-color: rgba(37, 99, 235, 0.03);
    --hero-blur-bg: rgba(255, 255, 255, 0.8);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    width: 100%;
    padding: 0 4rem;
}

/* ===== Navigation ===== */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    /* Increased horizontal padding */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.logo-text {
    display: inline-block;
}

.logo-suffix {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary); /* Override for hero gradient */
    background: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--accent-glow);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-contact-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--accent-primary) !important;
    border: 1px solid var(--accent-primary);
    border-radius: 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-contact-btn:hover {
    background: var(--accent-primary);
    color: white !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 5;
    position: relative;
    max-width: 900px;
    padding: 0;
}

/* Soft feathered blur behind text - no hard edges */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--hero-blur-bg) 0%, transparent 80%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

.hero-logo {
    max-width: 250px;
    width: 60%;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}


.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 0 20px var(--accent-glow),
        0 0 40px var(--accent-glow);
}

/* Glitch animation - Note: Currently disabled in home.html */
/* To enable glitch animation, use the following line in home.html */
/* <h1 class="glitch" data-text="SYNCLOGIC">SYNCLOGIC</h1> */

/* .glitch {
    position: relative;
    animation: glitch 3s infinite;
} */

@keyframes glitch {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-2px, 2px);
    }

    94% {
        transform: translate(2px, -2px);
    }

    96% {
        transform: translate(-2px, -2px);
    }
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: var(--accent-primary);
    color: white !important;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

/* Technical Background Components */
.hero-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blueprint-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    /* At rotateX(60deg), vertical scale is cos(60deg) = 0.5.
       To appear as 60x60 squares visually, use 60x120 cells so they squash to 60x60. */
    background-size: 60px 120px;
    transform: perspective(1000px) rotateX(60deg);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 5;
}


.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.data-particle {
    position: absolute;
    background: var(--accent-primary);
    height: 2px;
    width: 40px;
    border-radius: 2px;
    opacity: 0;
    animation: flowDown linear infinite;
}

@keyframes flowDown {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(10, 10, 10, 0) 0%, var(--bg-primary) 85%);
    z-index: 2;
    pointer-events: none;
}

/* ===== Features Section ===== */
.features {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* ===== Page Header ===== */
.page-header {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.header-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 0 25px var(--accent-glow);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.hero-metric-pill i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.hero-metric-pill:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.user-greeting-name {
    font-family: 'Dancing Script', cursive;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow: 0 0 15px var(--accent-glow);
    display: inline-block;
    margin: 0 6px;
    vertical-align: middle;
    line-height: 1;
}

/* ===== Services Browser Section ===== */
.services-browser-section {
    padding: 3.5rem 0 5rem;
}

/* Controls: Category Filter Tabs & Live Search */
.services-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.services-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.tab-btn i {
    font-size: 0.85rem;
}

.tab-btn .tab-count {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
}

.tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.tab-btn.active .tab-count {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

/* Search Wrapper */
.services-search-wrapper {
    position: relative;
    min-width: 320px;
    flex: 1;
    max-width: 420px;
}

.services-search-wrapper .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.services-search-wrapper input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.services-search-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    background: var(--bg-primary);
}

.services-search-wrapper input:focus + .search-icon {
    color: var(--accent-primary);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.clear-search-btn:hover {
    color: var(--accent-primary);
}

/* No Results State */
.services-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    margin: 2rem 0;
}

.no-results-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.services-no-results h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.services-no-results p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Category Sections */
.service-category-group {
    margin-bottom: 4rem;
    transition: opacity 0.3s ease;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    flex-wrap: wrap;
    gap: 1rem;
}

.category-header-title {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.category-icon-chip {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.software-chip {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.cloud-chip {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0ea5e9;
}

.security-chip {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.category-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    letter-spacing: -0.3px;
}

.category-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.category-pill-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Service Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px -10px var(--accent-glow);
    transform: translateY(-5px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card:hover .service-icon {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.05);
}

.service-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.badge-software {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.badge-cloud {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
}

.badge-security {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.highlight-badge {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.service-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.service-card .service-lead {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    min-height: 58px;
}

.service-features {
    list-style: none;
    padding: 1rem 0 0.5rem;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 0.85rem;
}

.service-card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.service-cta i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.service-cta:hover i {
    transform: translateX(4px);
}

/* Consultation Banner */
.services-cta-banner {
    margin-top: 5rem;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.services-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.services-cta-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.services-cta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    color: var(--accent-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.services-cta-banner h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.services-cta-banner p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.services-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.4rem;
    }
    
    .services-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .services-search-wrapper {
        min-width: 100%;
        max-width: 100%;
    }

    .services-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-cta-banner {
        padding: 2.5rem 1.5rem;
    }

    .services-cta-banner h2 {
        font-size: 1.75rem;
    }

    .services-cta-actions {
        flex-direction: column;
    }

    .services-cta-actions .btn {
        width: 100%;
    }
}

/* ===== About ===== */
.about-content {
    padding: 3rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.tech-item h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-left: 3px solid var(--accent-primary);
    border-radius: 5px;
}

/* ===== Contact ===== */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.info-item a {
    color: var(--accent-primary);
    text-decoration: none;
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
}

.contact-form-container h2 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25) !important;
}

/* CAPTCHA Styles */
.captcha-group {
    background: transparent;
    padding: 0;
    border: none;
}

.captcha-group label {
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.captcha-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.captcha-input-wrapper input {
    max-width: 150px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
}

.captcha-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== Footer ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

/* ===== Contact Form Wizard ===== */
.wizard-form {
    position: relative;
    min-height: 350px;
}

.wizard-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wizard-step.active {
    display: block;
    opacity: 1;
    animation: fadeInStep 0.5s forwards;
}

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

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.wizard-step h3 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Keyword Pills */
.keyword-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.keyword-pill {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    user-select: none;
}

/* Dual-tone Logo Branding */
.logo-suffix {
    color: var(--text-primary);
    font-weight: 300;
}

/* Global Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-form label .required {
    color: var(--accent-primary);
    margin-left: 2px;
}

.modal-form label .optional {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
}

.modal-extra {
    border-left: 2px solid var(--accent-primary);
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

@media (max-width: 560px) {
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-header {
    text-align: left;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-header p {
    color: var(--text-secondary);
}

/* Wizard Steps & Progress */
.wizard-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #60a5fa);
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Color Picker & Selection Styles */
.color-selection-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.selected-colors-preview {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-height: 60px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.selected-color-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.selected-color-item::after {
    content: '×';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.swatch-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.swatch-btn:hover {
    transform: translateY(-3px);
}

.color-custom-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hex-input-wrapper {
    flex: 1;
    position: relative;
}

.hex-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.hex-input-wrapper::before {
    content: '#';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.custom-picker-btn {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
}

.custom-picker-btn input[type="color"] {
    width: 140%;
    height: 140%;
    margin: -20%;
    cursor: pointer;
}

/* Deadline Input Style */
.deadline-input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--accent-primary);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s;
}

.deadline-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-style: solid;
    outline: none;
    box-shadow: 0 0 15px var(--accent-glow);
}

.keyword-pill:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.keyword-pill.selected {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Mobile Nav */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 70%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: 0.3s;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-contact-btn {
        width: 100%;
        text-align: center;
    }

    /* Layout Stacking */
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-logo {
        max-width: 180px;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto 0;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-section {
    padding: 5rem 0 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}


.pricing-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 0.6rem 1.75rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--accent-glow);
    white-space: nowrap;
    z-index: 10;
}

.plan-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.plan-name {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-price {
    margin: 1rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    align-self: flex-start;
    margin-top: 0.5rem;
}

.price {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-best-for {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.plan-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.plan-tagline {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

/* ===== Success Message ===== */
.success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid var(--accent-primary);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease;
}

/* ===== Contact Source Banner ===== */
.source-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 3px solid var(--accent-primary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.source-banner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.source-banner strong {
    color: var(--accent-primary);
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

/* ===== Referral Banner ===== */
.referral-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.2rem 1.5rem;
    background: rgba(16, 185, 129, 0.08); /* Emerald green theme */
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 3px solid #10b981;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.4;
    animation: slideIn 0.3s ease;
}

.referral-banner-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.referral-banner strong {
    color: #10b981;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Journey Path Selector ===== */
.journey-selector {
    padding: 3rem 0 2rem;
    background: var(--bg-primary);
}

.journey-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.journey-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.journey-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-5px);
}

.journey-card-featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.05);
}

.journey-card-featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.journey-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.journey-card h2 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.journey-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.journey-cta {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: letter-spacing 0.2s ease;
}

.journey-card:hover .journey-cta {
    letter-spacing: 0.5px;
}

/* ===== Section Intro ===== */
.section-intro {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-intro h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.alt-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ===== Plan Card Overrides for Plans Page ===== */
.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.plan-tier-label {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.plan-problem-solution {
    text-align: left;
    margin-bottom: 1.5rem;
}

.plan-problem,
.plan-solution {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
}

.plan-problem {
    color: var(--text-secondary);
    background: rgba(255, 100, 100, 0.06);
}

.plan-solution {
    color: var(--text-secondary);
    background: rgba(59, 130, 246, 0.06);
}

/* Custom / "Contact us" price display */
.custom-price {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.price-custom {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* ===== Hosting Comparison Table ===== */
.comparison-table-wrapper {
    margin-top: 4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.comparison-table-wrapper:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--accent-glow);
}

.comparison-table-wrapper h3 {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.85rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
}

.comparison-table thead th {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.comparison-table thead th span {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.comparison-table td {
    color: var(--text-primary);
}

/* ===== Build Pricing Model Toggle ===== */
.pricing-toggle-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-toggle {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.toggle-btn {
    padding: 0.6rem 1.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.toggle-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.toggle-hint {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.hidden {
    display: none !important;
}

/* ===== Upfront Model Layout ===== */
.upfront-layout {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.upfront-hero {
    margin-bottom: 2.5rem;
}

.upfront-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upfront-hero h3 {
    font-size: 1.9rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.upfront-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.upfront-hero strong {
    color: var(--text-primary);
}

.upfront-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.upfront-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.upfront-step:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.step-number {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 10px var(--accent-glow);
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
}

.upfront-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 14px;
    margin-bottom: 2.5rem;
    text-align: left;
}

.callout-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.upfront-callout strong {
    color: var(--accent-primary);
    font-weight: 700;
}

.callout-title {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: var(--accent-primary);
}

.upfront-callout p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.upfront-cta {
    display: inline-block;
    padding: 1rem 3rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: color 0.2s ease;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--accent-primary);
    line-height: 1;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding-bottom 0.3s ease;
}

.faq-answer.open {
    max-height: 600px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--text-primary);
}

/* ===== Plans Page Responsive Additions ===== */
@media (max-width: 1024px) {
    .three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .journey-cards {
        grid-template-columns: 1fr;
    }

    .journey-card {
        padding: 2rem 1.5rem;
    }

    .three-col {
        grid-template-columns: 1fr;
    }

    .section-intro h2 {
        font-size: 1.75rem;
    }

    .upfront-callout {
        flex-direction: column;
    }

    .comparison-table {
        font-size: 0.8rem;
        min-width: 500px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.75rem;
    }

    .upfront-cta {
        width: 100%;
        text-align: center;
    }

    .toggle-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.875rem;
    }
}

/* ===== Global Questionnaire Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 95%;
    max-width: 750px; /* Increased max-width */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem; /* Increased padding */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.15rem; /* Increased base font size for modal */
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: var(--accent-primary);
    font-size: 2.2rem; /* Increased */
    margin-bottom: 0.75rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1.1rem; /* Increased */
}

/* Intent Tile Grid */
.modal-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}


.tile-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.tile-btn i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.tile-btn span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-choice-step {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;    /* Center elements horizontally */
    text-align: center;     /* Ensure text lines are centered */
    gap: 15px;              /* Adds consistent spacing between items */
}

.modal-choice-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end; /* Align buttons to the right */
}

/* Modal Wizard Overrides */


.modal-container .wizard-step h3 {
    font-size: 1.5rem; /* Increased */
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.modal-container .wizard-actions {
    display: flex;
    justify-content: flex-end; /* Keep Next buttons on the right for form ergonomics */
    gap: 1rem;
    margin-top: 2.5rem;
}

.modal-container .form-group label {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.modal-container input,
.modal-container textarea,
.modal-container select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem; /* Base size */
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none; /* Mobile consistency */
}

@media (max-width: 600px) {
    .modal-container input,
    .modal-container textarea,
    .modal-container select {
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }
}

.modal-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}

.modal-container select option {
    background-color: #1a1a1a;
    color: white;
    padding: 10px;
}

.modal-container input:focus,
.modal-container textarea:focus,
.modal-container select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.modal-container .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .modal-container {
        position: fixed;
        inset: 0;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 4rem 1.5rem 2rem 1.5rem !important; /* Top padding for the close button */
        transform: none !important;
        overflow-y: auto;
    }
    
    .modal-choice-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .modal-choice-buttons .btn {
        width: 100%;
        padding: 1.25rem !important;
    }

    .modal-tile-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .modal-container .tile-btn {
        padding: 1.5rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
    }

    .modal-container .tile-btn i {
        font-size: 1.8rem;
        margin-bottom: 0;
        width: 40px;
        text-align: center;
    }

    .modal-container .tile-btn span {
        font-size: 1.1rem;
    }
}

/* Questionnaire Specific Overrides */
.modal-container .wizard-step .keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.modal-container .wizard-step .keyword-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-container .wizard-step .keyword-pill:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.modal-container .wizard-step .keyword-pill.selected {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.keyword-custom-input {
    margin-bottom: 1.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px dashed var(--accent-primary);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.keyword-custom-input:focus {
    outline: none;
    border-style: solid;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px var(--accent-glow);
}

.message-input, .deadline-input {
    width: 100%;
    min-height: 120px;
    margin-bottom: 1.5rem;
    resize: vertical;
}

.deadline-input {
    min-height: 80px;
}

/* Color Selection Styling */
.color-selection-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.selected-colors-preview {
    display: flex;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: center;
}

.color-options-group {
    margin-bottom: 1.5rem;
}

.color-options-group h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.color-swatches {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.swatch-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ===== SyncHub Dashboard ===== */
.hub-section {
    padding: 6rem 0;
    min-height: 80vh;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.hub-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none; /* For button tiles */
    font-family: inherit;
    width: 100%;
}

.hub-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hub-tile:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.hub-tile:hover::before {
    opacity: 0.1;
}

.hub-tile-icon {
    width: 80px;
    height: 80px;
    border-radius: 25px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hub-tile:hover .hub-tile-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.hub-tile h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.hub-tile p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.hub-tile:hover h3 {
    color: var(--accent-primary);
}

/* Dev Preview tile — distinct cyan accent */

.tile-cyan:hover {
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
}

.tile-cyan:hover h3 {
    color: #06b6d4;
}

.tile-cyan:hover .hub-tile-icon {
    color: #06b6d4;
}

/* Gitea Tile — Purple/Indigo branding */

.tile-gitea:hover {
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.tile-gitea:hover h3 {
    color: #818cf8;
}

.tile-gitea:hover .hub-tile-icon {
    background: #6366f1;
    color: white;
}

/* Emerald Tile — Monitoring branding */

.tile-emerald:hover {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.tile-emerald:hover h3 {
    color: #34d399;
}

.tile-emerald:hover .hub-tile-icon {
    background: #10b981;
    color: white;
}

/* Blue Tile */

.tile-blue:hover {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.tile-blue:hover h3 {
    color: #60a5fa;
}

.tile-blue:hover .hub-tile-icon {
    background: #3b82f6;
    color: white;
}

/* Orange Tile */

.tile-orange:hover {
    border-color: rgba(249, 115, 22, 0.7);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.15);
}

.tile-orange:hover h3 {
    color: #fb923c;
}

.tile-orange:hover .hub-tile-icon {
    background: #f97316;
    color: white;
}

/* Cyan Tile */

.tile-cyan:hover {
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
}

.tile-cyan:hover h3 {
    color: #22d3ee;
}

.tile-cyan:hover .hub-tile-icon {
    background: #06b6d4;
    color: white;
}

/* Pulse Tile — Deep Indigo/Blue theme */

.tile-pulse:hover {
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.tile-pulse:hover h3 {
    color: #818cf8;
}

.tile-pulse:hover .hub-tile-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: white;
}

/* Amber Tile — Guide branding */

.tile-amber:hover {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
}

.tile-amber:hover h3 {
    color: #fbbf24;
}

.tile-amber:hover .hub-tile-icon {
    background: #f59e0b;
    color: white;
}

/* Gold/Reward Tile */

.tile-gold:hover {
    border-color: rgba(234, 179, 8, 0.7);
    box-shadow: 0 8px 30px rgba(234, 179, 8, 0.15);
}

.tile-gold:hover h3 {
    color: #fde047;
}


.tile-gold:hover .hub-tile-icon {
    background: #eab308;
    color: white;
}

/* Plan Modal Specifics */
.plan-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.plan-detail-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.plan-detail-value {
    color: var(--text-primary);
    font-weight: 800;
}

.cancel-btn-container {
    margin-top: 3rem;
    text-align: center;
}

.btn-danger-ghost {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-danger-ghost:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 600px) {
    .toast-msg {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: max-content;
        max-width: min(560px, calc(100vw - 2rem));
        border-radius: 50px;
    }
}

@keyframes toastSlideIn {
    from { bottom: -5rem; opacity: 0; }
    to { bottom: 1rem; opacity: 1; }
}

.cookie-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 0.9rem;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.swatch-btn:hover {
    transform: scale(1.1);
    border-color: white;
}

.color-custom-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.hex-input-wrapper {
    position: relative;
    flex: 1;
}

.hex-input-wrapper::before {
    content: "#";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.hex-input-wrapper input {
    padding-left: 2rem !important;
}

.custom-picker-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: none;
    padding: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-picker-btn input[type="color"] {
    width: 140%;
    height: 140%;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    transform: scale(1.5);
}

/* Modal Validation Alert */
.modal-alert-toast {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

.modal-alert-toast.active {
    display: flex;
    animation: alertSlideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ===== Docs Interactive Layout ===== */
.docs-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.docs-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    overflow-y: auto;
}

.docs-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-toc-item {
    padding: 0.25rem 1rem;
}

.docs-toc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.docs-toc-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
}

.docs-toc-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(30, 64, 175, 0.15) 100%);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: 600;
}

.docs-content {
    padding: 3rem;
    overflow-y: auto;
    background: var(--bg-primary);
}

.docs-panel {
    display: none;
    animation: docsFadeIn 0.4s ease forwards;
}

.docs-panel.active {
    display: block;
}

.docs-section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.docs-section-title i {
    color: var(--accent-primary);
    font-size: 1.8rem;
}

@keyframes docsFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1100px) {
    .docs-layout {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 992px) {
    .docs-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .docs-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        max-height: 180px;
    }
    .docs-toc-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .docs-toc-item {
        padding: 0;
    }
    .docs-toc-link {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    .docs-content {
        max-height: none;
        padding: 2rem;
    }
}

/* ===== Pitch Section ===== */
.pitch-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pitch-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: start;
}

.pitch-hook {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.pitch-headline {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.pitch-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.pitch-text em {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 500;
}

.pitch-callout {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 2rem 0;
}

.pitch-callout-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.pitch-callout p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.pitch-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.pitch-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.pitch-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.pitch-stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pitch-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .pitch-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pitch-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pitch-stat {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 140px;
    }
}

@media (max-width: 560px) {
    .pitch-stats {
        flex-direction: column;
    }

    .pitch-stat {
        flex: unset;
    }
}

/* ===== Portfolio ===== */
.portfolio-section {
    padding: 4rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-5px);
}

.portfolio-image {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 200px;
}


.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-body h3 {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.portfolio-tagline {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.portfolio-desc {
    color: var(--text-primary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
}

.portfolio-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
}

/* Balance Tile Specific Styles */

.tile-balance:hover {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.15);
}

.tile-balance:hover h3 {
    color: #f87171;
}


.tile-balance:hover .hub-tile-icon {
    background: #ef4444;
    color: white;
}


.tile-balance-zero:hover {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.tile-balance-zero:hover h3 {
    color: #34d399;
}


.tile-balance-zero:hover .hub-tile-icon {
    background: #10b981;
    color: white;
}




