/* Main Landing Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9d0a0e;
    --primary-dark: #7b0508;
    --primary-light: #f15a22;
    --secondary: #f15a22;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-2: linear-gradient(135deg, #059669 0%, #047857 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

/* Header */
.landing-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(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}

.logo i {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.admin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 8px;
    color: var(--gray-700) !important;
    transition: all 0.2s ease;
}

.admin-link:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* Main Content */
.landing-main {
    padding-top: 80px;
}

/* New Hero Styles from Image */
.hero-section {
    padding: 2rem 0 0 0;
    background: #fff;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Geometric Background Effect */
.hero-bg-geometric {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M0,800 L500,400 L1000,800 L1000,1000 L0,1000 Z" fill="%239d0a0e" opacity="0.05"/></svg>');
    background-size: cover;
    background-position: bottom;
    z-index: 1;
    pointer-events: none;
}

/* Also add a subtle red triangle at the bottom left to match image */
.hero-bg-geometric::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: var(--primary);
    transform: rotate(15deg);
    opacity: 0.1;
    filter: blur(50px);
}

.hero-container-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.hero-visual-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-visual-logo img {
    width: 100%;
    max-width: 280px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-name {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.brand-tagline {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 500;
}

.hcp-badge {
    font-weight: 800;
    color: #444;
    letter-spacing: 1px;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-main-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.35rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    max-width: 500px;
}

.chat-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.8rem;
    background: linear-gradient(180deg, #b01a1e 0%, #8b080b 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 10px 25px rgba(157, 10, 14, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-cta-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(157, 10, 14, 0.5);
}

.chat-cta-btn i {
    font-size: 1.4rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Chat Preview */
.chat-preview {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.chat-header {
    background: var(--gradient);
    color: var(--white);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.chat-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.chat-status {
    font-size: 0.875rem;
    opacity: 0.9;
}

.chat-messages {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot .message-bubble {
    background: var(--gray-100);
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Sections */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

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

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

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

/* Demo Section */
.demo-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.demo-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.demo-text p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.demo-features {
    list-style: none;
    margin-bottom: 2rem;
}

.demo-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--gray-700);
}

.demo-features i {
    color: var(--success);
    font-size: 1.2rem;
}

/* Score Preview */
.score-preview {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    margin: 0 auto;
}

.score-header {
    text-align: center;
    margin-bottom: 2rem;
}

.score-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    min-width: 120px;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 2s ease;
}

.score-percent {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-stat .stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.about-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.about-stat .stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 200px;
    height: 200px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: var(--shadow-xl);
}

/* Footer */
.landing-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo i {
    width: 32px;
    height: 32px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 1024px) {

    .hero-content,
    .demo-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .demo-text h2,
    .about-text h2 {
        font-size: 2rem;
    }

    .about-stats {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .section-content {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .chat-preview {
        max-width: 100%;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .score-preview {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* ============================================
   RESPONSIVE LOGO STYLES FOR LANDING PAGE
   ============================================ */

.logo img,
.footer-logo img,
.chat-avatar img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ============================================
   MOBILE RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    .landing-header {
        padding: 0.75rem 1rem;
    }

    .header-content {
        gap: 1rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .logo span {
        font-size: 1rem;
        font-weight: 700;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .admin-link {
        padding: 0.4rem 0.6rem;
    }

    .hero-section {
        padding: 1rem;
        margin-top: 3.5rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-large {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stat {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .chat-preview {
        max-height: 300px;
    }

    .chat-header {
        padding: 0.75rem;
    }

    .chat-avatar img {
        width: 32px;
        height: 32px;
    }

    .chat-name {
        font-size: 0.9rem;
    }

    .chat-status {
        font-size: 0.75rem;
    }

    .chat-messages {
        padding: 0.75rem;
    }

    .message-bubble {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .demo-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .demo-text h2 {
        font-size: 1.4rem;
    }

    .demo-text p {
        font-size: 0.9rem;
    }

    .demo-features li {
        font-size: 0.85rem;
    }

    .score-preview {
        padding: 1rem;
    }

    .score-header h3 {
        font-size: 1rem;
    }

    .score-value {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.4rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .about-image {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-logo img {
        width: 32px;
        height: 32px;
    }

    .footer-logo span {
        font-size: 0.95rem;
    }
}

/* Small Devices (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .landing-header {
        padding: 1rem;
    }

    .header-content {
        gap: 1.5rem;
    }

    .logo {
        gap: 0.75rem;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .logo span {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .hero-section {
        padding: 1.5rem;
        margin-top: 4rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: row;
        gap: 1rem;
    }

    .btn-large {
        padding: 0.85rem 1.2rem;
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .chat-preview {
        max-height: 350px;
    }

    .chat-header {
        padding: 1rem;
    }

    .chat-avatar img {
        width: 36px;
        height: 36px;
    }

    .chat-name {
        font-size: 1rem;
    }

    .chat-status {
        font-size: 0.8rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    .message-bubble {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

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

    .feature-card {
        padding: 1.2rem;
    }

    .feature-icon {
        font-size: 2.2rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .demo-content {
        flex-direction: row;
        gap: 2rem;
    }

    .demo-text h2 {
        font-size: 1.6rem;
    }

    .demo-text p {
        font-size: 0.95rem;
    }

    .demo-features li {
        font-size: 0.9rem;
    }

    .score-preview {
        padding: 1.2rem;
    }

    .score-header h3 {
        font-size: 1.1rem;
    }

    .score-value {
        font-size: 2.3rem;
    }

    .about-content {
        flex-direction: row;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-image {
        font-size: 3.5rem;
    }

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

    .footer-logo img {
        width: 36px;
        height: 36px;
    }

    .footer-logo span {
        font-size: 1rem;
    }
}

/* Medium Devices (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .landing-header {
        padding: 1.2rem 1.5rem;
    }

    .header-content {
        gap: 2rem;
    }

    .logo {
        gap: 0.8rem;
    }

    .logo img {
        width: 38px;
        height: 38px;
    }

    .logo span {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
    }

    .hero-section {
        padding: 2rem;
        margin-top: 4.5rem;
    }

    .hero-content {
        flex-direction: row;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: row;
        gap: 1.2rem;
    }

    .btn-large {
        padding: 0.9rem 1.4rem;
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
    }

    .stat {
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .chat-preview {
        max-height: 400px;
    }

    .chat-header {
        padding: 1.2rem;
    }

    .chat-avatar img {
        width: 38px;
        height: 38px;
    }

    .chat-name {
        font-size: 1.05rem;
    }

    .chat-status {
        font-size: 0.85rem;
    }

    .chat-messages {
        padding: 1.2rem;
    }

    .message-bubble {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.4rem;
    }

    .feature-icon {
        font-size: 2.4rem;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .demo-content {
        flex-direction: row;
        gap: 2.5rem;
    }

    .demo-text h2 {
        font-size: 1.8rem;
    }

    .demo-text p {
        font-size: 1rem;
    }

    .demo-features li {
        font-size: 0.95rem;
    }

    .score-preview {
        padding: 1.4rem;
    }

    .score-header h3 {
        font-size: 1.2rem;
    }

    .score-value {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: row;
        gap: 2.5rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-image {
        font-size: 4rem;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .footer-logo img {
        width: 38px;
        height: 38px;
    }

    .footer-logo span {
        font-size: 1.05rem;
    }
}

/* Large Devices (1025px and above) */
@media (min-width: 1025px) {
    .landing-header {
        padding: 1.5rem 2rem;
    }

    .header-content {
        gap: 2.5rem;
    }

    .logo {
        gap: 1rem;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo span {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .nav-menu {
        gap: 2rem;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }

    .hero-section {
        padding: 2.5rem;
        margin-top: 5rem;
    }

    .hero-content {
        flex-direction: row;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.3rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: row;
        gap: 1.5rem;
    }

    .btn-large {
        padding: 1rem 1.6rem;
        font-size: 1.05rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 2rem;
    }

    .stat {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.9rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .chat-preview {
        max-height: 450px;
    }

    .chat-header {
        padding: 1.5rem;
    }

    .chat-avatar img {
        width: 40px;
        height: 40px;
    }

    .chat-name {
        font-size: 1.1rem;
    }

    .chat-status {
        font-size: 0.9rem;
    }

    .chat-messages {
        padding: 1.5rem;
    }

    .message-bubble {
        font-size: 1rem;
        padding: 1rem;
    }

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

    .feature-card {
        padding: 1.6rem;
    }

    .feature-icon {
        font-size: 2.6rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .demo-content {
        flex-direction: row;
        gap: 3rem;
    }

    .demo-text h2 {
        font-size: 2rem;
    }

    .demo-text p {
        font-size: 1.05rem;
    }

    .demo-features li {
        font-size: 1rem;
    }

    .score-preview {
        padding: 1.6rem;
    }

    .score-header h3 {
        font-size: 1.3rem;
    }

    .score-value {
        font-size: 2.8rem;
    }

    .about-content {
        flex-direction: row;
        gap: 3rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1.05rem;
    }

    .about-image {
        font-size: 4.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .footer-logo img {
        width: 40px;
        height: 40px;
    }

    .footer-logo span {
        font-size: 1.1rem;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {

    .nav-menu a,
    .btn-large,
    .feature-card {
        min-height: 44px;
        min-width: 44px;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        min-height: 48px;
    }

    /* Improve touch targets on mobile */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .social-links a {
        min-height: 48px;
        min-width: 48px;
    }

    /* Reduce animations on touch devices */
    .feature-card:hover {
        transform: none;
    }

    .chat-preview {
        animation: none;
    }
}

/* Safe Area Insets for Notched Devices */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0, env(safe-area-inset-left));
        padding-right: max(0, env(safe-area-inset-right));
    }

    .landing-footer {
        padding-bottom: max(4rem, env(safe-area-inset-bottom));
        /* Increased to clear the fixed news-bar */
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .logo img,
    .footer-logo img,
    .chat-avatar img {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    }
}

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

/* News Bar / Disclaimer Bar Styles */
.news-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(157, 10, 14, 0.2);
    padding: 10px 0;
    overflow: hidden;
    z-index: 100;
}

.news-bar-content {
    display: inline-flex;
    white-space: nowrap;
    animation: newsTicker 80s linear infinite;
    gap: 4rem;
}

.news-bar-text {
    font-size: 0.85rem;
    color: #475569;
    /* Darker slate gray */
    font-weight: 500;
}

.news-bar-text b {
    color: #000;
    /* Pure black for bold parts */
    font-weight: 700;
}

.news-bar:hover .news-bar-content {
    animation-play-state: paused;
}

@keyframes newsTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50.5%);
        /* Move by half the content + some gap adjust */
    }
}