:root {
  --navy: #073859;
  --navy-2: #042d4c;
  --blue: #087bb4;
  --cyan: #00a6d0;
  --sky: #61cae8;
  --ice: #eef8fc;
  --line: #dcebf2;
  --text: #123148;
  --muted: #6d8191;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(7, 56, 89, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f3f8fb; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(97,202,232,.18), transparent 28%),
    radial-gradient(circle at 91% 84%, rgba(0,166,208,.13), transparent 28%),
    linear-gradient(145deg, #f9fcfe 0%, #eff7fb 100%);
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(26px);
  pointer-events: none;
  opacity: .8;
  z-index: 0;
}
.ambient-a { width: 380px; height: 380px; left: -150px; top: 4vh; background: rgba(0,166,208,.15); }
.ambient-b { width: 440px; height: 440px; right: -210px; bottom: -120px; background: rgba(7,56,89,.10); }
.grid-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(7,56,89,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,56,89,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 75%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.maintenance-card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.topbar {
  min-height: 104px;
  padding: 17px 34px 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf3f6;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 190px; height: auto; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #587082;
  letter-spacing: .02em;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(0,166,208,.10);
  animation: pulse 2.4s ease-in-out infinite;
}
.contact-mini {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border: 1px solid #dce8ee; border-radius: 999px;
  color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 700;
  transition: .25s ease;
}
.contact-mini:hover { border-color: #bcdce9; background: #f4fbfe; transform: translateY(-1px); }
.contact-mini svg { width: 17px; fill: currentColor; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(460px, .92fr);
  min-height: 630px;
}

.game-column {
  padding: 32px 20px 32px 32px;
  background: linear-gradient(135deg, #fbfdfe 0%, #f1f8fb 100%);
}
.game-frame {
  height: 100%;
  min-height: 565px;
  border: 1px solid #dfeef4;
  border-radius: 26px;
  overflow: hidden;
  background: #f8fcfe;
  box-shadow: inset 0 1px 0 #fff;
  display: flex;
  flex-direction: column;
}
.game-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 24px 24px 18px;
}
.eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.game-head h2 {
  margin: 0;
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.2;
  letter-spacing: -.03em;
}
.game-badge {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 32px; padding: 0 12px;
  border-radius: 999px;
  background: #e8f8fc;
  color: #008ab2;
  font-size: 10px; font-weight: 800; letter-spacing: .13em;
}
.canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 390px;
  border-top: 1px solid #e6f1f5;
  border-bottom: 1px solid #e6f1f5;
  background: linear-gradient(180deg, #eaf8fd 0%, #f8fcfe 66%, #e8f2f6 66%, #e8f2f6 100%);
  overflow: hidden;
}
#builderGame { display: block; width: 100%; height: 100%; min-height: 390px; }
.game-result {
  position: absolute;
  left: 50%; top: 18px;
  transform: translate(-50%, -10px);
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7,56,89,.92);
  box-shadow: 0 10px 30px rgba(7,56,89,.22);
  font-size: 12px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: .3s ease;
  white-space: nowrap;
}
.game-result.show { opacity: 1; transform: translate(-50%, 0); }
.game-controls {
  min-height: 78px;
  padding: 14px 18px 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff;
}
.game-controls p { margin: 0; color: #788c9a; font-size: 12px; }
.key {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 7px; margin-right: 4px;
  border: 1px solid #d9e7ed; border-bottom-width: 2px; border-radius: 6px;
  background: #f7fafc; color: var(--navy); font-weight: 800; font-size: 9px; letter-spacing: .08em;
}
.drop-button {
  border: 0; min-height: 44px; padding: 0 17px;
  border-radius: 13px;
  background: var(--navy);
  color: white;
  font-family: inherit; font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(7,56,89,.18);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.drop-button:hover { background: #0a476e; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(7,56,89,.22); }
.drop-button:disabled { cursor: default; opacity: .65; transform: none; }
.drop-button svg { width: 17px; fill: currentColor; }

.copy-column {
  display: flex;
  align-items: center;
  padding: 44px clamp(34px, 4vw, 66px);
  background: #fff;
}
.copy-inner { width: 100%; max-width: 570px; margin: 0 auto; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  color: #6c8291; font-size: 11px; font-weight: 800; letter-spacing: .16em;
  margin-bottom: 18px;
}
.section-label span { width: 28px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--sky)); }
h1 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  font-size: clamp(42px, 4.1vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
h1 em {
  position: relative;
  color: var(--cyan);
  font-style: normal;
  display: inline-block;
}
h1 em::after {
  content: "";
  position: absolute;
  left: 2px; right: 4px; bottom: -8px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(0,166,208,.22), rgba(97,202,232,.08));
}
.lead {
  max-width: 520px;
  margin: 27px 0 26px;
  color: #617889;
  font-size: 16px;
  line-height: 1.72;
}
.project-progress {
  padding: 18px 19px 16px;
  border: 1px solid #e0edf3;
  border-radius: 17px;
  background: #fbfdfe;
}
.progress-copy, .progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.progress-copy span { font-size: 12px; color: #536d7f; font-weight: 700; }
.progress-copy strong { color: var(--navy); font: 800 14px Inter, ui-sans-serif, system-ui, sans-serif; }
.progress-track { height: 7px; background: #e9f2f5; border-radius: 99px; overflow: hidden; margin: 11px 0 9px; }
.progress-track span { display: block; width: var(--progress, 72%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--cyan)); animation: loadbar 1.2s cubic-bezier(.22,.8,.24,1) both; }
.progress-meta { color: #92a4af; font-size: 10px; }
.countdown-title {
  margin: 28px 0 10px;
  color: #718796;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 800;
}
.countdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  border: 1px solid #deebf1;
  border-radius: 18px;
  background: #f8fbfd;
  padding: 15px 17px;
}
.time-box { text-align: center; }
.time-box strong {
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1;
  letter-spacing: -.04em;
}
.time-box span {
  display: block; margin-top: 6px;
  color: #94a4af;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.separator { color: #b9c7ce; font: 600 22px Inter, ui-sans-serif, system-ui, sans-serif; transform: translateY(-8px); }
.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.primary-cta {
  height: 50px; padding: 0 20px;
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--navy), #0b5e8c);
  font-size: 13px; font-weight: 800;
  box-shadow: 0 12px 28px rgba(7,56,89,.18);
  transition: .25s ease;
}
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(7,56,89,.23); }
.primary-cta svg { width: 18px; fill: currentColor; }
.domain { color: #91a3ad; font-size: 12px; font-weight: 600; }

.footer-strip {
  min-height: 72px;
  padding: 0 38px;
  display: flex; align-items: center; gap: 20px;
  color: #758995;
  border-top: 1px solid #eaf1f4;
  background: #fcfefe;
  font-size: 11px;
  font-weight: 700;
}
.footer-item { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: #bed0d8; }
.footer-tag { margin-left: auto; color: var(--navy); font-size: 9px; letter-spacing: .18em; white-space: nowrap; }
.cube-icon, .office-icon, .custom-icon {
  display: inline-block; width: 18px; height: 18px; position: relative;
  color: var(--cyan);
}
.cube-icon { border: 2px solid currentColor; border-radius: 2px; transform: skewY(-8deg); }
.cube-icon::after { content:""; position:absolute; left:4px; top:-5px; width:9px; height:5px; border-left:2px solid currentColor; border-top:2px solid currentColor; transform:skewY(35deg); }
.office-icon { border: 2px solid currentColor; border-radius: 2px; }
.office-icon::before, .office-icon::after { content:""; position:absolute; left:3px; right:3px; height:2px; background:currentColor; }
.office-icon::before { top:4px; box-shadow: 0 4px 0 currentColor; }
.office-icon::after { bottom:2px; width:4px; left:5px; height:5px; }
.custom-icon { border: 2px solid currentColor; border-radius: 50%; }
.custom-icon::before { content:""; position:absolute; inset:4px; border:2px solid currentColor; border-radius:50%; }
.outside-note { margin: 14px 0 0; text-align: center; color: #9aabb5; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

@keyframes pulse { 0%,100%{ box-shadow:0 0 0 5px rgba(0,166,208,.08); } 50%{ box-shadow:0 0 0 9px rgba(0,166,208,.02); } }
@keyframes loadbar { from{width:0} to{width:var(--progress, 72%)} }

@media (max-width: 1120px) {
  .page-shell { width: min(980px, calc(100% - 32px)); padding: 24px 0 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .game-column { order: 2; padding: 16px 24px 26px; }
  .copy-column { order: 1; padding: 44px 52px 38px; }
  .copy-inner { max-width: none; }
  .game-frame { min-height: 520px; }
  .footer-tag { display: none; }
  .footer-strip { justify-content: center; }
  h1 { font-size: clamp(46px, 7vw, 68px); }
}

@media (max-width: 720px) {
  .page-shell { width: calc(100% - 18px); padding: 10px 0; justify-content: flex-start; }
  .maintenance-card { border-radius: 22px; }
  .topbar { min-height: 82px; padding: 12px 16px 10px 19px; }
  .brand img { width: 145px; }
  .live-status { display: none; }
  .contact-mini { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .contact-mini span { display: none; }
  .copy-column { padding: 34px 24px 30px; }
  h1 { font-size: clamp(40px, 12vw, 54px); }
  .lead { margin: 24px 0 22px; font-size: 15px; }
  .countdown { padding: 13px 7px; gap: 1px; }
  .time-box strong { font-size: clamp(22px, 7vw, 30px); }
  .time-box span { font-size: 7px; }
  .separator { font-size: 16px; }
  .cta-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .primary-cta { justify-content: center; }
  .domain { text-align: center; }
  .game-column { padding: 10px 10px 16px; }
  .game-frame { min-height: 470px; border-radius: 19px; }
  .game-head { padding: 19px 17px 14px; }
  .game-head h2 { font-size: 17px; }
  .game-badge { min-width: 58px; height: 28px; font-size: 8px; }
  .canvas-wrap, #builderGame { min-height: 320px; }
  .game-controls { padding: 12px; justify-content: center; }
  .game-controls p { display: none; }
  .drop-button { width: 100%; justify-content: center; }
  .footer-strip { min-height: auto; padding: 18px; flex-wrap: wrap; gap: 10px 14px; }
  .footer-dot { display: none; }
  .footer-item { width: 100%; justify-content: center; }
  .outside-note { margin-bottom: 4px; }
}

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