@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');


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


html {
    scroll-behavior: smooth;
}


body {
    background: #071014;
    color: #e9f1f2;
    font-family: 'Inter', sans-serif;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 80px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    background: rgba(7,16,20,0.92);

    position: sticky;
    top: 0;
    z-index: 100;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}


.logo-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #4fc3c8;
    border-radius: 8px;

    color: #4fc3c8;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}


.logo h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
}


.logo p {
    font-size: 9px;
    color: #718388;
    letter-spacing: 1px;
}


nav {
    display: flex;
    gap: 35px;
}


nav a {
    color: #91a3a7;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}


nav a:hover {
    color: #4fc3c8;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: calc(100vh - 80px);

    padding: 80px 10%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    overflow: hidden;
}


.hero-content {
    max-width: 620px;
}


.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #4fc3c8;

    font-size: 11px;
    letter-spacing: 2px;

    margin-bottom: 30px;
}


.status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #4fc3c8;

    box-shadow: 0 0 12px #4fc3c8;
}


.hero h2 {
    font-family: 'Space Grotesk', sans-serif;

    font-size: clamp(55px, 7vw, 95px);

    line-height: 0.95;

    letter-spacing: -4px;

    margin-bottom: 30px;
}


.hero h2 span {
    color: #4fc3c8;
}


.hero p {
    max-width: 540px;

    color: #8b9ca0;

    font-size: 16px;
    line-height: 1.8;

    margin-bottom: 35px;
}


#startAnalysis {
    padding: 15px 25px;

    background: #4fc3c8;
    color: #071014;

    border: none;
    border-radius: 5px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;
}


#startAnalysis span {
    margin-left: 15px;
}


#startAnalysis:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79,195,200,0.2);
}


/* =========================
   RADAR
========================= */

.hero-visual {
    width: 420px;
    height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.radar {
    width: 360px;
    height: 360px;

    border: 1px solid rgba(79,195,200,0.35);

    border-radius: 50%;

    position: relative;

    background:
        radial-gradient(
            circle,
            rgba(79,195,200,0.05),
            transparent 65%
        );
}


.radar-ring {
    position: absolute;

    border: 1px solid rgba(79,195,200,0.18);

    border-radius: 50%;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}


.ring-1 {
    width: 65%;
    height: 65%;
}


.ring-2 {
    width: 38%;
    height: 38%;
}


.ring-3 {
    width: 15%;
    height: 15%;
}


.radar-line {
    position: absolute;

    width: 50%;
    height: 1px;

    background: #4fc3c8;

    top: 50%;
    left: 50%;

    transform-origin: left center;

    animation: radarScan 4s linear infinite;

    box-shadow: 0 0 10px #4fc3c8;
}


@keyframes radarScan {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


.radar-point {
    width: 7px;
    height: 7px;

    position: absolute;

    border-radius: 50%;

    background: #4fc3c8;

    box-shadow: 0 0 15px #4fc3c8;
}


.point-1 {
    top: 25%;
    left: 60%;
}


.point-2 {
    top: 65%;
    left: 30%;
}


.point-3 {
    top: 42%;
    left: 76%;
}


/* =========================
   SECTIONS
========================= */

.analysis-section,
.about-section {
    padding: 120px 10%;
}


.section-label {
    color: #4fc3c8;

    font-size: 10px;

    letter-spacing: 2px;
}


.section-heading h2,
.about-section h2 {
    font-family: 'Space Grotesk', sans-serif;

    font-size: 50px;

    margin: 15px 0;
}


.section-heading p,
.about-section p {
    color: #819296;

    max-width: 600px;

    line-height: 1.7;
}


/* =========================
   ANALYSIS CARDS
========================= */

.analysis-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-top: 50px;
}


.analysis-card {
    padding: 30px;

    min-height: 230px;

    background: #0b181d;

    border: 1px solid rgba(255,255,255,0.07);

    border-radius: 8px;

    transition: 0.3s;
}


.analysis-card:hover {
    border-color: rgba(79,195,200,0.3);

    transform: translateY(-3px);
}


.card-icon {
    color: #4fc3c8;

    font-size: 25px;

    margin-bottom: 25px;
}


.analysis-card h3 {
    font-family: 'Space Grotesk', sans-serif;

    margin-bottom: 10px;
}


.analysis-card p {
    color: #718388;

    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 25px;
}


.upload-button {
    display: inline-block;

    padding: 10px 15px;

    border: 1px solid #4fc3c8;

    color: #4fc3c8;

    border-radius: 4px;

    font-size: 12px;

    cursor: pointer;
}


#fileName {
    margin-top: 12px;

    font-size: 10px;

    color: #637579;
}


.metric {
    display: flex;

    justify-content: space-between;

    padding: 15px 0;

    border-bottom: 1px solid rgba(255,255,255,0.06);
}


.metric span {
    color: #718388;

    font-size: 12px;
}


.metric strong {
    color: #4fc3c8;

    font-size: 13px;
}


.coordinates {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 20px;
}


.coordinates span {
    color: #65767a;

    font-size: 10px;
}


.coordinates strong {
    color: #dce7e8;

    font-size: 15px;
}


/* =========================
   ABOUT
========================= */

.about-section {
    border-top: 1px solid rgba(255,255,255,0.06);
}


.about-section h2 {
    font-size: clamp(45px, 6vw, 75px);
}


.about-section p {
    font-size: 16px;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 30px 10%;

    display: flex;

    justify-content: space-between;

    border-top: 1px solid rgba(255,255,255,0.06);

    color: #607176;

    font-size: 11px;
}


footer strong {
    color: #4fc3c8;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;

        align-items: flex-start;

        gap: 70px;
    }

    .hero-visual {
        align-self: center;
    }

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

}


@media (max-width: 600px) {

    nav {
        display: none;
    }

    .hero {
        padding: 60px 7%;
    }

    .analysis-section,
    .about-section {
        padding: 80px 7%;
    }

    .hero-visual {
        width: 100%;
    }

    .radar {
        width: 280px;
        height: 280px;
    }

    footer {
        flex-direction: column;

        gap: 10px;
    }

}
/* =========================================
   MARIS INVESTIGATION DASHBOARD
========================================= */

.dashboard-section {
    padding: 100px 7%;
    background: #071014;
}


/* Dashboard Header */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 35px;
}


.dashboard-header h2 {
    font-family: 'Space Grotesk', sans-serif;

    font-size: clamp(42px, 5vw, 65px);

    letter-spacing: -2px;

    margin: 12px 0;
}


.dashboard-header p {
    color: #819296;

    max-width: 600px;

    line-height: 1.7;
}


.system-status {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #4fc3c8;

    font-size: 10px;

    letter-spacing: 2px;
}


.system-status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #4fc3c8;

    box-shadow: 0 0 12px #4fc3c8;
}


/* =========================================
   INCIDENT STATUS
========================================= */

.incident-status {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 30px 35px;

    margin-bottom: 20px;

    background: #0b181d;

    border: 1px solid rgba(79,195,200,0.25);

    border-left: 3px solid #4fc3c8;

    border-radius: 7px;
}


.incident-indicator {
    color: #4fc3c8;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 12px;
}


.incident-indicator span {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 8px;

    border-radius: 50%;

    background: #4fc3c8;
}


.incident-main h3 {
    font-family: 'Space Grotesk', sans-serif;

    font-size: 25px;

    margin-bottom: 8px;
}


.incident-main p {
    color: #718388;

    font-size: 13px;
}


.incident-metrics {
    display: flex;

    gap: 45px;
}


.incident-metrics div {
    min-width: 100px;
}


.incident-metrics span,
.source-details span,
.data-list span {
    display: block;

    color: #637579;

    font-size: 9px;

    letter-spacing: 1.5px;

    margin-bottom: 7px;
}


.incident-metrics strong {
    color: #dce7e8;

    font-size: 14px;
}


/* =========================================
   MAP
========================================= */

.map-panel {
    background: #0b181d;

    border: 1px solid rgba(255,255,255,0.07);

    border-radius: 7px;

    overflow: hidden;

    margin-bottom: 25px;
}


.map-header {
    padding: 25px 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.07);
}


.map-header h3 {
    font-family: 'Space Grotesk', sans-serif;

    font-size: 20px;

    margin-top: 7px;
}


.map-controls {
    display: flex;

    gap: 5px;
}


.map-control {
    background: transparent;

    border: 1px solid rgba(255,255,255,0.1);

    color: #718388;

    padding: 8px 13px;

    font-size: 9px;

    letter-spacing: 1px;

    cursor: pointer;

    border-radius: 3px;
}


.map-control.active {
    color: #4fc3c8;

    border-color: #4fc3c8;
}


#marisMap {
    height: 500px;

    width: 100%;

    background: #081419;
}


/* Leaflet dark theme */

.leaflet-container {
    background: #081419;
    font-family: 'Inter', sans-serif;
}


.leaflet-control-zoom a {
    background: #0b181d !important;

    color: #dce7e8 !important;

    border-color: rgba(255,255,255,0.1) !important;
}


.leaflet-control-attribution {
    background: rgba(7,16,20,0.85) !important;

    color: #637579 !important;
}


.leaflet-control-attribution a {
    color: #4fc3c8 !important;
}


.map-legend {
    padding: 15px 25px;

    display: flex;

    gap: 30px;

    color: #718388;

    font-size: 10px;

    border-top: 1px solid rgba(255,255,255,0.06);
}


.map-legend div {
    display: flex;

    align-items: center;

    gap: 7px;
}


.legend-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}


.spill-dot {
    background: #4fc3c8;

    box-shadow: 0 0 8px #4fc3c8;
}


.source-dot {
    background: #ffffff;

    box-shadow: 0 0 8px #ffffff;
}


.legend-line {
    width: 22px;
    height: 2px;

    background: #4fc3c8;
}


/* =========================================
   PRIORITY CARDS
========================================= */

.priority-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-bottom: 80px;
}


.dashboard-card {
    background: #0b181d;

    border: 1px solid rgba(255,255,255,0.07);

    border-radius: 7px;

    padding: 30px;
}


.card-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;
}


.card-status {
    color: #637579;

    font-size: 8px;

    letter-spacing: 1.5px;
}


.dashboard-card h3 {
    font-family: 'Space Grotesk', sans-serif;

    font-size: 22px;

    margin-bottom: 8px;
}


.dashboard-card > p {
    color: #718388;

    font-size: 12px;

    margin-bottom: 25px;
}


.source-details {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,0.06);
}


.source-details strong {
    font-size: 13px;

    color: #dce7e8;
}


.data-list div {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 13px 0;

    border-bottom: 1px solid rgba(255,255,255,0.05);
}


.data-list strong {
    font-size: 12px;

    color: #dce7e8;
}


/* =========================================
   RESPONSIVE DASHBOARD
========================================= */

@media (max-width: 900px) {

    .dashboard-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    .incident-status {
        flex-direction: column;

        align-items: flex-start;

        gap: 30px;
    }


    .incident-metrics {
        width: 100%;

        justify-content: space-between;
    }


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

}


@media (max-width: 600px) {

    .dashboard-section {
        padding: 70px 5%;
    }


    .incident-metrics {
        flex-direction: column;

        gap: 15px;
    }


    .map-header {
        align-items: flex-start;

        gap: 20px;

        flex-direction: column;
    }


    #marisMap {
        height: 400px;
    }


    .map-legend {
        flex-wrap: wrap;

        gap: 15px;
    }


    .source-details {
        grid-template-columns: 1fr;
    }

}
/* Dashboard upload */

.dashboard-upload {
    display: inline-block;

    margin-top: 18px;

    padding: 9px 14px;

    border: 1px solid #4fc3c8;

    border-radius: 4px;

    color: #4fc3c8;

    font-size: 9px;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.3s;
}


.dashboard-upload:hover {
    background: #4fc3c8;

    color: #071014;
}


.dashboard-file {
    margin-left: 12px;

    color: #536468;

    font-size: 9px;
}


/* =========================================
   NEW: SHIP STRIP (decorative, scroll-friendly)
========================================= */

.ship-strip {
    width: 100%;
    height: 140px;

    overflow: hidden;

    background: linear-gradient(180deg, #071014 0%, #081419 100%);

    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ship-strip-svg {
    width: 100%;
    height: 100%;

    display: block;
}

.wave {
    fill: rgba(79,195,200,0.06);
}

.wave-front {
    fill: rgba(79,195,200,0.1);
    animation: waveDrift 9s ease-in-out infinite;
}

.wave-back {
    animation: waveDrift 13s ease-in-out infinite reverse;
}

@keyframes waveDrift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-40px); }
}

.ship-group {
    animation: shipSail 26s linear infinite;
}

@keyframes shipSail {
    from { transform: translateX(-15%); }
    to { transform: translateX(115%); }
}

.ship-bob {
    animation: shipBob 4s ease-in-out infinite;
}

@keyframes shipBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}


/* =========================================
   NEW: CONTROL PANEL (coords + run button)
========================================= */

.control-panel {
    display: flex;

    align-items: flex-end;

    flex-wrap: wrap;

    gap: 16px;

    margin-top: 16px;
}


.dashboard-coords {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


.coord-input {
    background: #081419;

    border: 1px solid rgba(255,255,255,0.1);

    color: #dce7e8;

    padding: 10px 12px;

    border-radius: 4px;

    font-size: 12px;

    font-family: 'Inter', sans-serif;

    width: 120px;

    transition: 0.3s;
}


.coord-input-wide {
    width: 200px;
}


.coord-input:focus {
    outline: none;

    border-color: #4fc3c8;
}


.run-analysis-btn {
    padding: 13px 22px;

    background: #4fc3c8;
    color: #071014;

    border: none;
    border-radius: 5px;

    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    transition: 0.3s;

    white-space: nowrap;
}


.run-analysis-btn span {
    transition: transform 0.3s;
}


.run-analysis-btn:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(79,195,200,0.25);
}


.run-analysis-btn:hover:not(:disabled) span {
    transform: translateX(4px);
}


.run-analysis-btn:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none;
    box-shadow: none;
}


.analysis-error {
    color: #ff6b6b;

    display: block;

    margin-top: 10px;

    font-size: 12px;
}


/* =========================================
   NEW: PIPELINE LOADING STEPS
========================================= */

.analysis-steps {
    display: none;

    flex-direction: column;

    gap: 10px;

    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,0.06);
}


.analysis-steps.active {
    display: flex;
}


.step-row {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #536468;

    font-size: 12px;

    letter-spacing: 0.5px;

    transition: color 0.3s;
}


.step-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #263136;

    flex-shrink: 0;

    transition: 0.3s;
}


.step-row.step-active {
    color: #dce7e8;
}


.step-row.step-active .step-dot {
    background: #4fc3c8;

    box-shadow: 0 0 10px #4fc3c8;

    animation: stepPulse 1s ease-in-out infinite;
}


.step-row.step-done {
    color: #4fc3c8;
}


.step-row.step-done .step-dot {
    background: #4fc3c8;

    box-shadow: none;

    animation: none;
}


@keyframes stepPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}


/* =========================================
   NEW: SCROLL REVEAL
========================================= */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition: opacity 0.7s ease, transform 0.7s ease;
}


.reveal.in-view {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================
   NEW RESPONSIVE ADDITIONS
========================================= */

@media (max-width: 600px) {

    .ship-strip {
        height: 100px;
    }

    .control-panel {
        flex-direction: column;

        align-items: stretch;
    }

    .run-analysis-btn {
        justify-content: center;
    }

    .coord-input,
    .coord-input-wide {
        width: 100%;
    }

}