/* ============================================
   SECURENCE — Shared Styles for Sub-Pages
   support.html, mission.html, team-join.html
   Extends the main styles.css design system
   ============================================ */

/* ──────────── Page Navigation (Back to Main) ──────────── */
.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.page-nav.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.page-nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.page-back-link:hover {
    color: var(--neon-purple);
}

.page-back-link svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.page-back-link:hover svg {
    transform: translateX(-4px);
}

/* ──────────── Page Hero (Reusable) ──────────── */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 40px 80px;
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.page-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.page-hero-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.15);
    top: -100px;
    right: -100px;
    animation: glowFloat1 8s ease-in-out infinite;
}

.page-hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.12);
    bottom: -50px;
    left: -100px;
    animation: glowFloat2 10s ease-in-out infinite;
}

.page-hero-glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowFloat3 12s ease-in-out infinite;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--neon-purple);
    margin-bottom: 32px;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

/* ──────────── Glassmorphism Cards (Page Variant) ──────────── */
.page-card {
    position: relative;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.page-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.12);
}

.page-card-glow {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.page-card:hover .page-card-glow {
    opacity: 1;
}

.page-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    color: var(--neon-purple);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.page-card:hover .page-card-icon {
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.2);
}

.page-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ──────────── Form Styles ──────────── */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 20px;
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.4s var(--ease-out-expo);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    background: rgba(15, 15, 35, 0.8);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a855f7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-select option {
    background: #0a0a1a;
    color: var(--text-primary);
}

/* ──────────── Role Selection Cards ──────────── */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.role-option {
    position: relative;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

.role-option:hover,
.role-option.selected {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.06);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.1);
    transform: translateY(-4px);
}

.role-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--neon-green);
}

.role-option-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.role-option-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ──────────── QR Code Box ──────────── */
.qr-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
    animation: demoBorderGlow 4s ease-in-out infinite;
}

.qr-container:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.15);
    transform: translateY(-4px);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    background: linear-gradient(145deg, #0e0e2a, #15153a);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.qr-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.qr-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ──────────── Emotional Text Block ──────────── */
.emotional-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
}

.emotional-block p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-style: italic;
}

.emotional-block .highlight {
    color: var(--text-primary);
    font-weight: 600;
    font-style: normal;
}

/* ──────────── Section Divider ──────────── */
.section-divider {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    margin: 0 auto 40px;
    border-radius: 2px;
    opacity: 0.5;
}

/* ──────────── Cards Grid ──────────── */
.page-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

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

/* ──────────── Form Container ──────────── */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.form-container .form-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

/* ──────────── Vision Cards ──────────── */
.vision-card {
    padding: 32px;
    background: var(--gradient-card);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
}

.vision-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(168, 85, 247, 0.08);
}

.vision-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.vision-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ──────────── Quote Block ──────────── */
.page-quote {
    text-align: center;
    padding: 60px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.page-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ──────────── Message Box ──────────── */
.message-container {
    max-width: 600px;
    margin: 0 auto;
}

/* ──────────── Page Footer (Minimal) ──────────── */
.page-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.page-footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background: var(--gradient-primary);
    filter: blur(2px);
    opacity: 0.4;
}

.page-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.page-footer a {
    color: var(--neon-purple);
    transition: color 0.3s ease;
}

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

/* ──────────── Expectations Block ──────────── */
.expectations-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    background: var(--gradient-card);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 24px;
}

.expectations-block h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.expectations-block p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ──────────── Responsive ──────────── */
@media (max-width: 768px) {
    .page-hero {
        padding: 140px 20px 60px;
        min-height: 50vh;
    }

    .page-nav-container {
        padding: 0 20px;
    }

    .page-cards-grid {
        grid-template-columns: 1fr;
    }

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

    .form-container {
        padding: 32px 24px;
    }

    .qr-container {
        padding: 32px 24px;
    }

    .qr-placeholder {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .role-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-title {
        font-size: 2.2rem;
    }
}
