:root {
  --ink: #151a20;
  --muted: #66717c;
  --paper: #f4f6f8;
  --white: #ffffff;
  --line: #d9e0e7;
  --blue: #2855ef;
  --blue-dark: #193fb8;
  --blue-pale: #e1e8ff;
  --yellow: #ffd15b;
  --orange: #f36d50;
  --mint: #c7e6dc;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.section-pad { padding-left: clamp(24px, 6vw, 88px); padding-right: clamp(24px, 6vw, 88px); }
.topbar { align-items: center; background: var(--paper); display: flex; justify-content: space-between; min-height: 76px; padding: 14px clamp(24px, 6vw, 88px); position: relative; z-index: 5; }
.brand { align-items: center; display: inline-flex; gap: 10px; }
.brand-mark { align-items: center; background: var(--ink); color: var(--yellow); display: inline-flex; font-family: Georgia, serif; font-size: 20px; font-weight: 700; height: 36px; justify-content: center; width: 36px; }
.brand-title { font-size: 12px; font-weight: 700; }
.brand-title small { color: var(--blue); font-size: 10px; margin-left: 5px; }
.nav-links { align-items: center; display: flex; gap: 34px; }
.nav-links a { color: var(--muted); font-size: 13px; }
.nav-links a:hover { color: var(--blue); }
.button { align-items: center; border: 1px solid transparent; border-radius: var(--radius); display: inline-flex; font-size: 13px; font-weight: 700; gap: 15px; justify-content: center; min-height: 48px; padding: 0 20px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-blue { background: var(--blue); color: var(--white); }
.button-blue:hover { background: var(--blue-dark); }
.button-small { min-height: 38px; padding: 0 15px; }
.button-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--white); }
.button-plain { background: transparent; color: var(--ink); padding-left: 0; }
.button-plain:hover { color: var(--blue); }
.icon-button { background: transparent; border: 0; padding: 8px; }
.menu-toggle { display: none; }
.menu-toggle span { background: var(--ink); display: block; height: 2px; width: 23px; }
.eyebrow { align-items: center; color: var(--blue); display: flex; font-size: 10px; font-weight: 700; gap: 9px; margin: 0 0 20px; }
.eyebrow-dot { background: var(--orange); border-radius: 50%; height: 8px; width: 8px; }
.hero { align-items: center; display: grid; gap: 70px; grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); min-height: 570px; padding-bottom: 72px; padding-top: 50px; }
.hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 72px; font-weight: 400; line-height: .98; margin: 0; }
.hero h1 span { color: var(--blue); }
.hero-lead { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 23px 0 28px; max-width: 440px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 26px; }
.hero-caption { align-items: center; color: var(--muted); display: flex; font-size: 11px; gap: 10px; margin-top: 56px; min-height: 16px; }
.live-indicator { background: #a2adb6; border-radius: 50%; display: inline-block; flex: 0 0 8px; height: 8px; width: 8px; }
.live-indicator.is-online { background: #34a36b; box-shadow: 0 0 0 4px rgba(52,163,107,.15); }
.live-indicator.is-offline { background: var(--orange); }
.hero-panel { background-color: var(--blue); color: var(--white); min-height: 410px; overflow: hidden; padding: 22px 24px; position: relative; }
.hero-panel::after { border: 1px solid rgba(255,255,255,.43); content: ''; inset: 10px; pointer-events: none; position: absolute; }
.panel-top { align-items: center; color: rgba(255,255,255,.78); display: flex; font-size: 9px; justify-content: space-between; position: relative; z-index: 1; }
.panel-live { align-items: center; display: inline-flex; gap: 8px; }
.panel-live .live-indicator.is-online { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,209,91,.2); }
.panel-main { align-items: center; display: flex; gap: 24px; min-height: 200px; position: relative; z-index: 1; }
.panel-main > div:last-child { display: grid; gap: 5px; }
.panel-main p { color: rgba(255,255,255,.68); font-size: 9px; margin: 0; }
.panel-main strong { color: var(--yellow); font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.panel-main small { color: rgba(255,255,255,.75); font-size: 10px; }
.server-stack { display: grid; gap: 7px; }
.server-stack span { align-items: center; border: 1px solid rgba(255,255,255,.82); display: flex; height: 17px; justify-content: space-between; padding: 0 6px; width: 60px; }
.server-stack i { background: var(--yellow); border-radius: 50%; height: 4px; width: 4px; }
.server-stack b { background: rgba(255,255,255,.55); height: 1px; width: 22px; }
.panel-chart { align-items: end; border-bottom: 1px solid rgba(255,255,255,.55); display: flex; gap: 6px; height: 56px; margin: 0 2px 18px; position: relative; z-index: 1; }
.panel-chart span { background: rgba(255,255,255,.58); flex: 1; height: 20%; }
.panel-chart span:nth-child(3n) { height: 47%; }.panel-chart span:nth-child(4n) { height: 75%; }.panel-chart span:nth-child(5n) { height: 35%; }.panel-chart span:nth-child(7n) { height: 92%; }
.panel-metrics { border-top: 1px solid rgba(255,255,255,.45); display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0,1fr)); padding-top: 15px; position: relative; z-index: 1; }
.panel-metrics div { display: grid; gap: 4px; min-width: 0; }
.panel-metrics span { color: rgba(255,255,255,.72); font-size: 8px; }
.panel-metrics strong { font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.intro { align-items: start; background: var(--white); display: grid; gap: 35px; grid-template-columns: .55fr 1.2fr .5fr; padding-bottom: 48px; padding-top: 48px; }
.intro-index { align-items: center; color: var(--muted); display: flex; gap: 11px; padding-top: 5px; }
.intro-index span { align-items: center; background: var(--yellow); color: var(--ink); display: inline-flex; font-family: Georgia, serif; font-size: 15px; height: 31px; justify-content: center; width: 31px; }
.intro-index p { font-size: 10px; font-weight: 700; margin: 0; }
.intro h2 { font-family: Georgia, serif; font-size: 28px; font-weight: 400; margin: 0 0 11px; }
.intro > div:nth-child(2) > p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; max-width: 600px; }
.intro-aside { align-items: center; color: var(--blue); display: flex; font-size: 9px; gap: 9px; justify-self: end; padding-top: 10px; }
.intro-bar { background: var(--orange); height: 8px; width: 8px; }
.features { padding-bottom: 100px; padding-top: 100px; }
.section-heading { align-items: end; display: flex; gap: 35px; justify-content: space-between; margin-bottom: 37px; }
.section-heading h2,.status-heading h2,.contact-copy h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 46px; font-weight: 400; line-height: 1.08; margin: 0; }
.section-heading > p { color: var(--muted); font-size: 14px; margin: 0 0 4px; max-width: 260px; }
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.feature-card { display: flex; flex-direction: column; min-height: 250px; padding: 21px 23px 20px; }
.feature-card-blue { background: var(--blue-pale); }
.feature-card-yellow { background: #ffe8a9; }
.feature-card-mint { background: var(--mint); }
.feature-top { align-items: center; display: flex; justify-content: space-between; }
.feature-top > span:first-child { font-size: 10px; font-weight: 700; }
.feature-symbol { align-items: center; border: 1px solid var(--ink); border-radius: 50%; display: inline-flex; height: 38px; justify-content: center; width: 38px; }
.symbol-bars { align-items: end; gap: 3px; padding: 10px; }
.symbol-bars i { background: var(--blue); height: 9px; width: 4px; }
.symbol-bars i:nth-child(2) { height: 15px; }.symbol-bars i:nth-child(3) { height: 11px; }
.symbol-message { font-size: 19px; }.symbol-lock { color: var(--blue); font-size: 15px; }
.feature-card h3 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; margin: 29px 0 8px; }
.feature-card p { color: rgba(21,26,32,.75); font-size: 13px; line-height: 1.55; margin: 0; max-width: 300px; }
.feature-card a,.feature-card button { align-items: center; background: transparent; border: 0; display: flex; font-size: 11px; font-weight: 700; justify-content: space-between; margin-top: auto; padding: 20px 0 0; text-align: left; }
.feature-card a:hover,.feature-card button:hover { color: var(--blue); }
.status-section { background: var(--ink); color: var(--white); padding-bottom: 78px; padding-top: 76px; }
.status-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 36px; }
.eyebrow-light { color: var(--yellow); }
.status-heading h2 { font-size: 43px; }
.status-stamp { align-items: center; background: rgba(255,255,255,.1); display: inline-flex; font-size: 11px; gap: 10px; min-height: 38px; padding: 0 13px; }
.status-grid { border-bottom: 1px solid rgba(255,255,255,.22); border-top: 1px solid rgba(255,255,255,.22); display: grid; grid-template-columns: repeat(3,1fr); }
.status-grid > div { display: grid; gap: 11px; min-height: 126px; padding: 20px 22px 18px 0; }
.status-grid > div + div { border-left: 1px solid rgba(255,255,255,.22); padding-left: 22px; }
.status-grid span { color: rgba(255,255,255,.6); font-size: 9px; }
.status-grid strong { color: var(--yellow); font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.contact-section { background: var(--white); display: grid; gap: 75px; grid-template-columns: .8fr 1.2fr; padding-bottom: 100px; padding-top: 100px; }
.contact-copy h2 { font-size: 44px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 16px 0 0; max-width: 350px; }
.contact-privacy { align-items: start; display: flex; gap: 10px; margin-top: 30px; max-width: 320px; }
.contact-privacy > span { align-items: center; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; flex: 0 0 22px; font-family: Georgia, serif; height: 22px; justify-content: center; width: 22px; }
.contact-privacy p { color: var(--muted); font-size: 11px; margin: 1px 0 0; }
.signal-form { align-content: start; display: grid; gap: 23px 20px; grid-template-columns: 1fr 1fr; }
.signal-form label,.login-form label { color: var(--muted); display: grid; font-size: 10px; gap: 8px; }
.signal-form input,.signal-form textarea,.login-form input { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); outline: 0; padding: 11px 0; resize: vertical; }
.signal-form input:focus,.signal-form textarea:focus,.login-form input:focus { border-color: var(--blue); }
.signal-form input::placeholder,.signal-form textarea::placeholder,.login-form input::placeholder { color: #9ba5ad; }
.full-field { grid-column: 1 / -1; }
.form-foot { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; grid-column: 1 / -1; }
.form-status { color: #b14934; font-size: 12px; }
.status-success { color: #28734c; }
.footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 10px; gap: 22px; justify-content: space-between; padding-bottom: 23px; padding-top: 23px; }
.footer > a:last-child { color: var(--ink); font-weight: 700; }
.footer > a:last-child:hover { color: var(--blue); }
.modal-backdrop { align-items: center; background: rgba(16,23,34,.75); display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 10; }
.modal-backdrop[hidden] { display: none; }
.login-modal { background: var(--paper); max-width: 430px; padding: 40px; position: relative; width: 100%; }
.login-modal h2 { font-family: Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1.1; margin: 0 0 13px; }
.modal-copy { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 27px; }
.modal-close { color: var(--ink); font-size: 26px; line-height: 1; position: absolute; right: 14px; top: 12px; }
.login-form { display: grid; gap: 20px; }
.login-error { color: #b14934; font-size: 12px; min-height: 18px; margin: 0; }

.admin-shell { background: var(--paper); }
.admin-topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-user { align-items: center; display: flex; font-size: 11px; gap: 14px; }
.online-chip { align-items: center; background: var(--blue-pale); color: var(--blue-dark); display: inline-flex; font-size: 9px; gap: 8px; padding: 8px 11px; }
.online-chip .status-dot { background: #34a36b; border-radius: 50%; height: 7px; width: 7px; }
.admin-main { margin: 0 auto; max-width: 1400px; min-height: calc(100vh - 155px); padding-bottom: 75px; padding-top: 62px; }
.admin-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 32px; }
.admin-heading h1 { font-family: Georgia, serif; font-size: 44px; font-weight: 400; line-height: 1.08; margin: 0; }
.admin-heading p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin: 11px 0 0; }
.dashboard-grid { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric-card { min-height: 145px; padding: 20px; }
.metric-card strong { display: block; font-family: Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1.1; margin: 26px 0 8px; }
.metric-label,.metric-foot { font-size: 10px; }
.metric-foot { color: rgba(21,26,32,.68); }
.metric-dark { background: var(--ink); color: var(--white); }
.metric-dark .metric-foot { color: rgba(255,255,255,.66); }
.metric-accent { background: #ffe8a9; }
.metric-light { background: var(--mint); }
.panel { background: var(--white); padding: 24px; }
.service-panel { grid-column: span 2; }
.signals-panel { grid-column: span 1; }
.note-panel { background: var(--blue-pale); grid-column: 1 / -1; }
.panel-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 20px; }
.panel .eyebrow { margin-bottom: 7px; }
.panel h2 { font-family: Georgia, serif; font-size: 26px; font-weight: 400; line-height: 1.15; margin: 0; }
.panel-count { font-family: Georgia, serif; font-size: 31px; }
.service-list { border-top: 1px solid var(--line); }
.service-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 1fr auto 55px; padding: 14px 0; }
.service-row strong,.service-row span { display: block; }
.service-row strong { font-size: 12px; }
.service-row span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.service-state { color: #28734c!important; font-size: 10px!important; font-weight: 700; }
.service-row small { color: var(--muted); font-size: 10px; text-align: right; }
.signals-list { list-style: none; margin: 0; padding: 0; }
.signals-list li { border-top: 1px solid var(--line); padding: 13px 0; }
.signals-list li > div { display: flex; flex-wrap: wrap; gap: 5px 10px; justify-content: space-between; }
.signals-list strong { font-size: 12px; }
.signals-list span,.signals-list time { color: var(--muted); font-size: 10px; }
.signals-list p { font-size: 12px; line-height: 1.5; margin: 8px 0 0; overflow-wrap: anywhere; }
.empty-row { color: var(--muted); font-size: 12px; }
.note-panel p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0; max-width: 600px; }
.loading-block { background: var(--white); grid-column: 1 / -1; min-height: 230px; padding: 70px 24px; text-align: center; }
.loading-dots { animation: blink 1.2s steps(4,end) infinite; display: inline-block; margin-left: 5px; }
.error-block { color: #b14934; }
.error-block .text-button { margin-left: 10px; }
@keyframes blink { 0%,20% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { gap: 32px; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 58px; }
  .hero-panel { min-height: 380px; padding: 20px; }
  .panel-main { min-height: 180px; }
  .section-heading h2,.status-heading h2 { font-size: 39px; }
  .intro { gap: 24px; grid-template-columns: .5fr 1.2fr; }
  .intro-aside { display: none; }
  .contact-section { gap: 45px; }
  .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-panel,.signals-panel,.note-panel { grid-column: span 2; }
}
@media (max-width: 680px) {
  .topbar { min-height: 70px; }
  .menu-toggle { display: grid; gap: 5px; }
  .nav-links { align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); display: none; flex-direction: column; gap: 20px; left: 0; padding: 22px 24px 25px; position: absolute; right: 0; top: 70px; }
  .nav-links.nav-open { display: flex; }
  .hero { gap: 34px; grid-template-columns: 1fr; padding-bottom: 54px; padding-top: 42px; }
  .hero h1 { font-size: 51px; }
  .hero-lead { font-size: 16px; margin: 19px 0 23px; }
  .hero-caption { margin-top: 31px; }
  .hero-panel { min-height: 360px; }
  .panel-main { min-height: 180px; }
  .panel-main strong { font-size: 22px; }
  .intro { gap: 17px; grid-template-columns: 1fr; padding-bottom: 34px; padding-top: 34px; }
  .intro h2 { font-size: 24px; }
  .intro > div:nth-child(2) > p { font-size: 13px; }
  .features { padding-bottom: 66px; padding-top: 66px; }
  .section-heading,.status-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 27px; }
  .section-heading h2,.status-heading h2,.contact-copy h2 { font-size: 35px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .feature-card h3 { margin-top: 23px; }
  .status-section { padding-bottom: 58px; padding-top: 58px; }
  .status-grid { grid-template-columns: 1fr; }
  .status-grid > div { min-height: 102px; padding: 16px 0; }
  .status-grid > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); padding-left: 0; }
  .contact-section { gap: 34px; grid-template-columns: 1fr; padding-bottom: 68px; padding-top: 66px; }
  .contact-copy h2 { font-size: 35px; }
  .signal-form { grid-template-columns: 1fr; }
  .full-field,.form-foot { grid-column: auto; }
  .footer { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer > span { order: 3; }
  .login-modal { padding: 34px 24px; }
  .admin-user { gap: 7px; }
  .admin-user > span:not(.online-chip) { display: none; }
  .admin-main { padding-bottom: 48px; padding-top: 42px; }
  .admin-heading { align-items: start; flex-direction: column; gap: 21px; }
  .admin-heading h1 { font-size: 35px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .service-panel,.signals-panel,.note-panel { grid-column: auto; }
  .service-row { grid-template-columns: 1fr auto; }
  .service-row small { display: none; }
  .panel { padding: 20px; }
}
