@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Premium Design System */
:root {
    --bg-main: #0f172a;        /* Deep Slate Blue */
    --bg-card: #1e293b;        /* Dark Slate Card Background */
    --bg-card-hover: #2b3a53;  /* Slightly lighter card on hover */
    --border-color: #334155;   /* Slate 700 Border */
    --text-primary: #f8fafc;   /* White/Slate 50 */
    --text-secondary: #94a3b8; /* Muted Slate 400 */
    
    --color-primary: #667eea;   /* Indigo Accent */
    --color-secondary: #5a67d8; /* Secondary Blue Accent */
    --color-success: #10b981;   /* Emerald Green */
    --color-danger: #ef4444;    /* Red for Old Way */
}

/* Global Reset and Typography */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

/* Injected Header/Navbar Glassmorphic Styling */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
    padding: 15px 40px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    max-height: 48px !important;
    width: auto;
}

.logo-text {
    max-height: 24px !important;
    width: auto;
}

.app-tagline {
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
    font-weight: 400 !important;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 24px !important;
}

.navbar-right a {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease !important;
}

.navbar-right a:hover {
    color: var(--text-primary) !important;
}

/* Main Layout Setup */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sections General */
section {
    padding: 80px 0;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
}

/* Subtle background glow for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 950px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.5;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.price-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

.price-subtext span {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-target-audience {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 36px;
    letter-spacing: -0.015em;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mockup Container */
.hero-mockup {
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    margin-top: 20px;
    background-color: #0b0f19;
}

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

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* The Matrix: Old Way vs Our Way */
.matrix-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    border-bottom: 1px solid var(--border-color);
}

.matrix-grid:last-child {
    border-bottom: none;
}

.matrix-header {
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.matrix-cell {
    padding: 24px 32px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.matrix-cell:last-child {
    border-right: none;
}

.matrix-label {
    font-weight: 600;
    color: var(--text-primary);
}

.matrix-cell.old-way {
    color: var(--text-secondary);
    border-left: 3px solid var(--color-danger);
    background-color: rgba(239, 68, 68, 0.01);
}

.matrix-cell.new-way {
    color: #e2e8f0;
    border-left: 3px solid var(--color-success);
    background-color: rgba(16, 185, 129, 0.02);
}

.matrix-cell.new-way strong {
    color: var(--text-primary);
}

/* Matrix Icons/Accents */
.matrix-badge-old {
    color: var(--color-danger);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.matrix-badge-new {
    color: var(--color-success);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Feature Showcase Grid */
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-block {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.feature-info {
    display: flex;
    flex-direction: column;
}

.feature-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.feature-heading {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    line-height: 1.25;
    margin-bottom: 18px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e2e8f0;
}

.feature-bullets li::before {
    content: '✦';
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-top: 2px;
}

.feature-media {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background-color: #0b0f19;
    transition: transform 0.4s ease;
}

.feature-media:hover {
    transform: scale(1.02);
}

.feature-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature collage container */
.feature-media.collage-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.collage-bg, .collage-fg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background-color: #0b0f19;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.collage-bg:hover, .collage-fg:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

/* Testimonial / Ratings Overrides */
#ratings-hero-title {
    font-size: clamp(2rem, 3vw, 2.75rem) !important;
    text-align: center;
    margin-top: 80px !important;
    margin-bottom: 20px !important;
}

.ratings-carousel-container {
    max-width: 1000px !important;
    margin: 20px auto 80px auto !important;
    overflow: hidden;
    position: relative;
    padding: 20px 0 !important;
}

.ratings-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
    padding: 10px;
}

.rating-card {
    flex: 0 0 calc(33.333% - 20px) !important;
    background: var(--bg-card) !important;
    padding: 30px !important;
    border-radius: 14px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
}

.rating-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary) !important;
}

.rating-stars {
    color: #fbbf24 !important; /* Premium Gold */
    font-size: 1.15rem !important;
    margin-bottom: 12px !important;
}

.rating-comment {
    color: var(--text-primary) !important;
    font-style: italic;
    margin-bottom: 20px !important;
    flex-grow: 1;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

.rating-user {
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 14px !important;
    font-size: 0.85rem !important;
}

/* Call to Action Section */
.final-cta {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 80px 40px;
    margin: 80px 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 60%);
    pointer-events: none;
    z-index: -1;
}

.cta-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px auto;
}

/* Injected Footer Styling */
footer {
    background-color: #090d16 !important;
    border-top: 1px solid rgba(51, 65, 85, 0.5) !important;
    padding: 50px 20px !important;
    margin-top: 60px !important;
    color: var(--text-secondary) !important;
    text-align: center;
    box-sizing: border-box;
}

footer p {
    margin: 0 0 15px 0 !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
}

footer nav {
    margin-bottom: 15px;
}

footer nav a {
    color: #cbd5e1 !important;
    text-decoration: none;
    margin: 0 15px !important;
    font-size: 0.9rem !important;
    transition: color 0.2s ease;
}

footer nav a:hover {
    color: var(--color-primary) !important;
    text-decoration: none !important;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 24px !important;
    }
    
    .matrix-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .matrix-header {
        display: none; /* Hide header on mobile/tablet grid */
    }
    
    .matrix-cell:nth-child(3n-2) {
        grid-column: span 2;
        background-color: rgba(255, 255, 255, 0.05);
        font-weight: 700;
        font-size: 1rem;
        border-right: none;
        border-bottom: none;
        padding: 14px 24px;
    }
    
    .matrix-cell.old-way {
        border-left: 3px solid var(--color-danger);
    }
    
    .matrix-cell.new-way {
        border-left: 3px solid var(--color-success);
        border-right: none;
    }
    
    .feature-block, .feature-block.reversed {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-block.reversed .feature-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .navbar-right {
        gap: 16px !important;
    }
    
    .app-tagline {
        display: none !important;
    }
    
    .rating-card {
        flex: 0 0 calc(50% - 15px) !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        justify-content: center;
        flex-direction: column;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    .navbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .matrix-grid {
        grid-template-columns: 1fr;
    }
    
    .matrix-cell:nth-child(3n-2) {
        grid-column: span 1;
    }
    
    .matrix-cell.new-way {
        border-bottom: 2px solid var(--border-color);
    }
    
    .rating-card {
        flex: 0 0 100% !important;
    }
    
    .final-cta {
        padding: 40px 20px;
    }
}
