/* Minimal Design System - Apple-Inspired Minimalism for Dyslexia.ai */

:root {
    --accent: #007AFF;
    --accent-hover: #0051D5;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f7;
    --border-radius: 18px;
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   Typography
   =========================== */

.headline-massive {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.headline-large {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.headline-medium {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

.subhead {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
}

.subhead-small {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===========================
   Layout
   =========================== */

.section-minimal {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-minimal {
    padding: 8rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.container-minimal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   Grid Systems
   =========================== */

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

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem auto;
}

/* ===========================
   Glass Card Components (Enhanced Blur)
   =========================== */

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent);
    opacity: 0.5;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(200%) blur(45px);
    -webkit-backdrop-filter: saturate(200%) blur(45px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.8);
}

.glass-card-liquid {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: saturate(200%) blur(40px);
    -webkit-backdrop-filter: saturate(200%) blur(40px);
    border-radius: 30px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card-liquid:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 64px rgba(0, 122, 255, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 40px;
}

/* ===========================
   Buttons
   =========================== */

.btn-minimal {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-standard);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-minimal:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.btn-minimal-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    min-height: 48px;
    max-height: 48px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: var(--transition-standard);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 122, 255, 0.1);
}

.btn-minimal-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* ===========================
   Pricing Cards
   =========================== */

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

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 2px solid #f0f0f0;
    position: relative;
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.15);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.07) translateY(-4px);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0;
    line-height: 1;
}

.pricing-card .price span {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-card .price-detail {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-grow: 1;
}

.pricing-card ul li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.5;
}

.pricing-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.pricing-card .trial-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    text-align: center;
}

/* ===========================
   Testimonials
   =========================== */

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

.testimonial {
    padding: 2.5rem;
}

.testimonial p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial .author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial .author strong {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.testimonial .author span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===========================
   Feature Lists
   =========================== */

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* ===========================
   Integration & Compliance
   =========================== */

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: 900px;
}

.integration-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.integration-item strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.integration-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.compliance-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.compliance-badges .badge {
    background: #34C759;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-standard);
}

.compliance-badges a.badge:hover {
    background: #28A745;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

/* ===========================
   Trust & Social Proof
   =========================== */

.trust-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    text-align: center;
}

/* ===========================
   Animations
   =========================== */

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

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

@keyframes glassAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glass-card {
    animation: glassAppear 0.6s ease-out forwards;
    animation-play-state: paused;
}

.glass-card.animate-in {
    animation-play-state: running;
}

/* Stagger animation for grid items */
.glass-card:nth-child(1) {
    animation-delay: 0.1s;
}

.glass-card:nth-child(2) {
    animation-delay: 0.2s;
}

.glass-card:nth-child(3) {
    animation-delay: 0.3s;
}

.glass-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .section-minimal {
        padding: 4rem 1.5rem;
    }

    .hero-minimal {
        padding: 6rem 1.5rem 4rem;
    }

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

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group .btn-minimal,
    .cta-group .btn-minimal-outline {
        width: 100%;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .headline-massive {
        font-size: 2.5rem;
    }

    .headline-large {
        font-size: 1.875rem;
    }

    .pricing-card .price {
        font-size: 2.5rem;
    }
}

/* ===========================
   Utilities
   =========================== */

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* ===========================
   Platform Preview
   =========================== */

.platform-preview {
    max-width: 1200px;
    margin: 3rem auto;
    text-align: center;
}

.platform-preview img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* ===========================
   3D Models
   =========================== */

.lexy-hero-container {
    position: relative;
    overflow: visible;
}

model-viewer {
    transition: transform 0.3s ease;
}

model-viewer:hover {
    transform: scale(1.05);
}

/* Loading state for 3D models */
model-viewer::part(default-progress-bar) {
    background: linear-gradient(90deg, #007AFF, #5AC8FA);
    height: 4px;
    border-radius: 2px;
}

/* 3D Model containers for decorative elements */
.model-3d-decoration {
    pointer-events: none;
    transition: transform 0.3s ease;
}

.model-3d-decoration:hover {
    transform: scale(1.1);
}

/* Responsive 3D models */
@media (max-width: 768px) {
    .lexy-hero-container model-viewer {
        height: 300px !important;
    }

    /* Reduce size of decorative 3D models on mobile for performance */
    div[style*="position: absolute"] model-viewer {
        width: 60px !important;
        height: 60px !important;
    }

    /* Reduce size of value prop models on mobile */
    .grid-3 model-viewer {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ===========================
   Apple-Style Navigation
   =========================== */

.nav-apple {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05),
                0 4px 16px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    transition: background 0.3s ease,
                box-shadow 0.3s ease,
                backdrop-filter 0.3s ease;
}

.nav-apple-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1),
                0 6px 20px rgba(0, 0, 0, 0.06);
}

.nav-apple-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-apple-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-apple-link {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-apple-link:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.nav-apple-link:active {
    background: rgba(0, 0, 0, 0.08);
}

/* Mobile menu button */
.nav-apple-menu-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.nav-apple-menu-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.nav-apple-menu-btn:active {
    background: rgba(0, 0, 0, 0.08);
}

/* Mobile overlay menu */
.nav-apple-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-apple-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-apple-mobile-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    padding: 1rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav-apple-mobile.active .nav-apple-mobile-content {
    transform: translateY(0);
}

.nav-apple-mobile-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.nav-apple-mobile-close {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1;
    transition: background 0.2s ease;
}

.nav-apple-mobile-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.nav-apple-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem 2rem;
}

.nav-apple-mobile-link {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-apple-mobile-link:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-apple-links {
        display: none;
    }

    .nav-apple-menu-btn {
        display: block;
    }
}

@media (min-width: 769px) {
    .nav-apple-menu-btn {
        display: none;
    }
}

/* ===========================
   3D Model Viewer Styles
   =========================== */

/* Remove hand/grab cursor from 3D models */
model-viewer {
    cursor: default !important;
}
