/* ===================================
   TechTrendsNowAdvance Stylesheet
   Single-page tech trends landing
   =================================== */

/* ===== CSS Variables ===== */
:root {
    --primary: #2563EB;
    --accent: #06B6D4;
    --support: #8B5CF6;
    --text: #0B1220;
    --text-secondary: #475569;
    --bg: #F6F8FC;
    --bg-white: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ===== Header ===== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.nav-main {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.signal-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.signal-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.panel-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-tile {
    text-align: center;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.kpi-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.trend-ticker {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.ticker-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.ticker-text {
    flex: 1;
    color: var(--text);
}

.ticker-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Highlights Strip ===== */
.highlights-strip {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--border);
}

.highlights-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.highlight-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.chip-icon {
    font-size: 18px;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ===== Trends Section ===== */
.trends-section {
    padding: 100px 0;
}

.filter-chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trend-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.trend-card.hidden {
    display: none;
}

.trend-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trend-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.trend-content {
    padding: 20px;
}

.trend-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.trend-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.trend-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Insights Section ===== */
.insights-section {
    padding: 100px 0;
    background: white;
}

.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 16px 32px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.insight-list {
    list-style: none;
}

.insight-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    line-height: 1.7;
}

.insight-list li:last-child {
    border-bottom: none;
}

.insight-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ===== Solutions Section ===== */
.solutions-section {
    padding: 100px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.solution-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.solution-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.solution-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.solution-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.solution-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.workflow-stepper {
    background: white;
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stepper-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 32px;
}

.stepper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.step-line {
    width: 120px;
    height: 2px;
    background: var(--border);
    margin: 0 -4px;
    margin-bottom: 32px;
}

/* ===== Benchmarks Section ===== */
.benchmarks-section {
    padding: 100px 0;
    background: white;
}

.benchmarks-content {
    max-width: 900px;
    margin: 0 auto;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.counter-box {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--border);
}

.counter-value {
    display: inline-block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.counter-suffix {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-left: 4px;
}

.counter-label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-group {
    margin-bottom: 60px;
}

.progress-item {
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-label {
    font-weight: 600;
    font-size: 15px;
}

.progress-percent {
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    height: 12px;
    background: var(--border);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 50px;
    width: 0;
    transition: width 1.5s ease;
}

.timeline-section {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius);
}

.timeline-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 32px;
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    width: 2px;
    height: calc(100% + 28px);
    background: var(--border);
}

.timeline-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.timeline-quarter {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
}

.author-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Pricing Section ===== */
.pricing-section {
    padding: 100px 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg);
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    background: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-tier {
    font-size: 24px;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.price-currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 56px;
    font-weight: 700;
    color: var(--text);
    margin: 0 4px;
}

.price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.info-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.info-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    resize: vertical;
}

.form-success {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
    background: var(--text);
    color: #94A3B8;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-title {
    color: white;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-newsletter-text {
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #334155;
    border-radius: var(--radius-sm);
    background: transparent;
    color: white;
    font-size: 14px;
}

.newsletter-input::placeholder {
    color: #64748B;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trends-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-main {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        gap: 16px;
    }

    .nav-main.active {
        transform: translateY(0);
        opacity: 1;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .trends-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .stepper-container {
        flex-direction: column;
    }

    .step-line {
        width: 2px;
        height: 40px;
        margin: -4px 0;
    }

    .counters-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .tabs-nav {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .trends-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        flex-direction: column;
    }

    .filter-chips {
        flex-direction: column;
    }

    .hero-title {
        font-size: 28px;
    }
}
