/* Traffic Masters - Fresh CSS for Live Site */
/* Designed specifically for the updated HTML structure */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --tm-primary: #1e73be;
    --tm-primary-dark: #1557a0;
    --tm-primary-light: #e8f4fd;
    --tm-success: #10b981;
    --tm-success-light: #d1fae5;
    --tm-text-primary: #1a1a1a;
    --tm-text-secondary: #666666;
    --tm-text-muted: #999999;
    --tm-border: #e5e7eb;
    --tm-border-light: #f3f4f6;
    --tm-bg-white: #ffffff;
    --tm-bg-light: #f8f9fa;
    --tm-radius: 8px;
    --tm-radius-lg: 12px;
    --tm-radius-xl: 16px;
    --tm-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --tm-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --tm-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --tm-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
}

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

/* ========================================
   CONTAINERS
   ======================================== */
.tm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .tm-container {
        padding: 0 40px;
    }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.tm-section-header {
    margin-bottom: 40px;
}

.tm-section-header--center {
    text-align: center;
}

.tm-section-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tm-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tm-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--tm-text-primary);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .tm-section-title {
        font-size: 36px;
    }
}

.tm-section-subtitle {
    font-size: 16px;
    color: var(--tm-text-secondary);
    margin: 0;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .tm-section-subtitle {
        font-size: 18px;
    }
}

.tm-section-header--center .tm-section-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tm-content-block {
    font-size: 16px;
    line-height: 1.7;
    color: var(--tm-text-secondary);
}

.tm-content-block p {
    margin: 0 0 16px 0;
}

.tm-content-block p:last-child {
    margin-bottom: 0;
}

.tm-content-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--tm-text-primary);
    margin: 24px 0 12px 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.tm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--tm-radius);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.tm-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tm-btn--primary {
    background: var(--tm-primary);
    color: white;
    border-color: var(--tm-primary);
}

.tm-btn--primary:hover {
    background: var(--tm-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--tm-shadow-md);
}

.tm-btn--ghost {
    background: transparent;
    color: var(--tm-text-primary);
    border-color: var(--tm-border);
}

.tm-btn--ghost:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
}

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

.tm-btn--outline:hover {
    background: var(--tm-primary);
    color: white;
}

.tm-btn--white {
    background: white;
    color: var(--tm-primary);
}

.tm-btn--white:hover {
    background: var(--tm-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--tm-shadow-md);
}

.tm-btn--large {
    padding: 16px 32px;
    font-size: 18px;
}

.tm-btn--small {
    padding: 10px 20px;
    font-size: 14px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.tm-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

@media (min-width: 768px) {
    .tm-hero {
        padding: 80px 0;
    }
}

.tm-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .tm-hero__container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .tm-hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.tm-hero__content {
    text-align: center;
}

@media (min-width: 1024px) {
    .tm-hero__content {
        text-align: left;
    }
}

.tm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tm-success-light);
    color: #047857;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.tm-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--tm-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tm-hero__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: var(--tm-text-primary);
}

@media (min-width: 768px) {
    .tm-hero__title {
        font-size: 44px;
    }
}

@media (min-width: 1024px) {
    .tm-hero__title {
        font-size: 48px;
    }
}

.tm-hero__subtitle {
    font-size: 18px;
    color: var(--tm-text-secondary);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .tm-hero__subtitle {
        font-size: 20px;
    }
}

.tm-hero__cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 480px) {
    .tm-hero__cta-group {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .tm-hero__cta-group {
        justify-content: flex-start;
    }
}

.tm-hero__microcopy {
    font-size: 14px;
    color: var(--tm-text-muted);
    margin: 0;
}

.tm-hero__visual {
    display: none;
}

@media (min-width: 768px) {
    .tm-hero__visual {
        display: block;
        position: relative;
    }
}

.tm-dashboard-card {
    background: white;
    border-radius: var(--tm-radius-xl);
    padding: 24px;
    box-shadow: var(--tm-shadow-xl);
    border: 1px solid var(--tm-border-light);
}

.tm-dashboard-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tm-dashboard-card__icon svg {
    width: 20px;
    height: 20px;
}

.tm-dashboard-card__title {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.tm-dashboard-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.tm-dashboard-card__status--live {
    color: var(--tm-success);
}

.tm-status-dot {
    width: 6px;
    height: 6px;
    background: var(--tm-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.tm-dashboard-card__metric {
    margin-bottom: 16px;
}

.tm-dashboard-card__number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.tm-dashboard-card__label {
    font-size: 14px;
    color: var(--tm-text-muted);
}

.tm-dashboard-card__chart {
    margin-bottom: 20px;
}

.tm-mini-chart {
    width: 100%;
    height: 60px;
}

.tm-dashboard-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--tm-border-light);
}

.tm-stat__value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.tm-stat__label {
    font-size: 12px;
    color: var(--tm-text-muted);
}

.tm-floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: var(--tm-shadow-lg);
    font-size: 13px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.tm-floating-badge--1 {
    top: -10px;
    right: 20px;
}

.tm-floating-badge--2 {
    bottom: 40px;
    left: -20px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.tm-floating-badge__icon svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   TRUST BAR
   ======================================== */
.tm-trust-bar {
    background: var(--tm-bg-light);
    padding: 32px 0;
    border-top: 1px solid var(--tm-border-light);
    border-bottom: 1px solid var(--tm-border-light);
}

.tm-trust-bar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .tm-trust-bar__container {
        padding: 0 40px;
    }
}

.tm-trust-bar__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .tm-trust-bar__header {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }
}

.tm-trust-bar__title {
    font-size: 15px;
    color: var(--tm-text-secondary);
    margin: 0;
}

.tm-trust-bar__title strong {
    color: var(--tm-text-primary);
}

.tm-trust-bar__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-stars {
    display: flex;
    gap: 2px;
}

.tm-star {
    width: 18px;
    height: 18px;
    color: #fbbf24;
}

.tm-star--half {
    opacity: 0.5;
}

.tm-trust-bar__rating-text {
    font-size: 14px;
    color: var(--tm-text-secondary);
    font-weight: 500;
}

.tm-trust-bar__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .tm-trust-bar__logos {
        gap: 40px;
    }
}

.tm-trust-logo {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tm-trust-logo:hover {
    opacity: 1;
}

.tm-trust-logo__svg {
    height: 32px;
    width: auto;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.tm-features {
    padding: 60px 0;
    background: white;
}

@media (min-width: 768px) {
    .tm-features {
        padding: 80px 0;
    }
}

.tm-features__grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .tm-features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.tm-feature-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    transition: all 0.2s ease;
}

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

.tm-feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--tm-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tm-feature-card__icon--blue {
    background: var(--tm-primary-light);
    color: var(--tm-primary);
}

.tm-feature-card__icon--green {
    background: var(--tm-success-light);
    color: var(--tm-success);
}

.tm-feature-card__icon--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.tm-feature-card__icon svg {
    width: 28px;
    height: 28px;
}

.tm-feature-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tm-text-primary);
    margin: 0 0 12px 0;
}

.tm-feature-card__description {
    font-size: 15px;
    color: var(--tm-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.tm-how-it-works {
    padding: 60px 0;
    background: var(--tm-bg-light);
}

@media (min-width: 768px) {
    .tm-how-it-works {
        padding: 80px 0;
    }
}

.tm-how-it-works__layout {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .tm-how-it-works__layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.tm-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.tm-step {
    display: flex;
    gap: 20px;
}

.tm-step__number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--tm-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.tm-step__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tm-text-primary);
    margin: 0 0 8px 0;
}

.tm-step__description {
    font-size: 15px;
    color: var(--tm-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   WHY TRAFFIC SECTION
   ======================================== */
.tm-why-traffic {
    padding: 60px 0;
    background: white;
}

@media (min-width: 768px) {
    .tm-why-traffic {
        padding: 80px 0;
    }
}

.tm-why-traffic__layout {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .tm-why-traffic__layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .tm-why-traffic__visual {
        order: 1;
    }
    
    .tm-why-traffic__content {
        order: 2;
    }
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.tm-benefits {
    padding: 60px 0;
    background: var(--tm-bg-light);
}

@media (min-width: 768px) {
    .tm-benefits {
        padding: 80px 0;
    }
}

.tm-benefits__layout {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .tm-benefits__layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.tm-benefits__grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.tm-benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tm-benefit-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--tm-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-primary);
}

.tm-benefit-item__icon svg {
    width: 18px;
    height: 18px;
}

.tm-benefit-item__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tm-text-primary);
    margin: 6px 0 0 0;
    line-height: 1.4;
}

/* ========================================
   MOCKUP BROWSER - CRITICAL IMAGE FIX
   ======================================== */
.tm-mockup-browser {
    background: white;
    border-radius: var(--tm-radius-lg);
    box-shadow: var(--tm-shadow-xl);
    overflow: hidden;
    border: 1px solid var(--tm-border-light);
    max-width: 600px;
    margin: 0 auto;
}

.tm-mockup-browser__header {
    background: #f3f4f6;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--tm-border);
}

.tm-mockup-browser__dots {
    display: flex;
    gap: 6px;
}

.tm-mockup-browser__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.tm-mockup-browser__dots span:nth-child(1) {
    background: #ef4444;
}

.tm-mockup-browser__dots span:nth-child(2) {
    background: #f59e0b;
}

.tm-mockup-browser__dots span:nth-child(3) {
    background: #10b981;
}

.tm-mockup-browser__url {
    flex: 1;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--tm-text-muted);
    border: 1px solid var(--tm-border);
}

.tm-mockup-browser__content {
    overflow: hidden;
}

.tm-mockup-browser__content img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   TESTIMONIALS - CRITICAL IMAGE FIX
   ======================================== */
.tm-testimonials {
    padding: 60px 0;
    background: white;
}

@media (min-width: 768px) {
    .tm-testimonials {
        padding: 80px 0;
    }
}

.tm-testimonials__grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .tm-testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.tm-testimonial-card {
    background: white;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    padding: 32px;
    transition: all 0.2s ease;
}

.tm-testimonial-card:hover {
    box-shadow: var(--tm-shadow-md);
    transform: translateY(-4px);
    border-color: var(--tm-primary);
}

.tm-testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.tm-testimonial-card__stars .tm-star {
    width: 16px;
    height: 16px;
}

.tm-testimonial-card__quote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--tm-text-secondary);
    margin: 0 0 24px 0;
    font-style: normal;
}

.tm-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--tm-border-light);
}

.tm-testimonial-card__avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tm-border-light);
}

.tm-testimonial-card__name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--tm-text-primary);
    font-style: normal;
    margin-bottom: 4px;
}

.tm-testimonial-card__title {
    display: block;
    font-size: 14px;
    color: var(--tm-text-muted);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.tm-faq {
    padding: 60px 0;
    background: var(--tm-bg-light);
}

@media (min-width: 768px) {
    .tm-faq {
        padding: 80px 0;
    }
}

.tm-faq__list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.tm-faq__item {
    background: white;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.tm-faq__question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tm-faq__question:hover {
    background: var(--tm-bg-light);
}

.tm-faq__question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--tm-text-primary);
}

.tm-faq__toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
}

.tm-faq__toggle::before,
.tm-faq__toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--tm-primary);
    transition: transform 0.2s ease;
}

.tm-faq__toggle::before {
    width: 14px;
    height: 2px;
}

.tm-faq__toggle::after {
    width: 2px;
    height: 14px;
}

.tm-faq__item--open .tm-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.tm-faq__answer {
    display: none;
    padding: 0 24px 20px;
}

.tm-faq__item--open .tm-faq__answer {
    display: block;
}

.tm-faq__answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--tm-text-secondary);
}

.tm-faq__support {
    text-align: center;
}

.tm-faq__support p {
    font-size: 16px;
    color: var(--tm-text-secondary);
    margin: 0 0 16px 0;
}

/* ========================================
   FINAL CTA
   ======================================== */
.tm-final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--tm-primary) 0%, var(--tm-primary-dark) 100%);
    color: white;
    text-align: center;
}

.tm-final-cta__title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
}

@media (min-width: 768px) {
    .tm-final-cta__title {
        font-size: 42px;
    }
}

.tm-final-cta__text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tm-final-cta__microcopy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 16px 0 0 0;
}

/* ========================================
   STICKY CTA
   ======================================== */
.tm-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--tm-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.tm-sticky-cta--visible {
    transform: translateY(0);
}

.tm-sticky-cta__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.tm-sticky-cta__info strong {
    display: block;
    font-size: 14px;
    color: var(--tm-text-primary);
}

.tm-sticky-cta__info span {
    font-size: 13px;
    color: var(--tm-text-secondary);
}

@media (min-width: 1024px) {
    .tm-sticky-cta {
        display: none;
    }
}