/* NeuroLogic Website Styles */
/* Modern, premium design with dark theme */

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #f97316;
    --background: #0f1115;
    --surface: #181920;
    --surface-light: #23242e;
    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(139, 92, 246, 0.3);

    /* Premium Gradients */
    --gradient-purple: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-dark-overlay: linear-gradient(180deg, rgba(5, 5, 8, 0) 0%, rgba(5, 5, 8, 1) 100%);

    /* Specialized Gradients */
    --icon-purple: linear-gradient(135deg, #818cf8, #6366f1);
    --icon-pink: linear-gradient(135deg, #f472b6, #db2777);
    --icon-blue: linear-gradient(135deg, #38bdf8, #0ea5e9);
    --icon-green: linear-gradient(135deg, #4ade80, #16a34a);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Animations --- */

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.2);
    /* More transparent for glass effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.logo-neuro {
    color: #e2e8f0;
}

.logo-logic {
    color: #f87171;
}

/* Slightly softened red for dark mode */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.btn-download {
    background: var(--gradient-purple);
    color: white !important;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
}

/* Complex Background for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse-glow 8s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.apple-icon {
    width: 24px;
    height: 24px;
}

.hero-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    z-index: 2;
    cursor: pointer;
    width: 300px;
    height: 640px;
    /* Taller to fit more content */

    /* Bezel Styling */
    box-sizing: content-box;
    border: 12px solid #1e1e24;
    border-radius: 44px;
    /* Outer Radius */
    padding: 2px;
    /* Small spacing between bezel and screen */
    background: #1e1e24;

    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    transform-style: preserve-3d;
}

.phone-mockup .carousel-img {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    object-fit: cover;

    /* Screen styling */
    border-radius: 32px;
    /* Inner Radius */
    box-shadow: none;

    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.phone-mockup .carousel-img.active {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    z-index: 3;
}

.carousel-dots .dot {
    width: 30px;
    /* Pill shape */
    height: 6px;
    border-radius: 4px;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot:hover {
    background: var(--text-secondary);
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 45px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(60px);
    pointer-events: none;
}

/* --- Sections Common --- */
section {
    padding: 120px 20px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Features Section --- */
.features {
    background: var(--surface);
    position: relative;
}

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

/* Glassmorphic Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* Icon Gradients */
.icon-pathways {
    background: var(--icon-purple);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.icon-calculators {
    background: var(--icon-pink);
    box-shadow: 0 10px 20px rgba(219, 39, 119, 0.3);
}

.icon-toolbox {
    background: var(--icon-blue);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

.icon-privacy {
    background: var(--icon-green);
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
}

/* --- Tools Section --- */
.tools {
    background: var(--background);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.tool-category {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    transition: transform 0.3s;
    /* Adding subtle glassmorphism effect */
    background: linear-gradient(145deg, rgba(24, 24, 32, 1) 0%, rgba(18, 18, 24, 1) 100%);
}

.tool-category:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.tool-category h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-category ul {
    list-style: none;
}

.tool-category li {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.tool-category li::before {
    content: "•";
    color: var(--text-secondary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    opacity: 0.5;
}

/* Premium list styling - replacing bullet with custom accent */
.tool-category ul li {
    padding-left: 20px;
    position: relative;
}

.tool-category ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary);
}

.tool-category li:hover {
    color: var(--text);
    padding-left: 24px;
    /* subtle shift */
}

.tool-category li:last-child {
    border-bottom: none;
}

/* --- Privacy Section --- */
.privacy {
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.privacy-card {
    text-align: center;
    padding: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: all 0.3s;
}

.privacy-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.privacy-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.privacy-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

.privacy-link {
    display: inline-block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.privacy-link:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

/* --- Support Section --- */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.support-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.support-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* --- Download CTA --- */
.download-cta {
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    padding: 160px 20px;
    position: relative;
}

.download-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.download-cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
.footer {
    background: var(--surface);
    padding: 80px 20px 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.footer-brand p {
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400 !important;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem !important;
    opacity: 0.6;
    max-width: 600px;
    text-align: right;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .phone-mockup {
        width: 280px;
        height: 580px;
    }

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

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px;
        border-bottom: 1px solid var(--border);
        gap: 30px;
        text-align: center;
        height: 100vh;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 0;
    }

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

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .disclaimer {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

@media (max-width: 600px) {

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

    .section-title {
        font-size: 2.2rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero::before,
    .hero::after {
        opacity: 0.5;
        /* Tone down glow on mobile */
    }

    .phone-mockup {
        width: 100%;
        max-width: 280px;
        height: 560px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}