@layer reset, components;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { min-width: 320px; min-height: 100%; background: #f6f7f8; }
  body { min-height: 100vh; margin: 0; }
  img, svg { display: block; }
  a { color: inherit; }
}

@layer components {
  .maintenance-demo {
    --maintenance-ink: #12171b;
    --maintenance-muted: #606a70;
    --maintenance-line: rgba(20, 35, 45, .12);
    --brand-indigo: #313d82;
    --brand-violet: #754184;
    --brand-magenta: #c2387c;
    color: var(--maintenance-ink);
    background:
      radial-gradient(ellipse at 50% 78%, rgba(105, 81, 159, .12), transparent 38%),
      radial-gradient(ellipse at 62% 68%, rgba(201, 79, 145, .07), transparent 35%),
      #f6f7f8;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .maintenance-demo__shell {
    display: flex;
    width: min(100% - 80px, 1440px);
    min-height: 100vh;
    flex-direction: column;
    margin-inline: auto;
  }

  .maintenance-demo__header,
  .maintenance-demo__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .maintenance-demo__header {
    min-height: 82px;
    border-bottom: 1px solid var(--maintenance-line);
  }

  .maintenance-demo__brand { display: inline-flex; align-items: center; text-decoration: none; }
  .maintenance-demo__wordmark {
    display: block;
    width: 138px;
    height: 17px;
    background: linear-gradient(108deg, var(--brand-indigo) 0%, var(--brand-violet) 58%, var(--brand-magenta) 100%);
    -webkit-mask: var(--maintenance-wordmark-mask) left center / contain no-repeat;
    mask: var(--maintenance-wordmark-mask) left center / contain no-repeat;
  }

  .maintenance-demo__status,
  .maintenance-demo__footer-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4f5a60;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .maintenance-demo__status i,
  .maintenance-demo__footer-status i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-indigo), var(--brand-magenta));
    box-shadow: 0 0 0 4px rgba(117, 65, 132, .12);
  }

  .maintenance-demo__main {
    display: flex;
    flex: 1;
    align-items: center;
    flex-direction: column;
    gap: clamp(22px, 3vw, 34px);
    padding-block: clamp(26px, 3.4vw, 40px) clamp(38px, 4vw, 54px);
  }

  .maintenance-demo__copy { width: min(100%, 760px); text-align: center; }

  .maintenance-demo__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 13px;
    color: #69757b;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.5;
  }

  .maintenance-demo__eyebrow span { color: #263a46; }
  .maintenance-demo__eyebrow b { width: 22px; height: 1px; background: linear-gradient(90deg, var(--brand-indigo), var(--brand-magenta)); }

  .maintenance-demo__copy h1 {
    margin: 0;
    font-size: clamp(50px, 5.8vw, 78px);
    font-weight: 550;
    letter-spacing: -.085em;
    line-height: 1.02;
    text-wrap: balance;
  }

  .maintenance-demo__copy h1 em {
    background: linear-gradient(105deg, var(--brand-indigo) 0%, var(--brand-violet) 57%, var(--brand-magenta) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-family: inherit;
    font-size: 1.02em;
    font-style: normal;
    font-weight: 650;
    letter-spacing: -.085em;
  }

  .maintenance-demo__message {
    max-width: 550px;
    margin: 13px auto 0;
    color: var(--maintenance-muted);
    font-size: 14px;
    line-height: 1.65;
  }

  .maintenance-demo__film {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: clamp(18px, 2.4vw, 28px);
    color: var(--maintenance-ink);
  }

  .maintenance-demo__film-heading { width: min(100%, 720px); text-align: center; }

  .maintenance-demo__film-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    justify-content: center;
    margin: 0 0 11px;
    color: #68777f;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .17em;
    text-transform: uppercase;
  }

  .maintenance-demo__film-kicker > span { width: 22px; height: 1px; flex: 0 0 auto; background: linear-gradient(90deg, var(--brand-indigo), var(--brand-magenta)); }

  .maintenance-demo__film-heading h2 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 560;
    letter-spacing: -.065em;
    line-height: 1.08;
    text-wrap: balance;
  }

  .maintenance-demo__film-description {
    max-width: 560px;
    margin: 10px auto 0;
    color: var(--maintenance-muted);
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
  }

  .maintenance-demo__features {
    display: flex;
    width: min(100%, 760px);
    align-items: stretch;
    justify-content: center;
    margin-top: -2px;
  }

  .maintenance-demo__feature {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 50px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 8px 16px;
  }

  .maintenance-demo__feature + .maintenance-demo__feature::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 1px;
    background: rgba(20, 35, 45, .11);
    content: "";
  }

  .maintenance-demo__feature-icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    color: #586581;
  }

  .maintenance-demo__feature-icon svg { width: 22px; height: 22px; }

  .maintenance-demo__feature-label {
    color: #4c575d;
    font-size: 11px;
    font-weight: 580;
    letter-spacing: -.02em;
    white-space: nowrap;
  }

  .maintenance-demo__film-frame {
    position: relative;
    width: min(100%, 1200px);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 18px;
    background: #050608;
    box-shadow: 0 30px 78px rgba(40, 32, 77, .16), 0 8px 26px rgba(139, 59, 130, .07);
  }

  .maintenance-demo__film-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #050608; object-fit: cover; }

  .maintenance-demo__footer {
    min-height: 68px;
    border-top: 1px solid var(--maintenance-line);
    color: #7c858a;
    font-size: 11px;
  }

  .maintenance-demo__footer > span:first-child { letter-spacing: .02em; }
  .maintenance-demo__footer > span:first-child b { margin-inline: 8px; color: #9aa3a7; font-weight: 400; }
  .maintenance-demo__back-to-top {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid #d8dde0;
    border-radius: 50%;
    color: #4e5960;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  }
  .maintenance-demo__back-to-top svg { width: 15px; height: 15px; }
  .maintenance-demo__back-to-top:hover { background: #12161a; border-color: #12161a; color: #fff; transform: translateY(-2px); }
  .maintenance-demo__back-to-top:focus-visible { outline: 2px solid #933c91; outline-offset: 3px; }

  @media (max-width: 760px) {
    .maintenance-demo__shell { width: min(100% - 48px, 700px); }
    .maintenance-demo__header { min-height: 74px; }
    .maintenance-demo__main { gap: 30px; padding-block: 34px 44px; }
    .maintenance-demo__copy h1 { font-size: clamp(54px, 10vw, 78px); }
    .maintenance-demo__message { max-width: 520px; }
    .maintenance-demo__film { gap: 20px; }
    .maintenance-demo__film-description { max-width: 580px; }
  }

  @media (max-width: 560px) {
    .maintenance-demo__shell { width: calc(100% - 36px); }
    .maintenance-demo__header { min-height: 72px; }
    .maintenance-demo__wordmark { width: 108px; height: 13px; }
    .maintenance-demo__status { gap: 8px; font-size: 8px; letter-spacing: .08em; }
    .maintenance-demo__status i { width: 6px; height: 6px; }
    .maintenance-demo__main { gap: 22px; padding-block: 26px 32px; }
    .maintenance-demo__eyebrow { gap: 9px; margin-bottom: 12px; font-size: 8px; letter-spacing: .1em; }
    .maintenance-demo__eyebrow b { width: 14px; }
    .maintenance-demo__copy h1 { font-size: clamp(40px, 11.6vw, 56px); white-space: nowrap; }
    .maintenance-demo__copy h1 em { display: inline-block; margin-left: .025em; font-size: .84em; letter-spacing: -.075em; vertical-align: .045em; }
    .maintenance-demo__message { margin-top: 10px; font-size: 13px; line-height: 1.65; }
    .maintenance-demo__film { gap: 17px; }
    .maintenance-demo__film-heading { width: min(100%, 520px); }
    .maintenance-demo__film-kicker { gap: 7px; margin-bottom: 9px; font-size: 7px; }
    .maintenance-demo__film-kicker > span { width: 16px; }
    .maintenance-demo__film-heading h2 { font-size: clamp(27px, 7vw, 34px); }
    .maintenance-demo__film-description { margin-top: 8px; font-size: 12px; line-height: 1.6; }
    .maintenance-demo__features { margin-top: 0; }
    .maintenance-demo__feature { min-height: 55px; flex-direction: column; gap: 7px; padding: 8px 3px; }
    .maintenance-demo__feature + .maintenance-demo__feature::before { top: 8px; bottom: 8px; }
    .maintenance-demo__feature-icon { width: 24px; height: 24px; }
    .maintenance-demo__feature-icon svg { width: 20px; height: 20px; }
    .maintenance-demo__feature-label { font-size: 9px; }
    .maintenance-demo__film-frame { border-radius: 12px; }
    .maintenance-demo__footer { min-height: 68px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 9px; font-size: 10px; }
    .maintenance-demo__back-to-top { align-self: flex-end; }
  }

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