/*
    CSS for the DrDictation Landing Page
    - Extracted from inline <style> block
    - Cleaned and consolidated for performance and maintainability
*/

/*================================================
  0. ROOT VARIABLES & GLOBAL STYLES
=================================================*/
:root {
    --primary-gradient: linear-gradient(120deg, #4361ee, #3a0ca3);
    --secondary-gradient: linear-gradient(120deg, #4cc9f0, #4895ef);
    --accent-color: #4cc9f0;
    --dark-accent: #4361ee;
    --text-color: #2b2d42;
    --light-text: #6c757d;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

section {
    padding: 6rem 0;
}

/*================================================
  1. TYPOGRAPHY & HEADINGS
=================================================*/
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-transform: capitalize;
    letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 3rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

/*================================================
  2. UI COMPONENTS (Badges, Buttons)
=================================================*/
.badge-accent {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.badge-pill-outline {
    border: 2px solid var(--accent-color);
    color: var(--dark-accent);
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4cc9f0, #3a86ff);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0px 10px 30px rgba(76, 201, 240, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0px 15px 35px rgba(76, 201, 240, 0.3);
}

.btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: white;
    transform: translateY(-3px);
}

/*================================================
  3. ANIMATIONS
=================================================*/
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

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

/*================================================
  4. SECTION STYLES
=================================================*/

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(33, 69, 128, 0.85) 10%, rgba(48, 97, 165, 0.85) 90%);
    backdrop-filter: blur(12px);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(48, 97, 165, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    position: relative;
    text-transform: capitalize;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-in-out;
}

.hero-title span {
    background: linear-gradient(90deg, #4cc9f0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 25px rgba(76, 201, 240, 0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 2rem;
    text-shadow: 0px 2px 8px rgba(255, 255, 255, 0.15);
    animation: fadeInUp 1.2s ease-in-out;
}

.hero-cta {
    margin-top: 1.5rem;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-note {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 1.5rem;
    position: relative;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2b2d42;
}

.step-card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Demo Section */
.demo-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.demo-wrapper {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

.demo-wrapper video {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--hover-shadow);
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--dark-accent);
    width: 60px;
    height: 60px;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-icon .step-icon {
    transition: transform 0.3s ease;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.feature-desc {
    color: var(--light-text);
    line-height: 1.6;
}

/* Specialties Section */
.specialties {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.specialty-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.specialty-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.specialty-links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.specialty-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.specialty-links a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 6px 16px rgba(15, 31, 43, 0.08);
}

/* Comparison Section */
.comparison {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.comparison-table {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.comparison-header {
    display: flex;
    background-color: var(--dark-accent);
    color: white;
    font-weight: 700;
    text-align: center;
    font-size: 1.3rem;
}

.comparison-header div {
    flex: 1;
    padding: 1.8rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.comparison-header div:last-child {
    border-right: none;
}

.comparison-header .comparison-category {
    background-color: var(--dark-accent);
    color: white;
    font-weight: 700;
    text-align: left;
}

.comparison-header .comparison-us {
    color: #ffffff;
}

.comparison-row {
    display: flex;
    border-bottom: 1px solid #e9ecef;
}

.comparison-category {
    flex: 1;
    font-weight: 600;
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
    text-align: left;
    border-right: 1px solid #dee2e6;
}

.comparison-competitor,
.comparison-us {
    flex: 1;
    padding: 1.5rem 2rem;
    text-align: center;
}

.comparison-us {
    font-weight: 700;
    background: rgba(67, 97, 238, 0.05);
    color: var(--dark-accent);
}

.comparison-us:hover {
    background: rgba(67, 97, 238, 0.1);
}

.check-icon {
    color: #10b981;
    font-size: 1.2rem;
}

.times-icon {
    color: #ef4444;
    font-size: 1.2rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.price-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.price-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 1;
}

.price-card.featured:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.most-popular {
    position: absolute;
    top: -12px;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--dark-accent);
}

.price-period {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: normal;
}

.price-card.featured .price-amount {
    color: var(--accent-color);
}

.price-features {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.price-features li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    color: var(--light-text);
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.btn-pricing.primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-pricing.secondary {
    background-color: white;
    color: var(--dark-accent);
    border: 2px solid var(--dark-accent);
}

.top-up-section {
    margin-top: 4rem;
}

.top-up-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--accent-color);
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-top: 2rem;
}

.testimonial-text::before {
    content: "“";
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: rgba(67, 97, 238, 0.1);
    font-family: serif;
}

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

.testimonial-role {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Blog Preview Section */
.blog-preview {
    padding: 5rem 0;
    background: #ffffff;
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.faq-answer {
    color: var(--light-text);
    padding: 0 2rem 1.5rem 2rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #3061A5 0%, #214580 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    margin: 5rem auto 3rem;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    max-width: 95%;
    box-shadow: 0 20px 60px rgba(48, 97, 165, 0.15);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.cta-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.btn-cta-large {
    background-color: white;
    color: #3061A5;
    font-size: 1.1rem;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-cta-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-cta-large:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: #3061A5;
}

.btn-cta-large:hover::before {
    transform: translateX(100%);
}

.free-trial-badge {
    display: inline-block;
    background-color: #10b981;
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    font-weight: bold;
    vertical-align: middle;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}


/*================================================
  5. RESPONSIVE MEDIA QUERIES
=================================================*/

@media (max-width: 1200px) {
    .feature-grid, .pricing-grid, .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .hero-cta a.btn {
        width: 100%;
        max-width: 300px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .specialty-grid {
        grid-template-columns: 1fr;
    }
    .hero-mask {
        clip-path: polygon(45% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    .price-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .comparison-table {
        display: block;
    }
    .comparison-header {
        display: none;
    }
    .comparison-row {
        display: flex;
        flex-direction: column;
        margin-bottom: 1.5rem;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    .comparison-category {
        background-color: var(--dark-accent);
        color: white;
        padding: 0.75rem 1rem;
        font-weight: 700;
        font-size: 1.1rem;
        text-align: center;
        border: none;
        order: -1;
    }
    .comparison-competitor,
    .comparison-us {
        width: 100%;
        padding: 1rem;
        text-align: center;
        border: none;
        position: relative;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .comparison-competitor::before,
    .comparison-us::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
        color: #666;
    }
    .comparison-us {
        background-color: rgba(67, 97, 238, 0.05);
        color: var(--dark-accent);
        font-weight: 500;
    }
    .hero {
        padding: 4rem 0 3rem;
    }
    .hero-mask {
        width: 100%;
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
        opacity: 0.1;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .feature-grid, .pricing-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .hero-stat-container {
        flex-direction: column;
    }
    .hero-stat {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .pricing-grid {
        gap: 1.5rem;
    }
    .testimonial-text {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    .faq-question {
        padding: 1rem 1rem;
    }
    .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
}
