/* BizMagnet New Landing Page Styles */

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #EC4899;
    --accent: #F59E0B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --success: #10B981;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    /* Safe area support for notched devices */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 24px;
}

.brand-text {
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.hero-personalization {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-beginner-friendly {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

.trust-line {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
    text-align: center;
}

.btn-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
}

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

.hero-credibility {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}


/* Chat Preview Card */
.chat-preview-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-name {
    font-weight: 600;
    font-size: 16px;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
}

.chat-messages {
    padding: 24px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    line-height: 1.5;
}

.chat-message.bot {
    background: var(--bg-tertiary);
    align-self: flex-start;
}

.chat-message.user {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    align-self: flex-end;
}

.chat-typing {
    display: flex;
    gap: 4px;
    align-self: flex-start;
    padding: 12px 16px;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Section Styles */
.section-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    transition: var(--transition);
}

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

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 24px;
}

.step-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Income Paths */
.income-paths {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.path-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

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

.path-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.path-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.path-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.path-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.paths-cta {
    text-align: center;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

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

.testimonial-role {
    font-size: 14px;
    color: var(--text-muted);
}

/* Pricing Teaser */
.pricing-teaser {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

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

.pricing-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.pricing-content > p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.pricing-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-feature {
    font-size: 16px;
    opacity: 0.95;
}

.pricing-note {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 8px;
}

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

.footer-column h4 {
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.mentor-modal {
    max-width: 800px;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Auth Form */
.modal-header {
    padding: 32px 32px 0;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-form {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
}

.auth-switch {
    text-align: center;
    padding: 0 32px 32px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Mentor Chat Modal */
.mentor-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 85vh;
    overflow: hidden;
}

.mentor-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.mentor-messages {
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100px;
    max-height: 250px;
}

.mentor-options {
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-secondary);
    max-height: 350px;
    overflow-y: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for options */
.mentor-options::-webkit-scrollbar {
    width: 8px;
}

.mentor-options::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.mentor-options::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.mentor-options::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.option-btn {
    background: white;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.option-btn:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
    transform: translateX(4px);
}

.mentor-signup {
    padding: 32px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.signup-prompt {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
}

/* Mentor Input Container */
.mentor-input-container {
    padding: 16px 32px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mentor-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.mentor-text-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
    resize: vertical;
    vertical-align: top;
    text-align: left;
    line-height: 1.5;
}

.mentor-text-input::placeholder {
    color: var(--text-muted);
}

textarea.mentor-text-input,
textarea.intake-textarea {
    min-height: 80px;
    padding-top: 12px !important;
    padding-bottom: 12px;
    padding-left: 16px !important;
    padding-right: 16px !important;
    text-align: left !important;
    text-align-last: left !important;
    -moz-text-align-last: left !important;
    align-content: flex-start;
    display: block;
    vertical-align: top !important;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.5;
}

textarea.mentor-text-input::first-line,
textarea.intake-textarea::first-line {
    text-align: left !important;
}

/* Force textarea content to start at top */
textarea.mentor-text-input,
textarea.intake-textarea {
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
}

/* Ensure cursor starts at top */
textarea.intake-textarea:focus {
    outline: none;
    text-align: left !important;
}

textarea.intake-textarea::placeholder {
    text-align: left;
}

.mentor-text-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-send {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-send:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mentor-input-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* Chat message user style */
.mentor-messages .chat-message.user {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    align-self: flex-end;
    margin-left: auto;
    max-width: 80%;
}

.mentor-messages .chat-message.bot {
    background: var(--bg-tertiary);
    align-self: flex-start;
    max-width: 80%;
}

/* Cross-Browser Compatibility Enhancements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Touch-friendly buttons for mobile */
button,
.btn-primary,
.btn-secondary,
.btn-hero,
.btn-link {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    touch-action: manipulation;
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    cursor: pointer;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Course Generation Progress Bar */
.course-generation-progress {
    margin-top: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.progress-bar-container {
    width: 100%;
    height: 32px;
    background: #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #818CF8, #EC4899);
    border-radius: 16px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.progress-bar-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-percentage {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #6366F1;
    margin-top: 12px;
    font-variant-numeric: tabular-nums;
}

.progress-status-text {
    text-align: center;
    font-size: 14px;
    color: #6366F1;
    font-weight: 500;
    margin-top: 8px;
    min-height: 20px;
}

/* Improved form inputs for mobile */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--radius-md);
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-tap-highlight-color: transparent;
}

/* Fix for iOS input zoom */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Enhanced transitions with vendor prefixes */
.transition,
.btn-primary,
.btn-secondary,
.btn-hero,
.card,
.feature-card,
.path-card {
    -webkit-transition: var(--transition);
    -moz-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

/* Transform with vendor prefixes */
.transform-hover:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* Flexbox with vendor prefixes for older browsers */
.flex-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
}

/* Grid with fallback for older browsers */
.grid-container {
    display: -webkit-box;
    display: -ms-grid;
    display: grid;
}

/* Safe area padding for notched devices */
@supports (padding: max(0px)) {
    body {
        padding-top: max(env(safe-area-inset-top), 0px);
        padding-bottom: max(env(safe-area-inset-bottom), 0px);
        padding-left: max(env(safe-area-inset-left), 0px);
        padding-right: max(env(safe-area-inset-right), 0px);
    }
    
    .navbar {
        padding-top: max(env(safe-area-inset-top), 16px);
        padding-bottom: max(env(safe-area-inset-bottom), 16px);
    }
}

/* Responsive Breakpoints */
/* Tablet and below */
@media screen and (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
    }
    
    .hero-title {
        font-size: 42px;
        line-height: 1.2;
    }
    
    .steps-grid,
    .paths-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        min-height: 44px;
        min-width: 44px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Improved touch targets */
    .nav-links a,
    .btn-link {
        padding: 12px 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile devices */
@media screen and (max-width: 640px) {
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .pricing-features {
        grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
    }
    
    .btn-hero {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .step-card,
    .path-card,
    .feature-card,
    .testimonial-card {
        padding: 24px 20px;
    }
    
    .modal-content {
        max-width: 95vw;
        margin: 20px 10px;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Small mobile devices (iPhone SE, etc.) */
@media screen and (max-width: 375px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .container {
        padding: 0 12px;
    }
}

/* Landscape orientation adjustments */
@media screen and (max-width: 968px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhanced rendering for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .btn-hero,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

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

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if needed */
}

