/* =========================================
   PATHRIN - Core Styles (Performance Optimized)
   Color Scheme: Navy, Blue, White, Orange
   ========================================= */

:root {
    /* Color Palette - Navy/Blue/White/Orange */
    --navy: #0a1628;
    --navy-light: #112240;
    --blue: #1e90ff;
    --blue-light: #4dabff;
    --blue-muted: #a8d4ff;
    --white: #ffffff;
    --off-white: #f0f6ff;
    --primary-orange: #FF6B00;
    --secondary-orange: #FF8A33;
    --primary-orange-glow: rgba(255, 107, 0, 0.35);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;

    /* Variables */
    --nav-height: 72px;
    --border-radius: 14px;
    --transition-fast: 0.25s ease;
    --transition-slow: 0.5s ease;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(30, 144, 255, 0.12);
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(180deg, var(--off-white) 0%, #dbeafe 50%, var(--off-white) 100%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-orange);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* =========================================
   Background - Lightweight static + subtle motion
   ========================================= */
.background-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 75% 20%, rgba(30, 144, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 107, 0, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--off-white) 0%, #dbeafe 40%, #e8f4fd 70%, var(--off-white) 100%);
}

/* Glow orbs - purely decorative, GPU-friendly */
.glow {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.glow-blue {
    width: 500px;
    height: 500px;
    top: -5%;
    right: -5%;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.15) 0%, transparent 70%);
    animation: glowFloat 20s ease-in-out infinite alternate;
}

.glow-orange {
    width: 400px;
    height: 400px;
    bottom: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
    animation: glowFloat 25s ease-in-out infinite alternate-reverse;
}

/* Nodes - simplified, fewer repaints */
.node {
    position: absolute;
    border: 1px solid rgba(30, 144, 255, 0.06);
    border-radius: 50%;
    will-change: transform;
    animation: rotateNode 40s linear infinite;
}

.node::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-orange);
    border-radius: 50%;
}

.node-1 {
    top: 15%;
    left: 8%;
    width: 300px;
    height: 300px;
    animation-duration: 50s;
}

.node-2 {
    top: 55%;
    right: 8%;
    width: 200px;
    height: 200px;
    animation-duration: 35s;
    animation-direction: reverse;
}

.node-3 {
    bottom: 15%;
    left: 25%;
    width: 250px;
    height: 250px;
    animation-duration: 60s;
}

.node-4 {
    top: -5%;
    right: 25%;
    width: 350px;
    height: 350px;
    animation-duration: 70s;
    animation-direction: reverse;
}

/* =========================================
   Navigation - Premium Navy Bar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 22, 40, 0.6);
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.brand-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 0, 0.3));
    transition: transform var(--transition-fast);
}

.brand:hover .brand-logo {
    transform: scale(1.06) rotate(3deg);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-orange);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    border-radius: 2px;
}

/* =========================================
   Language Switch
   ========================================= */
.lang-switch-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 3px 4px;
}

.lang-btn:hover {
    color: var(--primary-orange);
}

.lang-btn.active {
    color: var(--white);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 30px;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: var(--navy);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 90%;
}

.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid rgba(30, 144, 255, 0.15);
    padding: 12px 22px;
    border-radius: var(--border-radius);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.store-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-orange);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.12);
}

.store-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.store-btn:hover::before {
    opacity: 1;
}

.store-icon,
.store-text {
    position: relative;
    z-index: 1;
}

.store-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--navy);
    transition: fill var(--transition-fast);
}

.store-btn:hover .store-icon svg {
    fill: var(--primary-orange);
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.store-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Hero Visual & Logo */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.main-logo {
    width: 100%;
    height: auto;
    max-width: 220px;
    z-index: 10;
    filter: drop-shadow(0 8px 24px rgba(255, 107, 0, 0.25));
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--blue);
    top: 0;
    left: 0;
    opacity: 0;
    animation: pulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    will-change: transform, opacity;
}

.pulse-ring.delay-1 {
    animation-delay: 1s;
}

.pulse-ring.delay-2 {
    animation-delay: 2s;
}

/* =========================================
   Stats Section
   ========================================= */
.stats-section {
    padding: 20px 0 60px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 28px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    min-width: 170px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--primary-orange));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(30, 144, 255, 0.1);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1;
    margin-bottom: 6px;
}

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

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   Placeholder Sections
   ========================================= */
.placeholder-section {
    padding: 80px 0;
    min-height: 60vh;
    padding-top: calc(var(--nav-height) + 40px);
}

.placeholder-section h2 {
    font-size: 2.2rem;
    margin-bottom: 36px;
    text-align: center;
    color: var(--navy);
}

.glass-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
    font-size: 1.15rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(30, 144, 255, 0.08);
}

/* =========================================
   Footer
   ========================================= */
footer {
    padding: 36px 0;
    text-align: center;
    border-top: 1px solid rgba(30, 144, 255, 0.1);
    color: var(--text-muted);
    background: rgba(10, 22, 40, 0.03);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
}

.social-links a:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.social-links svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* =========================================
   Animations & Keyframes (GPU-only)
   ========================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes pulse {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes glowFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 20px); }
}

@keyframes rotateNode {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reveal Classes */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 30px;
    }

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

    .hero-description {
        margin: 0 auto 24px;
    }

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

    .logo-wrapper {
        width: 180px;
        height: 180px;
    }

    .stats-grid {
        gap: 16px;
    }

    .stat-card {
        padding: 20px 28px;
        min-width: 130px;
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(10, 22, 40, 0.97);
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow: hidden;
        transition: height var(--transition-slow);
        pointer-events: none;
    }

    .nav-links.nav-active {
        height: calc(100vh - var(--nav-height));
        padding-top: 40px;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.4rem;
        padding: 18px 0;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity var(--transition-fast), transform var(--transition-fast);
    }

    .nav-links.nav-active .nav-link {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(var(--i) * 0.08s);
    }

    .lang-switch-nav {
        margin-left: 0;
        margin-top: 16px;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity var(--transition-fast), transform var(--transition-fast);
    }

    .nav-links.nav-active .lang-switch-nav {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(var(--i) * 0.08s);
    }

    .menu-toggle.toggle-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .menu-toggle.toggle-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile Performance: disable background animations */
    .background-network .node,
    .background-network .glow {
        display: none;
    }

    .glass-card:hover,
    .stat-card:hover {
        transform: none;
    }

    .placeholder-section {
        padding: 60px 0;
        padding-top: calc(var(--nav-height) + 20px);
        min-height: auto;
    }

    .policy-card {
        padding: 20px;
        background: var(--white);
    }

    .text-section .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    main {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .settings-modal {
        width: 92%;
        padding: 24px;
    }
}

/* =========================================
   About App Styles
   ========================================= */
.about-card {
    text-align: left;
}

.about-card p {
    margin-bottom: 18px;
    color: var(--text-muted);
}

.features-list {
    margin: 28px 0;
    padding: 22px;
    background: rgba(30, 144, 255, 0.04);
    border-radius: 14px;
    border-left: 4px solid var(--blue);
}

.features-list h3 {
    color: var(--navy);
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.features-list ul {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.features-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.highlight-text {
    font-weight: 600;
    color: var(--navy);
    font-size: 1.05rem;
    margin-top: 28px;
    border-top: 1px solid rgba(30, 144, 255, 0.1);
    padding-top: 18px;
}

/* =========================================
   Policies Styles
   ========================================= */
.text-section {
    padding-bottom: 80px;
}

.policy-card {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    padding: 36px;
}

.policy-block {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(30, 144, 255, 0.08);
}

.policy-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-block h3 {
    color: var(--blue);
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.policy-list {
    list-style: none;
    padding-left: 0;
}

.policy-list li {
    margin-bottom: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
}

.policy-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-size: 1.2rem;
    line-height: inherit;
}

.policy-list strong {
    color: var(--text-main);
}

.policy-block p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================
   Support Styles
   ========================================= */
.support-email {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition-fast);
}

.support-email:hover {
    color: var(--blue);
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-section {
    margin-top: 50px;
}

.faq-section h3 {
    font-size: 1.6rem;
    text-align: center;
    color: var(--navy);
    margin-bottom: 28px;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(30, 144, 255, 0.25);
}

.faq-question {
    width: 100%;
    padding: 16px 22px;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--blue);
}

.faq-question .faq-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
    color: var(--primary-orange);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.open .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 22px;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 22px 16px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 10px 0;
    border-top: 1px solid rgba(30, 144, 255, 0.06);
}