
/* ===========================
THEME: AERO-INDUSTRIAL BRIGHT
=========================== */
:root {
--bg: #ffffff;
--bg-alt: #f3f6fb;
--bg-panel: #eef3fa;
--ink: #151821;
--ink-soft: #616b7b;
--accent: #00a0ff;
--accent-strong: #006bb7;
--accent-soft: #d5ecff;
--warning: #ffb347;
--danger: #ff4f4f;
--success: #44c38c;

--border-subtle: #dde3f0;
--shadow-soft: 0 14px 35px rgba(19, 36, 64, 0.12);

--radius-lg: 22px;
--radius-md: 14px;
--radius-pill: 999px;

--transition-fast: 0.18s ease-out;
--transition-med: 0.28s ease-out;

--font-display: "Barlow", system-ui, -apple-system, sans-serif;
--font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

* {
box-sizing: border-box;
}

body {
margin: 0;
background: radial-gradient(circle at top, #ffffff 0, #f4f7fc 60%, #e5ecf9 100%);
color: var(--ink);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}

a {
text-decoration: none;
color: inherit;
}

/* ===========================
NAVBAR
=========================== */
nav {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 32px;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
box-shadow: 0 2px 10px rgba(6, 22, 47, 0.08);
}

.nav-left {
display: flex;
align-items: center;
gap: 10px;
}

.logo-mark {
width: 32px;
height: 32px;
border-radius: 10px;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 60%, #003d7a 100%);
position: relative;
overflow: hidden;
}

.logo-mark::before {
content: "";
position: absolute;
width: 140%;
height: 6px;
background: rgba(255, 255, 255, 0.82);
transform: rotate(-20deg);
top: 8px;
left: -10px;
}

.logo-text {
font-family: var(--font-display);
font-weight: 800;
font-size: 1.4rem;
letter-spacing: 0.2em;
}

.logo-sub {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.18em;
color: var(--ink-soft);
margin-top: 2px;
}

.nav-center {
flex: 1;
display: flex;
justify-content: center;
}

.search-bar {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg-alt);
padding: 8px 14px;
border-radius: var(--radius-pill);
border: 1px solid var(--border-subtle);
min-width: 320px;
max-width: 480px;
}

.search-bar span {
font-size: 0.9rem;
opacity: 0.7;
}

.search-bar input {
border: none;
outline: none;
background: transparent;
flex: 1;
font-size: 0.9rem;
}

.nav-right {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.9rem;
}

.nav-right button {
border-radius: var(--radius-pill);
padding: 8px 16px;
border: 1px solid transparent;
cursor: pointer;
font-family: var(--font-body);
font-weight: 600;
font-size: 0.9rem;
transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn-ghost {
background: transparent;
border-color: var(--border-subtle);
color: var(--ink-soft);
}

.btn-ghost:hover {
background: #f7f9ff;
transform: translateY(-1px);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.btn-primary {
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
color: #ffffff;
box-shadow: 0 8px 20px rgba(0, 139, 255, 0.35);
}

.btn-primary:hover {
transform: translateY(-1px) translateX(-0.5px);
box-shadow: 0 10px 24px rgba(0, 118, 232, 0.5);
}

/* ===========================
LAYOUT
=========================== */
.page {
padding: 32px 6vw 80px;
}

.hero-grid {
display: grid;
grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
gap: 40px;
align-items: center;
}

@media (max-width: 960px) {
.hero-grid {
grid-template-columns: 1fr;
}
.nav-center {
display: none;
}
.page {
padding-inline: 18px;
}
}

/* ===========================
HERO PANEL (LEFT)
=========================== */
.hero-title {
font-family: var(--font-display);
font-size: clamp(2.4rem, 4vw, 3.4rem);
line-height: 1.05;
letter-spacing: 0.04em;
text-transform: uppercase;
margin-bottom: 10px;
}

.hero-title span {
display: inline-block;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 50%, #003a82 100%);
-webkit-background-clip: text;
color: transparent;
}

.hero-kicker {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.18em;
color: var(--accent-strong);
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
}

.hero-kicker::before {
content: "";
width: 26px;
height: 1px;
background: var(--accent-strong);
}

.hero-copy {
max-width: 460px;
font-size: 0.98rem;
line-height: 1.7;
color: var(--ink-soft);
margin-bottom: 20px;
}

.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 18px;
}

.hero-meta {
display: flex;
flex-wrap: wrap;
gap: 10px;
font-size: 0.78rem;
color: var(--ink-soft);
text-transform: uppercase;
letter-spacing: 0.16em;
}

.hero-meta span {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: var(--radius-pill);
background: rgba(0, 160, 255, 0.06);
}

.hero-meta span::before {
font-size: 0.9rem;
}

.hero-meta span:nth-child(1)::before {
content: "✈️";
}
.hero-meta span:nth-child(2)::before {
content: "🛰️";
}
.hero-meta span:nth-child(3)::before {
content: "⚖️";
}

/* ===========================
HERO VISUAL (RIGHT)
=========================== */
.hero-visual {
position: relative;
min-height: 320px;
border-radius: 32px;
background: radial-gradient(circle at top, #eff7ff 0%, #d8e5f7 40%, #c8d8f5 100%);
box-shadow: var(--shadow-soft);
overflow: hidden;
padding: 20px;
}

.cloud {
position: absolute;
width: 120px;
height: 50px;
background: rgba(255, 255, 255, 0.92);
border-radius: 50px;
filter: blur(1px);
animation: floatCloud 24s linear infinite;
}

.cloud::before,
.cloud::after {
content: "";
position: absolute;
background: inherit;
border-radius: inherit;
}

.cloud::before {
width: 70px;
height: 40px;
top: -20px;
left: 12px;
}
.cloud::after {
width: 60px;
height: 32px;
top: -12px;
right: 10px;
}

.cloud.c1 { top: 12%; left: -10%; animation-delay: -4s; }
.cloud.c2 { top: 60%; left: 80%; animation-delay: -10s; width: 150px; }
.cloud.c3 { top: 38%; left: 10%; animation-delay: -16s; }

@keyframes floatCloud {
0% { transform: translateX(0); }
100% { transform: translateX(140%); }
}

.flight-map {
position: relative;
width: 100%;
height: 100%;
border-radius: 26px;
background: radial-gradient(circle at center, #f9fbff 0%, #e1ebfb 55%);
border: 1px solid rgba(255, 255, 255, 0.6);
overflow: hidden;
padding: 18px;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.flight-header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.16em;
color: var(--ink-soft);
}

.flight-header span strong {
color: var(--accent-strong);
}

.status-pill {
padding: 4px 10px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.06);
display: inline-flex;
align-items: center;
gap: 6px;
}

.status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--success);
box-shadow: 0 0 0 6px rgba(68, 195, 140, 0.28);
}

.flight-path {
position: relative;
margin: 18px 0;
flex: 1;
border-radius: 20px;
border: 1px dashed rgba(0, 55, 123, 0.25);
background-image:
radial-gradient(circle at 1px 1px, rgba(0, 90, 160, 0.18) 1px, transparent 0);
background-size: 20px 20px;
overflow: hidden;
}

.jetstream-arc {
position: absolute;
inset: 22% 10%;
border-radius: 999px;
border-top: 3px solid rgba(0, 151, 255, 0.8);
border-left: 3px solid rgba(0, 151, 255, 0.15);
border-right: 3px solid transparent;
border-bottom: 3px solid transparent;
transform: rotate(-6deg);
}

.flight-dot {
position: absolute;
width: 14px;
height: 14px;
border-radius: 50%;
background: #ffffff;
border: 3px solid var(--accent-strong);
box-shadow: 0 0 0 6px rgba(0, 151, 255, 0.23);
}

.flight-dot.origin { left: 12%; bottom: 18%; }
.flight-dot.dest { right: 12%; top: 20%; }

.plane-icon {
position: absolute;
width: 26px;
height: 26px;
border-radius: 999px;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
font-size: 0.85rem;
box-shadow: 0 6px 18px rgba(0, 130, 255, 0.7);
animation: planeMove 11s cubic-bezier(0.35, 0.01, 0.29, 0.98) infinite;
}

@keyframes planeMove {
0% { transform: translate(10%, 60%) rotate(8deg); }
50% { transform: translate(140%, -10%) rotate(-12deg) scale(1.05); }
100% { transform: translate(10%, 60%) rotate(8deg); }
}

.flight-footer {
display: flex;
justify-content: space-between;
gap: 10px;
font-size: 0.78rem;
}

.flight-chip-row {
display: flex;
gap: 6px;
flex-wrap: wrap;
}

.chip {
padding: 5px 10px;
border-radius: var(--radius-pill);
background: rgba(0, 0, 0, 0.03);
display: inline-flex;
align-items: center;
gap: 6px;
}

.chip span {
font-size: 0.9rem;
}

.chip.icon-fuel span::before { content: "⛽"; margin-right: 2px; }
.chip.icon-food span::before { content: "🍱"; margin-right: 2px; }
.chip.icon-risk span::before { content: "☠️"; margin-right: 2px; }

/* ===========================
WORLD STATUS RAIL
=========================== */
.status-rail {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
margin: 26px 0 12px;
font-size: 0.78rem;
}

@media (max-width: 960px) {
.status-rail {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

.status-card {
background: rgba(255, 255, 255, 0.88);
border-radius: var(--radius-md);
padding: 10px 12px;
border: 1px solid rgba(213, 224, 241, 0.9);
display: flex;
flex-direction: column;
gap: 4px;
}

.status-label {
text-transform: uppercase;
letter-spacing: 0.16em;
color: var(--ink-soft);
font-size: 0.7rem;
}

.status-value {
display: flex;
align-items: center;
gap: 6px;
font-weight: 700;
}

.trend-up::after {
content: "▲";
font-size: 0.7rem;
color: var(--success);
}

.trend-down::after {
content: "▼";
font-size: 0.7rem;
color: var(--danger);
}

.status-sub {
font-size: 0.7rem;
color: var(--ink-soft);
}

/* ===========================
MARKETPLACE STRIP
=========================== */
.market-strip {
position: relative;
margin-top: 32px;
border-radius: var(--radius-lg);
background: linear-gradient(90deg, rgba(0, 160, 255, 0.06), rgba(255, 255, 255, 0.95));
border: 1px solid rgba(204, 220, 240, 0.9);
overflow: hidden;
padding: 12px 18px;
display: flex;
align-items: center;
gap: 18px;
}

.market-label {
font-size: 0.76rem;
text-transform: uppercase;
letter-spacing: 0.16em;
color: var(--accent-strong);
display: inline-flex;
align-items: center;
gap: 6px;
padding-right: 10px;
border-right: 1px dashed rgba(0, 115, 211, 0.35);
}

.market-label::before {
content: "⛓️";
font-size: 1rem;
}

.ticker {
flex: 1;
overflow: hidden;
position: relative;
}

.ticker-track {
display: inline-flex;
gap: 18px;
white-space: nowrap;
animation: tickerMove 26s linear infinite;
}

@keyframes tickerMove {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}

.tick {
font-size: 0.8rem;
padding: 4px 10px;
border-radius: var(--radius-pill);
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(212, 221, 238, 0.9);
display: inline-flex;
align-items: center;
gap: 6px;
}

.tick span {
font-weight: 700;
}

.tick.fuel span { color: var(--accent-strong); }
.tick.oil span { color: #c97a2d; }
.tick.food span { color: #5c9b3b; }
.tick.infl span { color: #7e3dd9; }

.tick .delta.up {
color: var(--success);
}
.tick .delta.down {
color: var(--danger);
}

/* ===========================
MAIN SECTION GRID: MODES + MARKET + TRAVEL
=========================== */
.section-grid {
margin-top: 40px;
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
gap: 24px;
}

@media (max-width: 960px) {
.section-grid {
grid-template-columns: 1fr;
}
}

.panel {
background: var(--bg-panel);
border-radius: var(--radius-lg);
border: 1px solid var(--border-subtle);
box-shadow: var(--shadow-soft);
padding: 18px 20px 20px;
}

.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}

.panel-title {
font-family: var(--font-display);
font-size: 0.96rem;
text-transform: uppercase;
letter-spacing: 0.16em;
}

.panel-tag {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.16em;
color: var(--ink-soft);
padding: 4px 10px;
border-radius: var(--radius-pill);
border: 1px solid rgba(179, 193, 220, 0.85);
background: rgba(255, 255, 255, 0.7);
}

/* MODES: PIRATE / ALLIANCE / MERCHANT */
.modes-grid {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
margin-top: 6px;
}

.mode-card {
border-radius: var(--radius-md);
padding: 10px 12px;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(210, 222, 239, 0.96);
display: flex;
justify-content: space-between;
gap: 14px;
align-items: center;
cursor: pointer;
transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}

.mode-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 24px rgba(26, 46, 79, 0.25);
border-color: var(--accent-strong);
background: #ffffff;
}

.mode-main {
display: flex;
gap: 10px;
align-items: center;
max-width: 75%;
}

.mode-icon {
width: 34px;
height: 34px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
}

.mode-icon.pirate {
background: radial-gradient(circle at top, #ffe2d8 0, #ffbfbf 70%);
}

.mode-icon.alliance {
background: radial-gradient(circle at top, #e0f7df 0, #bcead2 70%);
}

.mode-icon.trader {
background: radial-gradient(circle at top, #e1f0ff 0, #c8e1ff 70%);
}

.mode-title {
font-weight: 700;
font-size: 0.95rem;
margin-bottom: 2px;
}

.mode-desc {
font-size: 0.78rem;
color: var(--ink-soft);
}

.mode-meta {
text-align: right;
font-size: 0.72rem;
color: var(--ink-soft);
}

.mode-meta strong {
display: block;
font-size: 0.8rem;
color: var(--ink);
}

/* MARKET PANEL */
.market-body {
font-size: 0.8rem;
margin-top: 6px;
}

.market-table {
width: 100%;
border-spacing: 0;
border-collapse: collapse;
margin-top: 6px;
font-size: 0.78rem;
}

.market-table thead {
text-transform: uppercase;
letter-spacing: 0.14em;
color: var(--ink-soft);
font-size: 0.7rem;
}

.market-table th,
.market-table td {
padding: 7px 6px;
text-align: left;
}

.market-table tbody tr {
background: rgba(255, 255, 255, 0.95);
border-radius: 10px;
}

.market-table tbody tr:nth-child(even) {
background: rgba(244, 248, 255, 0.96);
}

.market-table tbody tr:hover {
background: rgba(232, 243, 255, 1);
}

.pill-tag {
padding: 3px 8px;
border-radius: 999px;
font-size: 0.7rem;
background: rgba(0, 0, 0, 0.05);
}

.pill-critical {
background: rgba(255, 86, 86, 0.1);
color: var(--danger);
}

.pill-hot {
background: rgba(255, 185, 92, 0.18);
color: #c9771e;
}

.pill-stable {
background: rgba(104, 215, 160, 0.14);
color: #2b8456;
}

/* TRAVEL PLANNER */
.travel-form {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
margin-top: 6px;
}

@media (max-width: 720px) {
.travel-form {
grid-template-columns: 1fr;
}
}

.field {
font-size: 0.78rem;
display: flex;
flex-direction: column;
gap: 4px;
}

.field label {
text-transform: uppercase;
letter-spacing: 0.16em;
color: var(--ink-soft);
}

.field-select {
position: relative;
}

.field-select select,
.field-input input {
width: 100%;
border-radius: 12px;
border: 1px solid rgba(185, 198, 222, 0.95);
padding: 7px 10px;
font-size: 0.8rem;
background: #ffffff;
outline: none;
}

.field-select::after {
content: "▾";
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
font-size: 0.7rem;
color: var(--ink-soft);
pointer-events: none;
}

.travel-summary {
margin-top: 12px;
border-radius: var(--radius-md);
padding: 9px 10px;
background: rgba(255, 255, 255, 0.95);
font-size: 0.78rem;
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}

.travel-summary strong {
font-size: 0.85rem;
}

.travel-summary-resources {
display: flex;
gap: 8px;
flex-wrap: wrap;
font-size: 0.78rem;
}

.travel-summary-resources span {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.04);
}

.travel-cta {
margin-top: 10px;
display: flex;
justify-content: flex-end;
}

.btn-secondary {
border-radius: var(--radius-pill);
padding: 7px 14px;
font-size: 0.8rem;
border: none;
cursor: pointer;
background: var(--accent-soft);
color: var(--accent-strong);
font-weight: 600;
transition: var(--transition-fast);
}

.btn-secondary:hover {
background: #b1dbff;
transform: translateY(-1px);
}

/* ACCESSIBILITY: REDUCE MOTION */
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}