/* ==========================================
   1. VARIABLES & BASE STYLES
   ========================================== */
:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(21, 29, 46, 0.6);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --accent: #06B6D4;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --font-family: 'Inter', sans-serif;
    --radius-main: 12px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    color: #FFFFFF;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 16px;
}

p {
    color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818CF8;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ==========================================
   2. BUTTONS & UI COMPONENTS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #FFF;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
}

.btn-outline:hover {
    border-color: #FFF;
    background: rgba(255, 255, 255, 0.05);
}

.btn-block {
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #FFFFFF;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
}

.notice-box {
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius-main) var(--radius-main) 0;
    margin: 24px 0;
}

.notice-box p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

/* ==========================================
   3. HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-card-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #FFF;
}

/* ==========================================
   4. HERO & SECTIONS
   ========================================== */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.1) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.35rem;
    color: #E2E8F0;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Grids Layout */
.section {
    padding: 100px 0;
}

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

.grid {
    display: grid;
    gap: 24px;
}

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

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

.card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* Specific Content Cards */
.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 50px;
}

.highlight-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subsection-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.symptom-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
}

.card-number {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.symptom-card p {
    color: #E2E8F0;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFF;
    flex-shrink: 0;
}

/* Principle & Checklists */
.principle-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.check-list {
    list-style: none;
    margin-top: 30px;
    text-align: left;
    display: inline-block;
}

.check-list li {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-list span {
    color: var(--accent);
    font-weight: bold;
}

/* Formats of Work */
.format-card {
    position: relative;
}

.format-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================
   5. ABOUT PAGE STYLES
   ========================================== */
.about-page {
    padding: 140px 0 80px;
}

.about-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.mission-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.mission-box h2 {
    color: #FFFFFF;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.mission-box p {
    color: #E2E8F0;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.about-section-title {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 28px;
    text-align: center;
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.tools-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ==========================================
   6. LEGAL PAGES STYLES
   ========================================== */
.legal-page {
    padding: 140px 0 80px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-card {
    padding: 48px;
}

.legal-card h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 32px;
    display: block;
}

.legal-content h2 {
    font-size: 1.35rem;
    margin: 32px 0 16px;
    color: #FFFFFF;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 8px;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 6px;
}

/* ==========================================
   7. CONTACTS & MATCHING GRID
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: stretch;
}

.contact-card, .matching-banner-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.matching-banner-card {
    border: 1px solid rgba(6, 182, 212, 0.4);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.matching-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    width: fit-content;
}

.matching-banner-card h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 14px;
    line-height: 1.3;
}

.matching-banner-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.matching-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.matching-features li {
    color: #E2E8F0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.matching-btn {
    border-color: var(--accent);
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.matching-btn:hover {
    background: var(--accent);
    color: #0A0F1D;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* ==========================================
   8. FORMS & CTA
   ========================================== */
.cta-card {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.cta-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: #FFF;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-status {
    margin-top: 16px;
    font-size: 0.95rem;
}

.form-policy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.form-policy-note a {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================
   9. ACCORDION (FAQ) - COMPACT VERSION
   ========================================== */
.accordion-container {
    max-width: 850px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.accordion-header {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #06B6D4;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    background: rgba(6, 182, 212, 0.2);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 20px;
}

.accordion-item.active .accordion-body {
    max-height: 1000px;
    padding: 12px 20px 16px;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease;
}

/* ==========================================
   10. COOKIE BANNER
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 380px;
    width: calc(100% - 48px);
    background: rgba(21, 29, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 18px 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: cookieSlideUp 0.4s ease-out;
}

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

.cookie-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #FFFFFF;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.cookie-btn:hover {
    opacity: 0.9;
}

/* ==========================================
   11. FOOTER
   ========================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--bg-card-border);
    text-align: center;
    font-size: 0.9rem;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--bg-card-border);
    text-align: left;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================
   12. MEDIA QUERIES (RESPONSIVENESS)
   ========================================== */
@media (max-width: 992px) {
    .grid-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card, .matching-banner-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-4 { 
        grid-template-columns: 1fr; 
    }
    .hero h1 { 
        font-size: 2.25rem; 
    }
    .about-hero h1 {
        font-size: 2rem;
    }
    .legal-card h1 {
        font-size: 1.75rem;
    }
    .hero .subtitle { 
        font-size: 1.1rem; 
    }
    .mission-box {
        padding: 24px;
    }
    .legal-card {
        padding: 24px;
    }
    .nav { 
        display: none; 
    }
    .timeline-step { 
        flex-direction: column; 
    }
    .cookie-banner {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-btn {
        width: 100%;
    }
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
