:root {
  color-scheme: light;
  --ink: #15283b;
  --muted: #647589;
  --line: #dce4eb;
  --paper: #f5f7f9;
  --white: #ffffff;
  --navy: #071c2c;
  --blue: #1463ff;
  --blue-dark: #0b49c6;
  --green: #19a66f;
  --shadow: 0 24px 70px rgba(13, 32, 49, .12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid rgba(220, 228, 235, .8); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue); color: white; font-weight: 800; font-size: 13px; letter-spacing: -.04em; box-shadow: 0 9px 24px rgba(20,99,255,.24); }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 17px; letter-spacing: -.03em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: #45586b; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
.nav-login { padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

.hero { min-height: 610px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: center; padding-block: 92px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .17em; }
.hero h1 { margin: 0; max-width: 760px; color: #102638; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.065em; }
.lede { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; padding: 0 20px; border: 0; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--blue); color: white; box-shadow: 0 12px 28px rgba(20,99,255,.24); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: var(--paper); color: var(--ink); }

.availability-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #fff, #f6f8fa); box-shadow: var(--shadow); }
.card-heading, .card-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; background: #e9f8f2; color: #087c50; font-weight: 700; }
.live-pill i, .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(25,166,111,.12); }
.availability-value { margin-top: 34px; font-size: 54px; font-weight: 750; letter-spacing: -.055em; }
.availability-card > p { margin: 4px 0 24px; color: var(--muted); font-size: 13px; }
.spark-bars { height: 94px; display: flex; align-items: flex-end; gap: 7px; padding-top: 12px; border-bottom: 1px solid var(--line); }
.spark-bars i { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(#6fa1ff, #1463ff); opacity: .9; }
.card-footer { margin-top: 17px; }

.status-strip { border-block: 1px solid var(--line); background: #f7f9fb; }
.status-strip-inner { min-height: 90px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; font-size: 14px; }
.overall { display: flex; align-items: center; gap: 12px; }
.status-strip p { margin: 0; color: var(--muted); }
.status-strip a { color: var(--blue); font-weight: 700; }

.platform { padding-block: 120px; }
.section-heading { max-width: 720px; }
.section-heading h2, .notice h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; line-height: 1.1; }
.section-heading > p:last-child { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 60px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.feature-grid article { min-height: 290px; padding: 34px; background: white; }
.feature-index { color: #8a9aad; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.feature-grid h3 { margin: 74px 0 14px; font-size: 22px; letter-spacing: -.03em; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

.notice { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 120px; padding: 46px; border-radius: 18px; background: var(--navy); color: white; }
.notice > div { max-width: 760px; }
.notice .eyebrow { color: #78a8ff; }
.notice h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.notice p:last-child { margin: 18px 0 0; color: #abc0d0; line-height: 1.65; }
.notice time { flex: 0 0 auto; color: #93a9ba; font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); background: #f8fafb; }
.footer-inner { min-height: 190px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer-inner > p { color: var(--muted); }
.footer-inner > div:not(.brand) { display: flex; gap: 24px; color: #4b6073; font-size: 13px; }
.footer-inner > small { grid-column: 1 / -1; margin-top: -55px; color: #8a99a8; }
.footer-inner.compact { min-height: 110px; grid-template-columns: 1fr auto; }

.login-body { min-height: 100vh; background: #eef2f5; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .85fr) minmax(520px, 1.15fr); }
.login-context { display: flex; flex-direction: column; justify-content: space-between; padding: 56px clamp(40px, 6vw, 90px); overflow: hidden; background: radial-gradient(circle at 80% 12%, rgba(40,103,180,.28), transparent 35%), linear-gradient(145deg, #071c2c, #0b2b42); color: white; }
.brand-light small { color: #88a7bc; }
.login-context > div:nth-child(2) { max-width: 570px; }
.login-context .eyebrow { color: #73a6ff; }
.login-context h1 { margin: 0; font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: 1.02; letter-spacing: -.06em; }
.login-context p:last-child { max-width: 540px; color: #a9c0d0; font-size: 17px; line-height: 1.65; }
.context-meta { display: flex; justify-content: space-between; gap: 20px; color: #92aabd; font-size: 12px; }
.context-meta span:first-child { display: flex; align-items: center; gap: 10px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px; }
.login-box { width: min(470px, 100%); }
.back-link { color: var(--muted); font-size: 13px; }
.login-title { margin: 64px 0 32px; }
.login-title .eyebrow { margin-bottom: 12px; }
.login-title h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.login-title > p:last-child { margin: 12px 0 0; color: var(--muted); }
.form-alert { display: grid; gap: 4px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f1baba; border-radius: 10px; background: #fff2f2; color: #9c2e2e; font-size: 13px; }
form > label:not(.check-row), .label-row label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.label-row { display: flex; justify-content: space-between; margin-top: 20px; }
.label-row span { color: #8795a3; font-size: 11px; }
input[type="text"], input[type="password"] { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid #cbd5df; border-radius: 9px; outline: none; background: white; color: var(--ink); transition: border .15s, box-shadow .15s; }
input[type="text"]:focus, input[type="password"]:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,99,255,.11); }
.check-row { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: #5d6f80; font-size: 13px; }
.check-row input { width: 16px; height: 16px; accent-color: var(--blue); }
.login-submit { width: 100%; }
.login-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.login-help { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: #7b8a99; font-size: 12px; line-height: 1.6; }
.login-footer { width: min(470px, 100%); margin-top: 70px; color: #8795a3; font-size: 11px; }
.login-footer span { margin-inline: 8px; }

.status-page { padding-block: 90px 120px; }
.status-intro { text-align: center; }
.status-intro h1 { margin: 0; font-size: clamp(2.7rem, 5vw, 4.8rem); letter-spacing: -.055em; }
.status-intro > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.updated { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 13px; border-radius: 999px; background: #ebf8f3; color: #167951; font-size: 12px; font-weight: 700; }
.service-list { margin-top: 62px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.service-list article { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 25px 28px; border-bottom: 1px solid var(--line); }
.service-list article:last-child { border-bottom: 0; }
.service-list h2 { margin: 0; font-size: 16px; }
.service-list p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.service-ok { color: #087c50; font-size: 12px; font-weight: 750; }
.history { margin-top: 90px; }
.history .section-heading h2 { font-size: 30px; }
.history-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 26px; margin-top: 30px; padding: 26px 0; border-block: 1px solid var(--line); }
.history-row time, .history-row span { color: var(--muted); font-size: 12px; }
.history-row strong { font-size: 14px; }
.history-row p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.history-row span { color: #087c50; font-weight: 750; }
.empty-history { padding-top: 22px; color: var(--muted); font-size: 13px; }

.error-body { min-height: 100vh; display: grid; place-items: center; background: var(--paper); }
.error-box { width: min(560px, calc(100% - 48px)); padding: 48px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.error-box .eyebrow { margin-top: 34px; }
.error-box h1 { margin: 0; font-size: 42px; letter-spacing: -.045em; }
.error-box > p:not(.eyebrow) { margin: 16px 0 28px; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .availability-card { max-width: 560px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .feature-grid h3 { margin-top: 36px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-context { min-height: 430px; padding: 36px; }
  .context-meta { margin-top: 56px; }
  .login-panel { padding: 54px 28px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 32px, 1160px); }
  .header-inner { min-height: 68px; }
  nav > a:not(.nav-login) { display: none; }
  .hero { min-height: auto; padding-block: 68px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
  .status-strip-inner { grid-template-columns: 1fr auto; padding-block: 22px; }
  .status-strip p { display: none; }
  .platform { padding-block: 84px; }
  .notice { display: block; margin-bottom: 84px; padding: 32px 26px; }
  .notice time { display: block; margin-top: 28px; }
  .footer-inner { display: flex; min-height: 230px; flex-wrap: wrap; align-content: center; }
  .footer-inner > small { width: 100%; margin: 0; }
  .login-context { min-height: 390px; }
  .login-context h1 { font-size: 3rem; }
  .context-meta span:last-child { display: none; }
  .login-title { margin-top: 48px; }
  .status-page { padding-block: 65px 90px; }
  .service-list article { align-items: flex-start; }
  .history-row { grid-template-columns: 1fr auto; }
  .history-row > div { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
