/* ============================================
   Meridian Global Ventures — Styles
   ============================================ */

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-grey: #1a1a1a;
    --mid-grey: #2a2a2a;
    --silver: #B0B8C0;
    --silver-light: #d0d4d8;
    --gold: #C4A44A;
    --gold-dim: rgba(196, 164, 74, 0.15);
    --gold-glow: rgba(196, 164, 74, 0.3);
    --white: #f0f0f0;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--silver);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--silver-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(176, 184, 192, 0.08);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.nav-logo:hover {
    color: var(--gold);
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--silver);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold) !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--black) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--silver);
    transition: all var(--transition);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(196, 164, 74, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 30% 60%, rgba(176, 184, 192, 0.03) 0%, transparent 60%),
        var(--black);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-logo {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(196, 164, 74, 0.2));
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--silver);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all var(--transition);
}

.hero-btn:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 0 30px rgba(196, 164, 74, 0.25);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 7rem 0;
}

.section-dark {
    background: var(--dark-grey);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gold);
    margin-top: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

/* ============================================
   About
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--silver);
}

.about-lead {
    font-size: 1.15rem;
    color: var(--silver-light) !important;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    padding: 1.75rem;
    background: var(--dark-grey);
    border: 1px solid rgba(176, 184, 192, 0.08);
    border-radius: 8px;
    text-align: center;
    transition: border-color var(--transition);
}

.stat:hover {
    border-color: var(--gold-dim);
}

.stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--silver);
}

/* ============================================
   Apeiron Protocol
   ============================================ */

.apeiron-intro {
    max-width: 800px;
    margin: 0 auto 3.5rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
}

.apeiron-intro em {
    color: var(--gold);
    font-style: italic;
}

.ala-etymology {
    border-left: 2px solid var(--gold);
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--silver-light);
    font-size: 1rem;
}

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.cycle-card {
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(176, 184, 192, 0.06);
    border-radius: 8px;
    transition: all var(--transition);
}

.cycle-card:hover {
    border-color: rgba(196, 164, 74, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cycle-icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.cycle-card h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.cycle-card p {
    font-size: 0.925rem;
    line-height: 1.7;
}

.apeiron-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 500;
    font-style: italic;
}

/* ============================================
   AI-Native Audit Team
   ============================================ */

.audit-team {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(176, 184, 192, 0.08);
}

.audit-team h3 {
    font-size: 1.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.audit-team-lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--silver-light);
}

.audit-roster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.roster-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(176, 184, 192, 0.06);
    border-radius: 6px;
    transition: border-color var(--transition);
}

.roster-item:hover {
    border-color: rgba(196, 164, 74, 0.2);
}

.roster-marker {
    width: 3px;
    min-height: 100%;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.roster-item h4 {
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.roster-item p {
    font-size: 0.825rem;
    line-height: 1.6;
    color: var(--silver);
}

@media (max-width: 768px) {
    .audit-roster {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Capabilities
   ============================================ */

.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.cap-card {
    padding: 2.5rem 2rem;
    background: var(--dark-grey);
    border: 1px solid rgba(176, 184, 192, 0.06);
    border-radius: 8px;
    transition: all var(--transition);
}

.cap-card:hover {
    border-color: rgba(196, 164, 74, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.cap-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
    margin-bottom: 1.25rem;
}

.cap-card h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.cap-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Tier Structure */
.team-structure {
    max-width: 900px;
    margin: 0 auto;
}

.team-structure h3 {
    font-size: 1.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

.tier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tier-card {
    padding: 1.75rem;
    background: var(--dark-grey);
    border: 1px solid rgba(176, 184, 192, 0.06);
    border-radius: 8px;
}

.tier-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.tier-1 {
    background: rgba(220, 50, 50, 0.15);
    color: #e05555;
    border: 1px solid rgba(220, 50, 50, 0.25);
}

.tier-2 {
    background: rgba(196, 164, 74, 0.15);
    color: var(--gold);
    border: 1px solid rgba(196, 164, 74, 0.25);
}

.tier-3 {
    background: rgba(80, 160, 220, 0.15);
    color: #50a0dc;
    border: 1px solid rgba(80, 160, 220, 0.25);
}

.tier-rt {
    background: rgba(180, 80, 200, 0.15);
    color: #b850c8;
    border: 1px solid rgba(180, 80, 200, 0.25);
}

.tier-card p {
    font-size: 0.875rem;
    line-height: 1.65;
}

/* ============================================
   Divisions
   ============================================ */

.div-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.div-card {
    padding: 2.25rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(176, 184, 192, 0.06);
    border-radius: 8px;
    transition: all var(--transition);
}

.div-card:hover {
    border-color: rgba(196, 164, 74, 0.15);
    transform: translateY(-3px);
}

.div-icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.div-card h3 {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.div-card p {
    font-size: 0.875rem;
    line-height: 1.65;
}

/* ============================================
   Contact
   ============================================ */

.contact-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-block h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-block p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    padding: 1rem 2.5rem;
    border: 1px solid var(--gold);
    border-radius: 4px;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.contact-email:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 0 30px rgba(196, 164, 74, 0.25);
}

/* Contact Form Divider */
.contact-divider {
    display: flex;
    align-items: center;
    margin: 2.5rem 0;
    gap: 1.5rem;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(176, 184, 192, 0.12);
}

.contact-divider span {
    font-size: 0.8rem;
    color: var(--silver);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}

/* Contact Form */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group:only-child,
.contact-form > .form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--dark-grey);
    border: 1px solid rgba(176, 184, 192, 0.12);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 0.925rem;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(176, 184, 192, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(196, 164, 74, 0.4);
    box-shadow: 0 0 0 3px rgba(196, 164, 74, 0.08);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: rgba(220, 50, 50, 0.5);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B0B8C0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--dark-grey);
    color: var(--white);
}

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

.form-error {
    font-size: 0.75rem;
    color: #e05555;
    margin-top: 0.35rem;
    min-height: 1rem;
}

.form-submit {
    display: block;
    width: 100%;
    padding: 0.9rem 2rem;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold);
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 0.5rem;
}

.form-submit:hover:not(:disabled) {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 0 30px rgba(196, 164, 74, 0.25);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: 2rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(196, 164, 74, 0.25);
    border-radius: 6px;
    background: rgba(196, 164, 74, 0.05);
}

.form-success-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.form-success p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.form-success strong {
    color: var(--white);
}

.form-error-global {
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(220, 50, 50, 0.3);
    border-radius: 4px;
    background: rgba(220, 50, 50, 0.06);
    color: #e05555;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-row .form-group {
        margin-bottom: 1.25rem;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(176, 184, 192, 0.08);
    background: var(--black);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--silver);
}

.footer-logo {
    height: 24px;
    width: auto;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(176, 184, 192, 0.5);
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .cap-grid,
    .div-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-grey);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition);
        border-left: 1px solid rgba(176, 184, 192, 0.08);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cycle-grid,
    .cap-grid,
    .div-grid {
        grid-template-columns: 1fr;
    }

    .tier-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 5rem 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-logo {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat {
        padding: 1.25rem 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}