:root {
    color-scheme: dark;
    --bg: #080d16;
    --panel: rgba(16, 25, 40, .82);
    --panel-strong: #111c2c;
    --line: rgba(151, 175, 211, .18);
    --text: #f4f7fb;
    --muted: #98a8bd;
    --lime: #b4f65b;
    --lime-strong: #8cdb35;
    --blue: #62a8ff;
    --orange: #ff8c52;
    --font: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
    --display: "Arial Narrow", "Noto Sans Thai", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 78% 8%, rgba(91, 154, 255, .13), transparent 28rem),
        radial-gradient(circle at 14% 74%, rgba(180, 246, 91, .08), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
}

a { color: inherit; }

.signal-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    background-image:
        linear-gradient(rgba(126, 149, 180, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 149, 180, .055) 1px, transparent 1px);
    background-size: 46px 46px;
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 14px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 13, 22, .76);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 109px;
    height: 51px;
    object-fit: contain;
}

.brand-divider { width: 1px; height: 29px; background: var(--line); }

.brand-product {
    color: #c6d0dd;
    font: 700 12px/1 var(--font);
    letter-spacing: .25em;
}

.live-clock {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
}

.live-clock strong { display: block; font-size: 17px; letter-spacing: .08em; }
.live-clock small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(180, 246, 91, .55);
    animation: pulse 2s infinite;
}

main {
    position: relative;
    z-index: 1;
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(38px, 6vh, 70px) 0 48px;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    gap: 40px;
    align-items: end;
    margin-bottom: clamp(34px, 5vh, 58px);
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    color: var(--lime);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .26em;
}

.kicker span { width: 27px; height: 2px; background: var(--lime); }

h1 {
    max-width: 760px;
    margin: 0;
    font: 900 clamp(42px, 6vw, 86px)/.94 var(--display);
    letter-spacing: -.045em;
}

h1 em { color: var(--lime); font-style: normal; }

.intro-copy {
    max-width: 430px;
    margin: 0 0 5px auto;
    padding-left: 22px;
    border-left: 2px solid var(--lime);
    color: #b7c4d5;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.75;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tool-card {
    --accent: var(--lime);
    position: relative;
    display: flex;
    min-height: 385px;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(19, 30, 47, .94), rgba(11, 18, 30, .92));
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
    isolation: isolate;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.tool-card--blue { --accent: var(--blue); }

.tool-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent), transparent 48%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
}

.card-glow {
    position: absolute;
    z-index: -1;
    top: -145px;
    right: -115px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 76%), transparent 68%);
    transition: transform .5s ease;
}

.tool-card:hover .card-glow { transform: scale(1.2) translate(-10px, 8px); }

.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

.tool-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--accent), transparent 35%);
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent), transparent 88%);
    color: var(--accent);
    font: 900 16px/1 var(--display);
    letter-spacing: -.03em;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(4, 9, 17, .46);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.status i { width: 7px; height: 7px; border-radius: 50%; background: #728197; }
.status.is-ready { color: #dfffc0; border-color: rgba(180, 246, 91, .28); }
.status.is-ready i { background: var(--lime); box-shadow: 0 0 12px rgba(180, 246, 91, .72); }
.status.is-pending i { background: var(--orange); }

.card-content { margin-top: 42px; }
.card-eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.card-content h2, .tool-card--future h2 { margin: 0; font: 900 clamp(26px, 3vw, 39px)/1.08 var(--display); letter-spacing: -.025em; }
.card-content > p:last-child, .tool-card--future p:last-child { max-width: 580px; margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.72; }

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: auto 0 21px;
    padding: 30px 0 0;
    list-style: none;
}

.feature-list li {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #b9c5d5;
    font-size: 10px;
}

.launch-button {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 18px;
    border-radius: 13px;
    background: var(--accent);
    color: #07101a;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}

.launch-button:hover { filter: brightness(1.08); }
.launch-button:active { transform: scale(.985); }
.launch-button svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .2s ease; }
.launch-button:hover svg { transform: translateX(4px); }

.tool-card--future {
    grid-column: 1 / -1;
    min-height: 150px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 25px;
    background: rgba(12, 20, 32, .62);
    box-shadow: none;
}

.tool-card--future:hover { transform: none; border-color: var(--line); box-shadow: none; }
.tool-card--future .card-eyebrow { color: #7f91a8; }
.tool-card--future h2 { font-size: 22px; }

.future-icon {
    display: grid;
    grid-template-columns: repeat(2, 10px);
    gap: 7px;
    padding: 18px;
    border: 1px dashed #40516a;
    border-radius: 16px;
}

.future-icon span { width: 10px; height: 10px; border-radius: 3px; background: #465a75; }
.future-icon span:first-child { background: var(--lime); }

footer {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1380px, calc(100% - 40px));
    align-items: center;
    gap: 14px;
    margin: 0 auto;
    padding: 0 0 28px;
    color: #6f8097;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.footer-rule { width: 35px; height: 1px; background: #33435a; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(180, 246, 91, .5); }
    70% { box-shadow: 0 0 0 8px rgba(180, 246, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(180, 246, 91, 0); }
}

@media (max-width: 760px) {
    .topbar { min-height: 70px; padding: 9px 18px; }
    .brand { gap: 11px; }
    .brand img { width: 84px; height: auto; }
    .brand-divider { height: 22px; }
    .brand-product { font-size: 10px; letter-spacing: .17em; }
    .live-clock { min-width: 0; }
    .live-clock small { display: none; }
    .live-clock strong { font-size: 14px; }
    main { width: min(100% - 28px, 1380px); padding-top: 34px; }
    .intro { grid-template-columns: 1fr; gap: 22px; }
    h1 { font-size: clamp(40px, 13vw, 64px); }
    .intro-copy { margin: 0; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card { min-height: 360px; border-radius: 21px; }
    .tool-card--future { grid-column: auto; min-height: 190px; }
    footer { width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Compact hub: Thai typography needs generous line height. */
body {background:#0b111b;line-height:1.6;}
.signal-grid,.card-glow {display:none;}
main {width:min(960px,calc(100% - 40px));padding:40px 0;}
.intro {display:block;margin-bottom:22px;}
h1 {font-family:var(--font);font-size:28px;line-height:1.6;letter-spacing:normal;}
.tool-card {min-height:280px;padding:26px;border-radius:18px;box-shadow:none;background:#121c2b;}
.card-content {margin-top:22px;margin-bottom:24px;}
.card-content h2 {font-family:var(--font);font-size:26px;line-height:1.5;letter-spacing:normal;}
.card-content > p:last-child {font-size:14px;line-height:1.8;margin-top:8px;}
.card-eyebrow {line-height:1.6;}
.launch-button {margin-top:auto;line-height:1.6;}
.status {font-size:12px;line-height:1.6;}
footer {width:min(960px,calc(100% - 40px));letter-spacing:normal;}
:focus-visible {outline:3px solid #b4f65b;outline-offset:5px;}
@media(max-width:760px){main{padding-top:24px;}h1{font-size:24px;}.tool-card{min-height:260px;}.card-content h2{font-size:24px;}}
