/* ===================================
   DATA GALLEY - MARINE ASSET INTELLIGENCE
   Lightweight Static Site Stylesheet
   No dependencies, pure CSS3
   =================================== */

/* =============================
   CSS CUSTOM PROPERTIES
   ============================= */
:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #22d3ee;
    --secondary-bg: #1e293b;
    --gold-accent: #c5a059;
    --text-muted: #4a6a8a;
    --border: #1e3a5f;
    --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Consolas, monospace;
}

/* =============================
   GLOBAL RESET & BASE STYLES
   ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

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

/* =============================
   UTILITY CLASSES
   ============================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight { color: var(--accent-color); }
.gold { color: var(--gold-accent); }

/* Primary CTA Button */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent-color);
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

/* =============================
   RESPONSIVE CONTENT SWAPS
   ============================= */
@media (max-width: 767px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        font-size: 9px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .logo-sep {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0 0 !important;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero h1, .hero .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .hero-content > p, .hero .hero-sub {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .hero-trust {
        font-size: 0.7rem !important;
    }

    /* Sections: tighter padding on mobile */
    .pain-section {
        padding: 50px 0 !important;
    }

    .solution-section {
        padding: 50px 0 !important;
    }

    .services-section {
        padding: 50px 0 !important;
    }

    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 30px !important;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .step-content h4 {
        font-size: 1.2rem;
    }

    .credibility {
        padding: 40px 0 !important;
    }

    /* Upload form: stack email + button */
    #lead-form-container .btn,
    #submit-btn {
        width: 100%;
    }

    /* Buyer router: tighter on small screens */
    .buyer-router {
        padding: 30px 15px 25px 15px !important;
    }

    .buyer-card {
        padding: 20px 18px;
    }
}

@media (min-width: 768px) {
    .hero h1, .hero .hero-title { 
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    
    .hero p, .hero .hero-sub {
        font-size: 1.25rem;
        margin-bottom: 40px;
    }
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    font-family: var(--font-mono);
}

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

.logo-sep {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
    letter-spacing: 1px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--text-color);
}

/* Nav CTA Button */
.main-nav a.nav-cta {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav a.nav-cta:hover {
    background: #06b6d4;
    transform: translateY(-1px);
}

/* =============================
   HERO SECTION
   ============================= */
.hero {
    height: auto;
    min-height: 100vh;
    padding: 60px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
}

/* Animated Grid Floor */
.hero::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.15) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(1000px) rotateX(60deg);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
    animation: grid-move 20s linear infinite;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes grid-move {
    0% { transform: perspective(1000px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(1000px) rotateX(60deg) translateY(80px); }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    background: rgba(15, 23, 42, 0.6);
    padding: 30px 20px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 25px;
    font-weight: 300;
}

.sub-text {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

/* =============================
   PAIN POINTS SECTION
   ============================= */
.pain-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

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

.card {
    background: rgba(15, 23, 42, 0.5);
    padding: 40px;
    border-radius: 8px;
    border-left: 3px solid var(--gold-accent);
}

.card h3 {
    margin-bottom: 15px;
    color: #e2e8f0;
}

.card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* =============================
   BEFORE/AFTER COMPARISON
   ============================= */
.before-after-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    max-width: 100%;
}

.comparison-item {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.comparison-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.comparison-item h3.before-label { color: #ef4444; }
.comparison-item h3.after-label { color: var(--accent-color); }

.comparison-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
    max-width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* =============================
   SOLUTION METHODOLOGY
   ============================= */
.solution-section {
    padding: 100px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 0.8;
    margin-right: 20px;
}

.step-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* =============================
   SERVICES & PRICING
   ============================= */
.services-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.retainer-note {
    text-align: center;
    margin-top: 50px;
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
}

/* =============================
   CREDIBILITY SECTION
   ============================= */
.credibility {
    padding: 80px 0;
    text-align: center;
}

.credibility h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.credibility p {
    max-width: 600px;
    margin: 0 auto;
    color: #94a3b8;
}

/* =============================
   FOOTER
   ============================= */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.9rem;
}

/* =============================
   LEAD GENERATION FORM
   ============================= */
#lead-form-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-in;
    margin-top: 0;
}

#lead-form-container.is-visible {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

#email-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: rgba(30, 41, 59, 0.5);
    color: white;
    font-size: 16px;
    margin-bottom: 1rem;
}

#submit-btn {
    width: 100%;
    background-color: #fbbf24;
    color: #0f172a;
    font-weight: bold;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

#submit-btn:active {
    transform: scale(0.98);
}

/* =============================
   DESKTOP RESPONSIVE (768px+)
   ============================= */
@media (min-width: 768px) {
    header {
        position: relative;
        background: transparent;
        backdrop-filter: none;
        padding: 30px 0;
        border-bottom: none;
        z-index: 10;
    }
    
    .main-nav {
        display: flex;
        gap: 30px;
        align-items: center;
    }
    
    .hero {
        height: 90vh;
        padding: 0;
        min-height: auto;
    }
    
    .hero-content { padding: 40px; }
    
    .hero h1 { 
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    
    .grid { 
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .before-after-container {
        flex-direction: row;
        gap: 50px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }
    
    .comparison-item {
        flex: 1;
        max-width: 650px;
    }
    
    .comparison-image {
        height: 100%;
        min-height: 400px;
    }
    
    .comparison-image img {
        max-height: 500px;
        object-fit: contain;
    }
}

/* =============================
   BORROWED AUTHORITY — LOGO BAR
   ============================= */
.authority-logo {
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.authority-logo:hover {
    opacity: 0.9;
}

/* NEW HERO CTA BUTTONS */
.hero-cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-cta-container .btn {
    padding: 14px 32px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.hero-cta-container .primary-cta {
    background-color: #22d3ee !important;
    color: #0f172a !important;
    border: 1px solid #22d3ee !important;
    font-weight: 600;
}

.hero-cta-container .primary-cta:hover {
    background-color: transparent !important;
    color: #22d3ee !important;
}

.hero-cta-container .secondary-cta {
    background: transparent !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    font-weight: 600;
}

.hero-cta-container .secondary-cta:hover {
    border-color: #22d3ee !important;
    color: #22d3ee !important;
    background: transparent !important;
}

@media (max-width: 767px) {
    .hero-cta-container {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta-container .btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
}

/* =============================
   BUYER ROUTER
   ============================= */
.buyer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.buyer-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border: 1px solid #1e293b;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.buyer-card:hover {
    border-color: #22d3ee;
    transform: translateY(-3px);
}

.buyer-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 10px;
}

.buyer-pitch {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 14px;
}

.buyer-cta {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #22d3ee;
    letter-spacing: 0.3px;
}

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

@media (max-width: 600px) {
    .buyer-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================
   FINANCIAL DATA TRANSITION 
   ============================= */
.financial-data-transition {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.financial-data-copy h3 {
    font-size: 1.8rem;
    color: #f8fafc;
    margin-bottom: 15px;
    font-weight: 700;
}

.financial-data-copy p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0;
}

.financial-data-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.financial-data-image img {
    width: 100%;
    display: block;
    height: auto;
}

@media (min-width: 768px) {
    .financial-data-transition {
        flex-direction: row;
        gap: 50px;
        align-items: center;
    }
    
    .financial-data-copy {
        flex: 1;
        padding-right: 20px;
    }
    
    .financial-data-image {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .financial-data-copy h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .financial-data-copy p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

