/* Lifetrails AI - Modern CSS without dependencies */
/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #7C29FF;
    --primary-dark: #6a1ee6;
    --secondary-color: #44B3FF;
    --accent-color: #48bb78;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --background: #ffffff;
    --background-light: #f7fafc;
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* Section Spacing */
section {
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(75deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Navigation */
.nav {
    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-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .nav-container {
        padding: var(--space-sm) var(--space-lg);
    }
}

.nav-left {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

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

.nav-cta {
    background: linear-gradient(75deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000; /* Dark fallback if video doesn't load */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.fallback-content {
    text-align: center;
    color: white;
}

/* Fallback for smaller screens */
@media (max-aspect-ratio: 16/9) {
    .hero-video {
        width: 177.77vh;
        height: 100vh;
    }
}

@media (min-aspect-ratio: 16/9) {
    .hero-video {
        width: 100vw;
        height: 56.25vw;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Much lighter overlay so video shows through */
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    max-width: 800px;
    padding: 0 var(--space-sm);
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    background: var(--background-light);
    padding: var(--space-2xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xl);
    color: white;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-card p {
    line-height: 1.7;
}

/* Preview Section */
.preview {
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    .preview {
        padding: 5rem 0;
    }
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.preview-text h2 {
    margin-bottom: var(--space-md);
}

.preview-text p {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.preview-features {
    list-style: none;
}

.preview-features li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.preview-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: var(--space-xs);
}

.preview-image {
    text-align: center;
}

.preview-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .preview-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* CTA Section */
.cta {
    background: linear-gradient(75deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    .cta {
        padding: 5rem 0;
    }
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
}

.signup-form {
    margin-top: var(--space-xl);
}

.form-group {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto;
}

.form-group input {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group button {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.form-group button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.form-note {
    font-size: 0.875rem;
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
    }
}

/* FAQ Section */
.faq {
    background: var(--background-light);
    padding: var(--space-2xl) 0;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .faq-container {
        padding: 0 var(--space-lg);
    }
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-lg);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Increased for longer answers */
}

/* Footer */
.footer {
    background: linear-gradient(75deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    .footer {
        padding: 5rem 0;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 150px;
    height: 40px;
    margin-bottom: var(--space-md);
    object-fit: contain;
    object-position: left center;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-fast);
    transform: translateX(0) !important; /* Override footer link hover */
}

.social-links a svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    margin: 0;
    padding: 0;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-4px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.footer-brand img {
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-column h4 {
    margin-bottom: var(--space-sm);
    color: white;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: var(--space-xs);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

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

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

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Performance optimizations */
* {
    will-change: auto;
}

.hero-video {
    will-change: transform;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */
.btn:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav,
    .hero-video,
    .cta {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   TOPIC LANDING PAGES
   ======================================== */

/* Topic Hero Section */
.topic-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: calc(var(--space-2xl) * 2) 0 var(--space-2xl);
    text-align: center;
    color: white;
    margin-top: 70px; /* Account for fixed nav */
}

.topic-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.topic-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.topic-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    line-height: 1.6;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

/* Topic Intro Section */
.topic-intro {
    padding: var(--space-2xl) 0;
    background: white;
}

.topic-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.topic-intro-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.topic-intro-text {
    margin-bottom: var(--space-xl);
}

.topic-intro-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
    font-size: 1.0625rem;
}

.topic-intro-text p:last-child {
    margin-bottom: 0;
}

.topic-intro-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.topic-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Topic Features Section */
.topic-features {
    padding: var(--space-2xl) 0;
    background: var(--background-light);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: var(--space-2xl);
}

.topic-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.topic-feature-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.topic-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.topic-feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

.topic-feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.topic-feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Topic CTA with Image */
.topic-cta-image {
    padding: var(--space-2xl) 0;
    background: white;
}

.topic-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.topic-cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.topic-cta-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    font-size: 1.0625rem;
}

.topic-cta-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.topic-cta-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Topic Landing Page Responsive */
@media (max-width: 1024px) {
    .topic-intro-grid,
    .topic-cta-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .topic-intro-image,
    .topic-cta-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .topic-hero {
        padding: var(--space-2xl) 0 var(--space-xl);
    }
    
    .topic-features-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-intro,
    .topic-features,
    .topic-cta-image {
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 480px) {
    .topic-hero h1 {
        font-size: 1.75rem;
    }
    
    .topic-hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: var(--space-sm) var(--space-lg);
        font-size: 1rem;
        width: 100%;
    }
}