/* ══════════════════════════════════════
   Liminal Capital LLC — styles.css
   ══════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #00162f;
    --navy-light: #001e3d;
    --white: #ffffff;
    --off-white: #f7f8fa;
    --gray-100: #eef0f3;
    --gray-200: #d5d8de;
    --gray-400: #8a8f9a;
    --gray-600: #4a4f5a;
    --gray-800: #1a1f2a;
    --gray-mid:#d7ddd2
    --accent: #0078c8;
    --aquamarine: #00ff9d;
    --accent-light: #e8f4fc;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container: 1240px;
    --section-pad: clamp(60px, 8vw, 100px);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--gray-800);
    line-height: 1.65;
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
    background: rgba(0, 22, 47, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 12px 0;
}
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
nav .logo img {
    height: 32px;
    width: auto;
}
nav .nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    list-style: none;
}
nav .nav-links a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
nav .nav-links .login-link {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 18px;
    border-radius: 2px;
    transition: border-color 0.2s, background 0.2s;
}
nav .nav-links .login-link:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
    opacity: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
    display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
#hero-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--navy);
    overflow: hidden;
}
#hero-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.net-dots circle {
    fill: rgba(175, 100, 245, 0.5);
}
.net-noise circle {
    fill: rgba(167, 69, 180, 0.35);
}
.line-std {
    stroke: rgba(60, 130, 200, 0.2);
    stroke-width: 0.8;
    stroke-linecap: round;
}
.line-flow {
    stroke: rgba(146, 114, 236, 0.3);
    stroke-width: 1.2;
    stroke-linecap: round;
}
.pulse-node {
    fill: rgba(46, 42 157, 0.6);
}
@keyframes nodePulse {
    0%, 100% { r: 5; opacity: 0.6; }
    50% { r: 8; opacity: 0.3; }
}
.pulse-node {
    animation: nodePulse 4s ease-in-out infinite;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-content {
    max-width: 700px;
}
.hero-line {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 32px;
    transform-origin: left;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 24px;
    overflow: hidden;
}
.hero-title .word {
    display: inline-block;
}
.hero-sub {
    font-size: clamp(1.5rem, 1.8vw, 1.6rem);
    font-weight: 300;
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: 40px;
}
.hero-sub .word {
    display: block;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.meta-item {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}
.meta-divider {
    width: 20px;
    height: 1px;
    background: var(--gray-400);
}

/* ── Sections ── */
.section {
    position: relative;
    z-index: 1;
}
.section-light {
    background: var(--white);
    padding: var(--section-pad) 0;
}
.section-alt {
    background: var(--gray-100);
    padding: var(--section-pad) 0;
}
.section-dark {
    background: var(--gray-800);
    padding: var(--section-pad) 0;
    
}

.section-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 16px;
    display: block;
}
.section-dark .section-label { color: var(--aquamarine); }

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--gray-800);
}
.section-dark .section-heading { color: var(--white); }

/* new */
.section-text {
    font-size: 1.10rem;
    line-height: 1.75;
    color: var(--gray-600);
}
.two-col .section-text {
    max-width: 640px;
}
.section-text + .section-text { margin-top: 16px; }
.section-dark .section-text { color: var(--gray-200); }

/* ── Strategy Cards ── */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
    margin-bottom: 30px;  /* add this */
}
.strategy-card {
    padding: 40px 32px;
    border-radius: 4px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.strategy-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(255,255,255,0.06);
    transition: opacity 0.3s;
}
.strategy-card:hover::before { opacity: 1; }

.card-macro { background: var(--gray-800); }
.card-equity { background: #1a46d0; }
.card-asset { background: #2e30a0; }

.strategy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}
.strategy-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.strategy-card li {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    padding-left: 16px;
    position: relative;
}
.strategy-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

/* ── Two Column Layout ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

/* ── Partners ── */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}
.partner-card {
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 36px 32px;
    text-align: left;
    transition: border-color 0.3s, background 0.3s;
}
.partner-card:hover {
    border-color: var(--gray-400);
    background: var(--white);
}
.partner-logo {
    height: auto;
    margin-bottom: 20px;
}
.partner-logo svg {
    display: block;
    height: 36px;
    width: auto;
}
.partner-logo img {
    display: block;
    height: auto;
    width: 140px;
}
.partner-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ── Footer (with contact) ── */
footer {
    background: var(--navy);
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-logo { height: 24px; margin-bottom: 16px; }
.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color:var(--gray-200);
    margin-bottom: 14px;
}
.footer-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color:var(--gray-200);
}
.footer-text + .footer-text { margin-top: 10px; }
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}
.footer-nav a:hover { color: var(--white); opacity: 1; }
.footer-contacts {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.footer-contacts div {
    display: flex;
    gap: 10px;
    font-size: 0.73rem;
}
.footer-contacts span:first-child {
    font-weight: 500;
    color: var(--gray-200);
    min-width: 80px;
}
.footer-contacts span:last-child {
    color: var(--gray-100);
}
.footer-emails {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-emails a {
    font-size: 0.83rem;
    color: #72efdd;
    opacity: 0.7;
}
.footer-emails a:hover { opacity: 1; }

/* ── Risk Disclosure ── */
.risk-section {
    background: var(--navy);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}
.risk-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-200);
}
.risk-section p + p { margin-top: 12px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p {
    font-size: 0.95rem;
    color: var(--gray-200);
}
.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a {
    font-size: 0.95rem;
    color: var(--gray-400);
}

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--white);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 48px;
    border-radius: 4px;
    position: relative;
}
.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}
.modal-content h5 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 24px;
    margin-bottom: 8px;
}
.modal-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { color: var(--gray-800); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .strategy-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    .nav-links.open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,22,47,0.97);
        padding: 24px;
        gap: 20px;
    }
    .hamburger { display: flex; }
    nav .container { flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .modal-content { padding: 32px 24px; }
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: rgba(247, 248, 250, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cookie-inner p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 560px;
}
.cookie-inner a {
    color: var(--gray-800);
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}
.cookie-actions button {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 24px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
    background: none;
    color: var(--gray-800);
}
.cookie-actions button:hover { opacity: 0.7; }
.cookie-actions #cookieAccept {
    background: var(--gray-800);
    color: var(--white);
}

@media (max-width: 768px) {
    .cookie-inner { flex-direction: column; gap: 16px; text-align: center; }
}


/* ── Nav Dropdown ── */
.nav-dropdown {
    position: relative;
    list-style: none;
}
.nav-dropdown .login-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 18px;
    border-radius: 2px;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.nav-dropdown .login-link:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(0, 22, 47, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.7);
    transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--white);
    opacity: 1;
}
.dropdown-menu a + a {
    border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        border: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        min-width: 0;
        padding-left: 16px;
    }
}
