/* ============================================
   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;
    padding: 8px 20px;
    border: 1px solid var(--border-glow);
    background: transparent;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--neon-purple);
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-back-link:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.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;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: rgba(240, 240, 255, 0.88);
    margin-bottom: 9px;
    transition: color 0.3s ease;
}

.form-label:hover {
    color: var(--neon-purple);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(15, 15, 35, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    color: #f0f0f8;
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(18, 18, 42, 0.75);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--neon-purple);
    background: rgba(20, 20, 48, 0.85);
    box-shadow:
        0 0 25px rgba(168, 85, 247, 0.25),
        inset 0 0 10px rgba(168, 85, 247, 0.05);
    transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
}

/* ──────────── Prevent Browser Autofill White Box Override ──────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-text-fill-color: #f0f0f8 !important;
    -webkit-box-shadow: 0 0 0px 1000px #0e0e24 inset !important;
    box-shadow: 0 0 0px 1000px #0e0e24 inset !important;
    transition: background-color 50000s ease-in-out 0s !important;
    caret-color: #f0f0f8 !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}

.form-textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.6;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 2L7 7.5L12.5 2' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
}

.form-select option {
    background: #0b0b1d;
    color: #f0f0f8;
    padding: 14px;
    font-size: 0.9rem;
}

.form-select option:disabled {
    color: rgba(255, 255, 255, 0.4);
}

/* ──────────── 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: 22px 18px;
    background: linear-gradient(145deg, rgba(15, 15, 35, 0.7), rgba(10, 10, 25, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.role-option:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
    transform: translateY(-4px);
}

.role-option.selected {
    border-color: var(--neon-purple);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.12));
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.25);
    transform: translateY(-4px);
}

.role-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--neon-green);
    background: rgba(16, 185, 129, 0.15);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-option-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.role-option-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: #f0f0f8;
}

/* ──────────── 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: 640px;
    margin: 0 auto;
    padding: 48px 44px;
    background: linear-gradient(145deg, rgba(14, 14, 34, 0.8), rgba(8, 8, 22, 0.9));
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(168, 85, 247, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #a855f7 50%, transparent 100%);
    box-shadow: 0 0 15px #a855f7;
}

.form-container:hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(168, 85, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.form-container .form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #ffffff 30%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.form-submit {
    width: 100%;
    margin-top: 12px;
    padding: 16px 32px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(168, 85, 247, 0.45);
    background: linear-gradient(135deg, #b866ff 0%, #7376ff 100%);
}

.form-submit:hover::before {
    opacity: 1;
}

.form-submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.form-submit svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.form-submit:hover svg {
    transform: translateX(5px);
}

/* ──────────── 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);
}

/* Social row inside simple page-footer */
.page-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 4px;
    margin-bottom: 10px;
}

.page-footer-social a {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--neon-purple);
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

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

.footer-divider {
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 0.7rem;
    user-select: none;
}

/* ──────────── 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;
    }
}