@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f3f3f0;
  --surface: #ffffff;
  --surface-2: #e8e8e4;
  --text: #121113;
  --muted: #5f6067;
  --line: rgba(18, 17, 19, .15);
  --accent: #e62429;
  --accent-deep: #b80f17;
  --accent-soft: #f7b0b1;
  --shadow: rgba(22, 15, 16, .14);
  --art-filter: saturate(1.03) contrast(1.01);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0f;
  --surface: #17171a;
  --surface-2: #222228;
  --text: #f7f6f2;
  --muted: #b1b1b7;
  --line: rgba(255, 255, 255, .14);
  --accent: #ff3d42;
  --accent-deep: #d91c24;
  --accent-soft: #ff8f92;
  --shadow: rgba(0, 0, 0, .38);
  --art-filter: saturate(1.2) brightness(.88) contrast(1.13) drop-shadow(0 28px 32px rgba(0,0,0,.35));
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 81% 30%, color-mix(in srgb, var(--accent) 11%, transparent) 0, transparent 33%),
    linear-gradient(135deg, transparent 0 48%, color-mix(in srgb, var(--line) 38%, transparent) 48.05% 48.12%, transparent 48.18% 100%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  transition: background-color .35s ease, color .35s ease;
}

body.is-loading { overflow: hidden; }

.page-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center;
  background: #0d0d0f; color: #f7f6f2; text-align: center;
  transition: opacity .55s ease, visibility .55s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-emblem { position: relative; width: 134px; height: 134px; display: grid; place-items: center; margin-bottom: 28px; }
.loader-emblem img { width: 84px; max-height: 70px; object-fit: contain; position: relative; z-index: 2; }
.loader-ring {
  position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.12); border-top-color: #ff3d42;
  border-right-color: rgba(255,61,66,.45); border-radius: 50%; animation: loader-spin 1.1s linear infinite;
}
.page-loader strong { font: 800 1.25rem/1 "Barlow Condensed", sans-serif; letter-spacing: .18em; }
.page-loader > span:not(.loader-ring) { margin-top: 9px; color: #9d9da5; font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.loader-track { width: min(260px, 64vw); height: 3px; margin-top: 28px; overflow: hidden; background: rgba(255,255,255,.1); }
.loader-track i { display: block; width: 100%; height: 100%; background: #ff3d42; transform-origin: left; animation: loader-progress 3s ease-out both; }
.maintenance-shell { transition: opacity .45s ease .12s; }
body.is-loading .maintenance-shell { opacity: 0; visibility: hidden; }
body.is-ready .maintenance-shell { opacity: 1; visibility: visible; }

button, a { -webkit-tap-highlight-color: transparent; }

.maintenance-shell {
  min-height: 100svh;
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 28px clamp(22px, 4.5vw, 76px) 20px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(18px, 2.5vh, 32px);
  overflow: hidden;
}

.topbar, .controls, .brand, .language-switch, footer, .footer-status { display: flex; align-items: center; }
.topbar { justify-content: space-between; position: relative; z-index: 10; }

.brand { color: inherit; text-decoration: none; gap: 13px; }
.brand-logo {
  width: 74px; height: 48px; object-fit: contain;
  filter: drop-shadow(0 7px 11px color-mix(in srgb, var(--accent) 20%, transparent));
}
.brand-copy { display: grid; line-height: .9; letter-spacing: .055em; }
.brand-copy strong { font: 800 20px/1 "Barlow Condensed", sans-serif; }
.brand-copy small { margin-top: 6px; font: 700 10px/1 "Inter", sans-serif; letter-spacing: .34em; color: var(--accent); }

.controls { gap: 10px; }
.language-switch, .icon-button {
  min-height: 44px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 10px 28px var(--shadow); backdrop-filter: blur(14px);
}
.language-switch { padding: 0 13px; gap: 7px; border-radius: 999px; }
.language-switch span { color: var(--line); }
.language-option { border: 0; background: none; color: var(--muted); padding: 5px 1px; font: 800 13px/1 "Inter", sans-serif; cursor: pointer; }
.language-option.is-active { color: var(--accent); }
.icon-button { width: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); cursor: pointer; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: none; }
html[data-theme="dark"] .moon-icon { display: block; }

.hero {
  display: grid; grid-template-columns: minmax(0, .96fr) minmax(390px, 1.04fr); align-items: center;
  gap: clamp(20px, 4vw, 72px); min-height: 0;
}

.hero-copy { position: relative; z-index: 2; max-width: 660px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; color: var(--accent);
  font-size: 12px; letter-spacing: .16em; margin-bottom: clamp(14px, 2vh, 24px);
}
.status-pill > span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 13%, transparent); animation: pulse 1.8s infinite; }

h1 {
  margin: 0; font: 900 clamp(3.8rem, 6.4vw, 7rem)/.82 "Barlow Condensed", sans-serif;
  letter-spacing: -.045em; text-transform: uppercase; max-width: 780px;
}
h1 em { color: var(--accent); font-style: italic; }
.intro { margin: clamp(24px, 3vh, 36px) 0 10px; max-width: 610px; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.72; }
.contact-note { margin: 0 0 22px; color: var(--text); font-weight: 650; font-size: .95rem; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 52px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 6px; color: inherit; text-decoration: none;
  font: 800 13px/1 "Inter", sans-serif; letter-spacing: .08em; transition: transform .2s, box-shadow .2s, background .2s;
}
.button svg { width: 21px; height: 21px; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 28%, transparent); }
.button-primary svg { fill: currentColor; }
.button-secondary { background: var(--surface); border-color: var(--line); }
.button-secondary svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px var(--shadow); }
.button:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }

.visual { height: min(56vh, 590px); min-height: 380px; position: relative; display: grid; place-items: center; isolation: isolate; }
.visual::before {
  content: ""; position: absolute; width: min(39vw, 570px); aspect-ratio: 1; z-index: -2;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); box-shadow: inset 0 0 0 24px color-mix(in srgb, var(--surface) 28%, transparent);
}
.visual::after {
  content: ""; position: absolute; width: min(34vw, 480px); height: 11%; bottom: 7%; z-index: -1;
  background: radial-gradient(ellipse, rgba(0,0,0,.25), transparent 68%); filter: blur(7px);
}
.visual img { width: min(37vw, 550px); max-height: 88%; object-fit: contain; filter: var(--art-filter); transform: translate(-1.5%, -1%); transition: filter .45s ease, transform .45s ease; animation: settle .8s ease both; }
.visual-orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; z-index: -1; }
.orbit-one { width: min(45vw, 660px); aspect-ratio: 1; transform: rotate(19deg); border-left-color: var(--accent); }
.orbit-two { width: min(34vw, 500px); aspect-ratio: 1; border-style: dashed; opacity: .55; }
.tool-mark { position: absolute; color: var(--accent); font: 400 30px/1 sans-serif; }
.tool-one { top: 16%; right: 8%; }
.tool-two { left: 4%; bottom: 22%; }
.duration-card {
  position: absolute; right: 2%; bottom: 10%; min-width: 108px; padding: 15px 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  box-shadow: 0 16px 40px var(--shadow); backdrop-filter: blur(12px); transform: rotate(-2deg);
}
.duration-card strong { display: block; font: 900 32px/.9 "Barlow Condensed", sans-serif; }
.duration-card span { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--muted); }

.fact-card {
  min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 13px 35px var(--shadow);
}
.fact-label { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--accent); font: 800 12px/1 "Inter", sans-serif; letter-spacing: .14em; }
.fact-label > span { width: 28px; height: 28px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 50%; font-size: 16px; }
.fact-card p { margin: 0; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 1.5; }
#fact-count { color: var(--muted); font: 700 11px/1 "Inter", sans-serif; letter-spacing: .1em; }

footer { justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.footer-status { gap: 8px; }
.footer-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@keyframes pulse { 50% { box-shadow: 0 0 0 11px transparent; } }
@keyframes settle { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  body { background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 35%), var(--bg); }
  .maintenance-shell { min-height: 100svh; overflow: visible; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-copy { max-width: 720px; }
  h1 { font-size: clamp(4.3rem, 15vw, 7rem); }
  .visual { order: -1; height: min(46vh, 470px); min-height: 330px; }
  .visual::before { width: min(79vw, 500px); }
  .visual img { width: min(72vw, 460px); max-height: 86%; }
  .orbit-one { width: min(88vw, 590px); }
  .orbit-two { width: min(65vw, 440px); }
  .duration-card { right: 7%; bottom: 6%; }
}

@media (max-width: 590px) {
  .maintenance-shell { padding: 20px 17px 16px; gap: 18px; }
  .brand-logo { width: 58px; height: 40px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 8px; }
  .visual { height: 335px; min-height: 0; margin-top: 4px; }
  .visual img { width: min(76vw, 390px); max-height: 86%; }
  h1 { font-size: clamp(4rem, 21vw, 5.8rem); }
  .intro { margin-top: 24px; line-height: 1.6; }
  .button { flex: 1 1 100%; }
  .fact-card { grid-template-columns: 1fr auto; gap: 10px; }
  .fact-card p { grid-column: 1 / -1; grid-row: 2; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  footer { align-items: flex-start; gap: 8px; line-height: 1.5; }
  .footer-status { text-align: right; justify-content: flex-end; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .maintenance-shell { padding-top: 20px; gap: 14px; }
  .visual { height: 49vh; min-height: 350px; }
  h1 { font-size: clamp(4rem, 6.8vw, 6.5rem); }
  .intro { margin-top: 18px; line-height: 1.55; }
  .fact-card { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader-track i { transform: scaleX(1); }
}
