/**
 * to4k.com Main Stylesheet
 * Modern, conversion-focused design based on logo colors
 */

/* ========================================
   CSS Variables - Brand Colors from Logo
   ======================================== */
:root {
    --primary-color: #4169e1; /* Blue from logo */
    --primary-dark: #2d4ec7; /* Darker blue */
    --secondary-color: #2c3e50; /* Dark blue-grey that complements */
    --accent-color: #8b5cf6; /* Purple from logo */
    --accent-light: #a78bfa; /* Light purple */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --gradient-primary: linear-gradient(
        135deg,
        #4169e1 0%,
        #8b5cf6 100%
    ); /* Blue to Purple */
    --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #4169e1 100%);
    --gradient-accent: linear-gradient(
        135deg,
        #8b5cf6 0%,
        #a78bfa 100%
    ); /* Purple gradient */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(65, 105, 225, 0.08);
    --shadow-md: 0 4px 12px rgba(65, 105, 225, 0.12);
    --shadow-lg: 0 10px 40px rgba(139, 92, 246, 0.15);
    --transition-speed: 0.3s;
}

/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 3rem;
}
h2 {
    font-size: 2.5rem;
}
h3 {
    font-size: 2rem;
}
h4 {
    font-size: 1.5rem;
}
h5 {
    font-size: 1.25rem;
}
h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

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

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    background: #00010c;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed);
}

.navbar.scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.navbar-brand img {
    border: none;
    border-radius: 0;
}

.navbar-brand span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(65, 105, 225, 0.2);
}

.nav-link.active,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: #fff !important;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.4);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.widget-placeholder {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

.widget-placeholder-text {
    text-align: center;
    color: var(--text-secondary);
}

.hero-link {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: underline;
    transition: color var(--transition-speed);
}

.hero-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-dark {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-dark:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

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

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========================================
   Sidebar CTA
   ======================================== */
.sidebar-cta {
    background: #f0f4ff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: sticky;
    top: 100px;
}

.sidebar-cta h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.sidebar-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(65, 105, 225, 0.1);
}

.cta-feature-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.cta-feature-item:last-child {
    margin-bottom: 0;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    color: #ffa400;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating .star-filled {
    color: #ffa400;
}

.testimonial-rating .star-empty {
    color: #e0e0e0;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
}

/* ========================================
   CTA Sections
   ======================================== */
.cta-section {
    background: var(--gradient-primary);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    background: #fff;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background: var(--light-bg);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.5rem;
    transition: color var(--transition-speed);
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero {
        padding: 4rem 0 3rem;
    }
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .hero {
        padding: 3rem 0 2rem;
    }
    .section {
        padding: 3rem 0;
    }
    .widget-placeholder {
        padding: 2rem;
        min-height: 200px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-4 {
    margin-bottom: 1.5rem;
}
.mb-5 {
    margin-bottom: 3rem;
}
.mt-4 {
    margin-top: 1.5rem;
}
.mt-5 {
    margin-top: 3rem;
}
.py-5 {
    padding: 3rem 0;
}

/* ========================================
   FAQ Accordion
   ======================================== */
.accordion {
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(65, 105, 225, 0.15);
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 0 !important;
    margin-bottom: 0;
    background: #fff;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.accordion-item:first-of-type {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.accordion-item:last-of-type {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.accordion-item:not(:last-of-type) {
    border-bottom: none;
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.accordion-item:last-of-type {
    margin-bottom: 0;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 1.25rem 1.5rem;
    background-color: #fff;
    border: none;
    transition: all var(--transition-speed);
    position: relative;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #f8fafc;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: var(--bs-accordion-btn-focus-box-shadow);
    border-color: var(--primary-color);
}

.accordion-button::after {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234169e1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform var(--transition-speed) ease-in-out;
    flex-shrink: 0;
    margin-left: auto;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem 1.5rem 1.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Animation for accordion collapse */
.accordion-collapse {
    transition: height 0.35s ease;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
