@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #003366;
    --accent-color: #007bff;
    --text-dark: #1a1a1a;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-soft: #f4f7f6;
    --border-color: #e0e0e0;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

.hidden {
    display: none !important;
}


.vertical-axis-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.brand-glyph {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.flow-links {
    display: none;
    gap: 30px;
    align-items: center;
}

.link-item {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
}

.link-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.link-item:hover::after {
    width: 100%;
}

.link-item:hover {
    color: var(--accent-color);
}

.nav-extra .auth-trigger {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-extra .auth-trigger:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}


.hero-asymmetry {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 50px;
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), 
                url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.text-cluster {
    max-width: 100%;
    z-index: 1;
}

.mega-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.outline-text {
    color: var(--accent-color);
}

.sub-narrative {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.8;
}

.action-bolt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    padding: 0 35px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.action-bolt:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.visual-anchor {
    display: none;
}


.data-fragment {
    padding: 80px 5%;
    background: var(--bg-soft);
}

.fragment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.fragment-box {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-fast);
}

.fragment-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.numeral {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.fragment-box p {
    font-size: 1rem;
    color: #666;
}


.service-labyrinth {
    padding: 80px 5%;
    background: white;
}

.section-label {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.bento-item {
    background: white;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    cursor: pointer;
}

.bento-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.bento-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.bento-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.bento-item p {
    color: #666;
    line-height: 1.6;
}

.hidden-context {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.hidden-context.active {
    max-height: 500px;
    margin-top: 15px;
}

.narrative-split {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--primary-color);
    color: white;
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.story-content {
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.real-talk {
    font-size: 1.4rem;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
}

.real-talk cite {
    display: block;
    margin-top: 20px;
    font-size: 1rem;
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    opacity: 0.9;
}


.gatekeeper-form {
    padding: 80px 5%;
    background: var(--bg-soft);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

input,
textarea {
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

textarea {
    padding: 15px;
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.submit-energy {
    width: 100%;
    min-height: 55px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-energy:hover:not(:disabled) {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-energy:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


.abyss-footer {
    padding: 40px 5%;
    border-top: 1px solid var(--border-color);
    background: white;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    color: #666;
    margin-bottom: 10px;
}

.footer-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.footer-legal button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.footer-legal button:hover {
    color: var(--accent-color);
}


.cookie-shield {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    color: white;
    padding: 20px 5%;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    animation: slideUp 0.5s ease;
}

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

.cookie-content p {
    margin: 0;
    line-height: 1.6;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-prime,
.btn-ghost {
    flex: 1;
    min-height: 45px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-prime {
    background: var(--accent-color);
    color: white;
}

.btn-prime:hover {
    background: #0056b3;
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

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


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

.modal-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-card p {
    line-height: 1.8;
    color: #666;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}


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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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


@media (min-width: 576px) {
    .mega-title {
        font-size: 3.5rem;
    }
    
    .fragment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .cookie-btns {
        flex: 0 0 auto;
        width: 300px;
    }
}

@media (min-width: 768px) {
    .flow-links {
        display: flex;
    }
    
    .nav-extra .auth-trigger {
        display: none;
    }
    
    .hero-asymmetry {
        padding: 0 10%;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .narrative-split {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .story-image img {
        height: 100%;
        min-height: 400px;
    }
    
    .input-row {
        flex-direction: row;
    }
    
    .input-row input {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .mega-title {
        font-size: 5rem;
    }
    
    .hero-asymmetry {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5%;
    }
    
    .visual-anchor {
        display: block;
    }
    
    .visual-anchor img {
        width: 100%;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
    }
    
    .fragment-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 10%;
    }
    
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-wrapper {
        padding: 60px;
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


@media print {
    .vertical-axis-nav,
    .cookie-shield,
    .modal-overlay,
    .action-bolt {
        display: none !important;
    }
}