/* Root Variables */
:root {
    --primary-accent: #a78bfa;
    --secondary-accent: #818cf8;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --border-radius-xl: 24px;
    --border-radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utils */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Ripple effect overlay */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Shine effect */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #14B8A6 0%, #4F46E5 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.40);
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.55);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.35), 0 12px 32px rgba(79, 70, 229, 0.40);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.btn-ghost:active {
    transform: translateY(-1px) scale(0.98);
    background: rgba(255, 255, 255, 0.2);
}

.btn-ghost:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), 0 10px 28px rgba(0, 0, 0, 0.2);
}

/* 1) Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 40px 60px;
    overflow: hidden;
    background: url('../gallery/landing.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.85),
        rgba(15, 23, 42, 0.6)
    );
    z-index: 1;
}

/* Teal ambient glow — top right */
.hero::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(20,184,166,0.30) 0%, transparent 70%);
    top: -180px;
    right: -180px;
    filter: blur(110px);
    z-index: 0;
    pointer-events: none;
}

/* Indigo ambient glow — bottom left */
.hero::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(79,70,229,0.28) 0%, transparent 70%);
    bottom: -180px;
    left: -180px;
    filter: blur(110px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 760px;
    color: white;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 3.9rem);
    font-weight: 800;
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto 24px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero h2 {
    font-size: clamp(1.02rem, 2vw, 1.22rem);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.85;
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-actions .btn {
    min-width: 210px;
}

.primary-btn {
    background: #14b8a6;
    color: #ffffff;
    border: 1px solid #14b8a6;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: #0d9488;
    border-color: #0d9488;
    transform: translateY(-2px) scale(1.05);
}

.secondary-btn {
    background: transparent;
    color: #14b8a6;
    border: 1px solid #14b8a6;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
}

.tertiary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
}

.secondary-btn:hover {
    background: rgba(20, 184, 166, 0.12);
    color: #2dd4bf;
    border-color: #2dd4bf;
}

.tertiary-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.46);
}

.hero-actions .btn:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.6);
    outline-offset: 3px;
}

.social-proof {
    font-size: 0.88rem;
    opacity: 0.65;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.3px;
    max-width: 520px;
    margin: 0 auto;
}

.hero-trust-line {
    font-style: normal;
    opacity: 0.88;
    font-weight: 500;
    letter-spacing: 0.4px;
}

/* 2) Core Features */
.features-section {
    padding: 100px 20px;
    background: #fff;
    position: relative;
}

.reality-section {
    background: #eef2ff;
    border-top: 1px solid #c7d2fe;
    border-bottom: 1px solid #c7d2fe;
}

.reality-section .section-header h2 {
    color: #3730a3;
}

.reality-section .feature-card {
    background: #ffffff;
    border: 1px solid #c7d2fe;
}

.reality-section .feature-icon {
    color: #4f46e5;
}

.reality-source {
    color: #0f172a;
    display: block;
    text-align: center;
    font-style: normal;
    opacity: 1;
    font-weight: 500;
    margin: 32px auto 0;
    max-width: 820px;
    line-height: 1.6;
}

.how-it-works-section {
    background: #ecfdf5;
    border-top: 1px solid #99f6e4;
    border-bottom: 1px solid #99f6e4;
}

.how-it-works-section .section-header h2 {
    color: #0f766e;
}

.how-it-works-section .section-header p {
    color: #0f766e;
    font-size: 1.05rem;
}

.how-it-works-section .feature-card {
    background: #ffffff;
    border: 1px solid #99f6e4;
    text-align: center;
}

.how-it-works-section .feature-icon {
    color: #14b8a6;
}

.core-features-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.core-features-section .section-header p {
    color: #475569;
}

.core-features-section .feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.core-features-section .feature-icon {
    color: #4f46e5;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px 30px;
    text-align: left;
    background: var(--bg-color);
    border-radius: var(--border-radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.2);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(139, 92, 246, 0.3));
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* 3) AI Companion */
.ai-section {
    padding: 120px 20px;
    background: linear-gradient(rgb(80, 123, 197), rgba(80, 123, 197, 0.8)), url('../gallery/lake forest path.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    color: white;
}

.ai-content {
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media(min-width: 768px) {
    .ai-content { grid-template-columns: 1fr 1.2fr; }
}

.ai-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.ai-text h3 {
    font-size: 1.5rem;
    color: var(--primary-accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.ai-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    opacity: 0.9;
}

.ai-bullets {
    list-style: none;
}

.ai-bullets li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.ai-visual {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ai-visual:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 50px rgba(129, 140, 248, 0.2);
}

.ai-visual:hover i {
    animation: float 1.5s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(129, 140, 248, 0.5));
}

.ai-visual i {
    font-size: 5rem;
    color: var(--secondary-accent);
    filter: drop-shadow(0 4px 10px rgba(129, 140, 248, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

/* 4) Safety & Trust */
.safety-section {
    padding: 100px 20px;
    background: #fff;
    text-align: center;
}

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

.safety-container h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.safety-container h3 {
    color: #ed4956;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.safety-container p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-color);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    border: 2px solid transparent;
}

.badge-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, #f0fdf4, var(--bg-color));
}

.badge-item i {
    color: #10b981;
    font-size: 1.2rem;
}

/* 5) Testimonials */
.testimonial-section {
    padding: 120px 20px;
    background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('student-group.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.testi-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: var(--border-radius-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testi-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.testi-card p {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testi-card h4 {
    font-size: 1rem;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 6) Final CTA */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f0f4ff, #faf5ff);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
}

/* Footer */
footer {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}

.footer-logo i {
    color: #0ea5e9;
    font-size: 2.2rem;
}

.company-marker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

/* Header Navigation */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
}

header > div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header i {
    color: #0ea5e9;
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Inline Style Conversions */
.feature-card:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.3s;
}

.ai-visual {
    transition-delay: 0.2s;
}

.testi-card:nth-child(2) {
    transition-delay: 0.2s;
}

/* Enhanced Button Styles for CTA Section */
.btn-cta,
.cta-section .btn-primary {
    padding: 18px 40px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite, pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 12px 36px rgba(236, 72, 153, 0.5);
    }
}

.btn-cta:hover,
.cta-section .btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
    animation: gradient-shift 2s ease infinite, pulse-glow 1s ease-in-out infinite;
}

/* Transparent link button style */
.btn-transparent {
    background: transparent !important;
    border: none !important;
    text-decoration: underline;
    backdrop-filter: none !important;
    padding: 14px 20px;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.btn-transparent:hover {
    transform: translateY(-2px);
    text-decoration-thickness: 2px;
    box-shadow: none !important;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.btn-transparent::before,
.btn-transparent::after {
    display: none;
}

/* Loading state for buttons */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Button group spacing */
.hero-actions .btn {
    min-width: 210px;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .hero {
        padding: 90px 20px 50px;
        /* Disable parallax on mobile — avoids iOS fixed-bg rendering bugs */
        background-attachment: scroll;
    }

    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .cta-section .btn-primary {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 340px;
        margin: 0 auto 30px;
        gap: 14px;
    }
    
    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
        margin-bottom: 20px;
    }

    .hero h2 {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 28px;
    }

    .primary-btn,
    .secondary-btn,
    .tertiary-btn {
        font-size: 1rem;
        padding: 13px 24px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-content {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .btn,
    .btn::before,
    .btn::after {
        animation: none;
        transition: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Focus visible for keyboard navigation */
.btn:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.65);
    outline-offset: 4px;
}
