:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --border: #1e293b;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --green: #22c55e;
    --orange: #f59e0b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 28%),
        var(--bg);
    color: var(--text);
}

.page {
    max-width: 1280px;
    margin: auto;
    padding: 36px;
}

.hero,
.boat-hero {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
    margin-bottom: 34px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 700;
}

h1 {
    margin: 8px 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
}

h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

h3 {
    margin: 20px 0 4px;
    font-size: 26px;
}

p {
    color: var(--muted);
}

.hero-badge,
.freshness-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(34, 197, 94, 0.14));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    padding: 18px 22px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.location-section {
    margin-bottom: 42px;
}

.boat-grid,
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.boat-card,
.metric-card {
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.boat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(15, 23, 42, 1);
}

.card-top,
.boat-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.location-pill.aix {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
}

.status-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.measurement {
    margin: 0;
    font-size: 14px;
}

.last-update {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.last-update span,
.freshness-card span,
.metric-title {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.last-update strong,
.freshness-card strong {
    font-size: 15px;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.boat-title-row {
    margin-top: 20px;
}

.metric-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-value {
    font-size: 42px;
    font-weight: 800;
    margin: 16px 0;
}

.metric-details {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 720px) {
    .page {
        padding: 18px;
    }

    .hero,
    .boat-title-row {
        flex-direction: column;
    }

    .hero-badge,
    .freshness-card {
        width: 100%;
    }
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 34px;
}

.status-panel,
.details-section {
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.details-section {
    margin-bottom: 28px;
}

.status-panel h2,
.details-section h2 {
    margin-top: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: var(--muted);
}

.info-row strong {
    text-align: right;
}

.split-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.split-panel h3 {
    margin-top: 0;
    color: var(--accent);
}

.detail-line {
    color: var(--text);
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    line-height: 1.7;
}