:root {
    --page: #c9c4ba;
    --surface: #d8d4cb;
    --surface-soft: #e3e0d8;
    --surface-light: #ece9e2;
    --surface-deep: #b8b3aa;
    --ink: #263331;
    --muted: #69726e;
    --line: rgba(38, 51, 49, 0.14);
    --accent: #315f58;
    --accent-soft: #86a69d;
    --bronze: #9b7048;
    --success: #356f5f;
    --warning: #9d6940;
    --danger: #8d554b;
    --shadow: 0 24px 65px rgba(45, 52, 49, 0.10);
    --radius-large: 30px;
    --radius-medium: 21px;
    --radius-small: 13px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(255, 255, 255, 0.28),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #c4beb4 0%,
            #d5d0c6 46%,
            #c1bcb2 100%
        );
    color: var(--ink);
    font-family: "Manrope", sans-serif;
}

button,
a {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1500px, calc(100% - 34px));
    margin: 18px auto;
    overflow: hidden;
    border: 1px solid rgba(38, 51, 49, 0.10);
    border-radius: 34px;
    background: rgba(216, 212, 203, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 34px;
    border-bottom: 1px solid var(--line);
}

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

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: var(--ink);
    color: var(--surface-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 14px;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 0 5px rgba(157, 105, 64, 0.12);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(53, 111, 95, 0.12);
}

main {
    padding: 0 34px 34px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(350px, 0.75fr);
    gap: 64px;
    align-items: center;
    min-height: 500px;
    padding: 74px 34px 64px;
}

.eyebrow,
.section-kicker {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow span {
    width: 24px;
    height: 2px;
    background: var(--bronze);
}

.hero h1 {
    max-width: 780px;
    margin: 22px 0 18px;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.95;
}

.hero h1 em {
    display: block;
    color: var(--accent);
    font-family: Georgia, serif;
    font-weight: 400;
}

.hero-copy > p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.primary-button,
.secondary-button {
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.primary-button {
    background: var(--ink);
    color: var(--surface-soft);
}

.secondary-button {
    border: 1px solid var(--line);
    background: rgba(224, 221, 213, 0.55);
}

.route-overview {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            145deg,
            rgba(232, 229, 221, 0.94),
            rgba(187, 183, 174, 0.76)
        );
    box-shadow: 0 18px 50px rgba(38, 51, 49, 0.08);
}

.route-overview-head {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.live-pill {
    padding: 5px 9px;
    border-radius: 100px;
    background: rgba(49, 95, 88, 0.11);
    color: var(--accent);
}

.route-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin: 46px 0;
}

.airport strong {
    display: block;
    font-size: 44px;
    letter-spacing: -0.05em;
}

.airport small {
    color: var(--muted);
    font-size: 11px;
}

.airport-right {
    text-align: right;
}

.flight-path {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.path-line {
    width: 100%;
    height: 1px;
    background:
        repeating-linear-gradient(
            to right,
            var(--accent) 0,
            var(--accent) 7px,
            transparent 7px,
            transparent 13px
        );
}

.plane {
    position: absolute;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--surface-soft);
    transform: rotate(7deg);
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.overview-stats div {
    padding: 0 14px;
    border-right: 1px solid var(--line);
}

.overview-stats div:first-child {
    padding-left: 0;
}

.overview-stats div:last-child {
    padding-right: 0;
    border-right: none;
}

.overview-stats small {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.overview-stats strong {
    font-size: 13px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 14px;
}

.summary-card,
.panel {
    border: 1px solid var(--line);
    background: rgba(229, 226, 218, 0.69);
}

.summary-card {
    min-height: 174px;
    padding: 25px;
    border-radius: var(--radius-medium);
}

.featured-summary {
    background: var(--ink);
    color: var(--surface-soft);
}

.summary-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.featured-summary .summary-label {
    color: rgba(224, 221, 213, 0.66);
}

.summary-price {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    margin-top: 20px;
}

.summary-price strong {
    font-size: 57px;
    letter-spacing: -0.06em;
    line-height: 1;
}

.summary-price span {
    margin-bottom: 7px;
    color: var(--accent-soft);
    font-size: 14px;
}

.summary-value {
    display: block;
    margin-top: 20px;
    font-size: 42px;
    letter-spacing: -0.055em;
}

.summary-card p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.featured-summary p {
    color: rgba(224, 221, 213, 0.68);
}

.window-section {
    margin-top: 70px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.section-heading h2,
.panel-heading h2 {
    margin: 8px 0 0;
    font-size: 31px;
    letter-spacing: -0.045em;
}

.section-heading > p,
.architecture-heading > p {
    max-width: 530px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.window-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.window-card {
    position: relative;
    width: 100%;
    min-height: 330px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    background:
        linear-gradient(
            145deg,
            rgba(236, 233, 226, 0.84),
            rgba(213, 209, 199, 0.64)
        );
    text-align: left;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.window-card:hover {
    transform: translateY(-4px);
    border-color: rgba(49, 95, 88, 0.32);
    box-shadow: 0 18px 38px rgba(38, 51, 49, 0.09);
}

.window-card.selected {
    border-color: var(--accent);
    box-shadow:
        0 0 0 2px rgba(49, 95, 88, 0.12),
        0 18px 38px rgba(38, 51, 49, 0.10);
}

.window-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.window-number {
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.window-card h3 {
    margin: 7px 0 0;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.best-deal-badge,
.window-status-badge {
    flex: 0 0 auto;
    padding: 6px 8px;
    border-radius: 100px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.10em;
}

.best-deal-badge {
    background: var(--ink);
    color: var(--surface-soft);
}

.window-status-badge {
    background: rgba(49, 95, 88, 0.11);
    color: var(--accent);
}

.window-status-badge.waiting {
    background: rgba(157, 105, 64, 0.10);
    color: var(--warning);
}

.window-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 21px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.window-dates i {
    color: var(--bronze);
    font-style: normal;
}

.window-price {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    margin-top: 20px;
}

.window-price strong {
    font-size: 43px;
    letter-spacing: -0.06em;
    line-height: 1;
}

.window-price span {
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.window-waiting {
    margin-top: 26px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.window-updated {
    min-height: 16px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.sparkline-container {
    height: 83px;
    margin-top: 19px;
}

.sparkline {
    width: 100%;
    height: 82px;
    overflow: visible;
}

.sparkline-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.sparkline-placeholder {
    display: grid;
    height: 82px;
    place-items: center;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    color: var(--muted);
    font-size: 9px;
}

.window-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}

.loading-card {
    grid-column: 1 / -1;
    display: grid;
    min-height: 220px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    background: rgba(229, 226, 218, 0.69);
    color: var(--muted);
    font-size: 13px;
}

.error-card {
    color: var(--danger);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.65fr);
    gap: 14px;
    margin-top: 14px;
}

.panel {
    padding: 28px;
    border-radius: var(--radius-large);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.chart-summary {
    flex: 0 0 auto;
    text-align: right;
}

.chart-summary span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.chart-summary strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
}

.chart-wrapper {
    position: relative;
    min-height: 340px;
    margin-top: 29px;
}

#price-chart {
    width: 100%;
    height: 340px;
    overflow: visible;
}

.chart-grid-line {
    stroke: rgba(38, 51, 49, 0.11);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.chart-label {
    fill: var(--muted);
    font-size: 11px;
    font-family: "Manrope", sans-serif;
}

.chart-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.chart-area {
    fill: rgba(49, 95, 88, 0.09);
}

.chart-point {
    fill: var(--surface-light);
    stroke: var(--accent);
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.empty-state {
    display: none;
    min-height: 330px;
    place-items: center;
    padding: 30px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-medium);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
}

.chart-axis {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-left: 72px;
    color: var(--muted);
    font-size: 9px;
}

.itinerary-panel {
    display: flex;
    flex-direction: column;
}

.itinerary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.itinerary-head h2 {
    margin: 8px 0 0;
    font-size: 25px;
    letter-spacing: -0.045em;
}

.price-level-pill {
    padding: 7px 10px;
    border-radius: 100px;
    background: rgba(105, 114, 110, 0.11);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.price-level-pill.low {
    background: rgba(53, 111, 95, 0.12);
    color: var(--success);
}

.price-level-pill.typical {
    background: rgba(49, 95, 88, 0.11);
    color: var(--accent);
}

.price-level-pill.high {
    background: rgba(157, 105, 64, 0.12);
    color: var(--warning);
}

.flight-numbers {
    min-height: 18px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
}

.itinerary-price {
    margin-top: 35px;
    padding: 23px;
    border-radius: var(--radius-medium);
    background: var(--ink);
    color: var(--surface-soft);
}

.itinerary-price small {
    display: block;
    color: rgba(224, 221, 213, 0.62);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.itinerary-price > div {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    margin-top: 13px;
}

.itinerary-price strong {
    font-size: 48px;
    letter-spacing: -0.06em;
    line-height: 1;
}

.itinerary-price span {
    margin-bottom: 6px;
    color: var(--accent-soft);
    font-size: 12px;
}

.flight-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    background: var(--line);
}

.flight-details div {
    min-height: 88px;
    padding: 17px;
    background: rgba(230, 227, 219, 0.92);
}

.flight-details small {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.flight-details strong {
    font-size: 12px;
}

.delay-warning {
    margin-top: 18px;
    padding: 15px;
    border-radius: var(--radius-small);
    background: rgba(157, 105, 64, 0.09);
    color: var(--warning);
    font-size: 10px;
    line-height: 1.55;
}

.observations-panel {
    margin-top: 14px;
}

.stream-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 100px;
    background: rgba(49, 95, 88, 0.09);
    color: var(--accent);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.stream-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(53, 111, 95, 0.10);
}

.table-wrapper {
    margin-top: 25px;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

th {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    text-align: left;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(38, 51, 49, 0.08);
    font-size: 11px;
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-window-name {
    display: block;
    font-size: 10px;
}

.table-window-dates {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
}

.architecture-section {
    margin-top: 72px;
    padding: 38px 0 18px;
}

.architecture-heading {
    align-items: flex-start;
}

.architecture-flow {
    display: grid;
    grid-template-columns:
        minmax(120px, 1fr) auto
        minmax(120px, 1fr) auto
        minmax(120px, 1fr) auto
        minmax(120px, 1fr) auto
        minmax(120px, 1fr) auto
        minmax(120px, 1fr);
    gap: 10px;
    align-items: center;
    margin-top: 34px;
}

.architecture-flow > i {
    color: var(--bronze);
    font-style: normal;
    text-align: center;
}

.architecture-node {
    min-height: 144px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    background: rgba(229, 226, 218, 0.66);
}

.architecture-node span {
    display: block;
    color: var(--bronze);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.architecture-node strong {
    display: block;
    margin-top: 23px;
    font-size: 14px;
}

.architecture-node small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .route-overview {
        max-width: 670px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .window-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .architecture-flow {
        grid-template-columns: repeat(3, 1fr);
    }

    .architecture-flow > i {
        display: none;
    }
}

@media (max-width: 850px) {
    .page-shell {
        width: min(100% - 16px, 1500px);
        margin: 8px auto;
        border-radius: 23px;
    }

    .topbar {
        padding: 18px 20px;
    }

    main {
        padding: 0 18px 24px;
    }

    .hero {
        min-height: auto;
        padding: 54px 8px 45px;
    }

    .summary-grid,
    .window-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .panel-heading,
    .architecture-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-summary {
        text-align: left;
    }

    .architecture-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        flex-direction: column;
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .brand-copy small {
        display: none;
    }

    .system-status {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .route-line {
        gap: 10px;
    }

    .airport strong {
        font-size: 33px;
    }

    .overview-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .overview-stats div {
        padding: 11px 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .overview-stats div:last-child {
        border-bottom: none;
    }

    .summary-grid,
    .window-grid,
    .architecture-flow {
        grid-template-columns: 1fr;
    }

    .panel,
    .summary-card,
    .window-card {
        padding: 21px;
    }

    .chart-axis {
        padding-left: 0;
    }

    .chart-axis span:nth-child(2) {
        display: none;
    }
}


.portfolio-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-left:24px;
    color:#d7e7ff;
    text-decoration:none;
    font-weight:600;
    transition:.25s;
}

.portfolio-link:hover{
    color:#7cc4ff;
}

.about-project{
    margin:56px 0;
}

.about-grid{
    display:flex;
    flex-direction:column;
    gap:22px;
    margin-top:30px;
    max-width:900px;
}

.about-card{
    background:transparent;
    border:none;
    padding:0;
}

.about-card:hover{
}

.about-card h3{
    margin-bottom:12px;
}

.about-card p{
    line-height:1.7;
    color:var(--muted);
}

.footer-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

.footer-content a{
    color:#8bc6ff;
    text-decoration:none;
    font-weight:600;
}

.footer-content a:hover{
    color:white;
}

@media(max-width:900px){

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

.portfolio-link{
    margin-top:16px;
    margin-left:0;
}

}
