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

:root {
    --navy: #061426;
    --navy2: #0a2039;
    --blue: #0077ff;
    --cyan: #00c2ff;
    --green: #00b77a;
    --red: #ef4444;
    --text: #17263c;
    --muted: #77879a;
    --border: #dbe5ef;
    --light: #f4f8fc;
}

body {
    background: #f4f8fc;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e2eaf2;
}

.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.market-header {
    width: 100%;
    height: clamp(55px, 7vw, 92px);

    background: #fff;

    border-bottom:
        clamp(3px, 0.4vw, 6px)
        solid #0077ff;

    display: flex;
    overflow: hidden;
}


.market-header-title {

    width: 58%;
    height: 100%;

    background: #0077ff;
    color: #fff;

    display: flex;
    align-items: center;

    padding-left:
        clamp(20px, 4vw, 55px);

    padding-right: 80px;

    font-family:
        Impact,
        "Arial Narrow",
        sans-serif;

    font-size:
        clamp(28px, 4.5vw, 58px);

    font-weight: 900;
    font-style: italic;

    white-space: nowrap;

    clip-path: polygon(
        0 0,
        88% 0,
        100% 100%,
        0 100%
    );
}


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

.brand-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        var(--blue),
        var(--cyan)
    );
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.brand strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
}

.brand span {
    display: block;
    margin-top: 2px;
    color: var(--blue);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

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

nav a {
    color: #65758a;
    font-size: 11px;
    font-weight: 600;
    transition: .2s;
}

nav a:hover {
    color: var(--blue);
}

.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(0,119,255,.3),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #041020,
            #09294a
        );
}

.hero-content {
    min-height: 330px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-left {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.market-badge {
    display: inline-block;
    padding: 7px 11px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 4px;
    color: #77caff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(42px, 6vw, 67px);
    line-height: .95;
    letter-spacing: -3px;
}

.hero h1 span {
    display: block;
    color: #4ca6ff;
}

.hero p {
    max-width: 560px;
    margin-top: 20px;
    color: #94a9c1;
    font-size: 13px;
    line-height: 1.7;
}

.market-status {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8fa5bd;
    font-size: 9px;
    font-weight: 700;
}

.market-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d990;
    box-shadow:
        0 0 0 5px rgba(0,217,144,.1);
}

.hero-decoration {
    position: absolute;
    width: 500px;
    height: 250px;
    right: -40px;
    bottom: 0;
    opacity: .4;
}

.decoration-line {
    position: absolute;
    height: 2px;
    background: #00a7ff;
    transform-origin: left center;
}

.line1 {
    width: 140px;
    left: 20px;
    top: 170px;
    transform: rotate(-28deg);
}

.line2 {
    width: 130px;
    left: 142px;
    top: 105px;
    transform: rotate(18deg);
}

.line3 {
    width: 120px;
    left: 263px;
    top: 145px;
    transform: rotate(-42deg);
}

.line4 {
    width: 120px;
    left: 345px;
    top: 65px;
    transform: rotate(20deg);
}

.market-section {
    padding-top: 55px;
}

.section-header {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.small-title {
    margin-bottom: 5px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-header h2 {
    color: var(--navy);
    font-size: 24px;
}

.live {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8090a4;
    font-size: 9px;
    font-weight: 700;
}

.live > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.market-card {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow:
        0 12px 40px rgba(22,49,80,.07);
}

.quote-panel {
    padding: 27px;
    background:
        linear-gradient(
            180deg,
            #f9fcff,
            #f5f9fd
        );
    border-right: 1px solid var(--border);
}

.quote-label {
    color: #7c8b9e;
    font-size: 10px;
    font-weight: 700;
}

.current-price {
    margin-top: 7px;
    color: var(--green);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
}

.price-change {
    margin-top: 3px;
    display: flex;
    gap: 4px;
    color: var(--green);
    font-size: 10px;
}

.quote-list {
    margin-top: 24px;
}

.quote-list > div {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5ecf3;
}

.quote-list span {
    color: #8391a2;
    font-size: 10px;
}

.quote-list strong {
    color: #31425a;
    font-size: 10px;
    font-weight: 600;
}

.chart-panel {
    min-width: 0;
    padding: 26px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.chart-header strong {
    display: block;
    color: var(--navy);
    font-size: 13px;
}

.chart-header > div:first-child > span {
    display: block;
    margin-top: 3px;
    color: #8796a8;
    font-size: 9px;
}

.chart-tabs {
    display: flex;
    gap: 4px;
}

.chart-tabs button {
    height: 27px;
    padding: 0 10px;
    border: 1px solid #dce4ed;
    border-radius: 3px;
    background: #fff;
    color: #76869a;
    font-size: 8px;
    cursor: pointer;
}

.chart-tabs button.active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.chart-container {
    width: 100%;
    height: 320px;
    margin-top: 18px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.result-bar {
    min-height: 67px;
    margin-top: 17px;
    display: grid;
    grid-template-columns: 1fr 170px 170px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.result-status {
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow:
        0 0 0 5px rgba(0,119,255,.1);
}

.result-status small {
    display: block;
    color: #8291a4;
    font-size: 8px;
    font-weight: 700;
}

.result-status strong {
    display: block;
    margin-top: 3px;
    color: var(--navy);
    font-size: 12px;
}

.result-item {
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 1px solid var(--border);
}

.result-item span {
    color: #8492a5;
    font-size: 9px;
    font-weight: 700;
}

.result-item strong {
    color: var(--blue);
    font-size: 20px;
}

.updated {
    margin-top: 9px;
    color: #99a5b5;
    font-size: 8px;
    text-align: right;
}

.feature-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.feature-grid article {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #edf6ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.feature-grid strong {
    display: block;
    color: var(--navy);
    font-size: 11px;
}

.feature-grid article span {
    display: block;
    margin-top: 3px;
    color: #8a98a9;
    font-size: 9px;
}

.history-section {
    padding: 55px 0 70px;
}

.history-count {
    color: #8996a7;
    font-size: 9px;
    font-weight: 700;
}

.history-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow:
        0 10px 35px rgba(22,49,80,.05);
}

.table-responsive {
    overflow-x: auto;
}

.sgx-history-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: center;
}

.sgx-history-table th {
    padding: 14px;
    background: #f1f6fb;
    border-bottom: 1px solid #dbe4ed;
    color: #607086;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sgx-history-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #e5ebf1;
    color: #123b70;
    font-size: 10px;
    font-weight: 600;
}

.sgx-history-table tbody tr:hover {
    background: #f7fbff;
}

.sgx-history-table tbody tr:last-child td {
    border-bottom: none;
}

footer {
    background: var(--navy);
    color: #fff;
}

.footer-grid {
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
}

.footer-logo {
    font-size: 17px;
    font-weight: 800;
}

.footer-logo span {
    color: #43a7ff;
}

footer p {
    max-width: 270px;
    margin-top: 14px;
    color: #71869f;
    font-size: 10px;
    line-height: 1.7;
}

footer h4 {
    margin-bottom: 14px;
    font-size: 9px;
}

footer a {
    display: block;
    margin-bottom: 9px;
    color: #7d90a7;
    font-size: 9px;
}

footer a:hover {
    color: #fff;
}

.copyright {
    padding: 16px;
    border-top:
        1px solid rgba(255,255,255,.07);
    color: #60758e;
    font-size: 8px;
    text-align: center;
}

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-menu.show {
        padding: 5px 20px 18px;
        display: flex;
        flex-direction: column;
        background: #fff;
    }

    .mobile-menu a {
        padding: 11px 4px;
        border-bottom: 1px solid #e5ebf2;
        color: #596b80;
        font-size: 11px;
    }

    .market-card {
        grid-template-columns: 1fr;
    }

    .quote-panel {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

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

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

@media (max-width: 600px) {

    .container {
        width: calc(100% - 24px);
    }

    .header-inner {
        height: 62px;
    }

    .hero-content {
        min-height: 290px;
    }

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

    .hero-decoration {
        opacity: .15;
    }

    .market-section {
        padding-top: 40px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .quote-panel,
    .chart-panel {
        padding: 18px;
    }

    .chart-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-tabs {
        width: 100%;
    }

    .chart-tabs button {
        flex: 1;
        padding: 0 3px;
    }

    .chart-container {
        height: 250px;
    }

    .result-bar {
        grid-template-columns: 1fr 1fr;
    }

    .result-status {
        min-height: 45px;
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--border);
    }

    .result-item {
        min-height: 58px;
    }

    .result-item:nth-child(2) {
        border-left: 0;
    }

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