/* =============================================
   AiEZ TRADE Maintenance Page
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background: linear-gradient(160deg, #424242 0%, #090909 100%);
}

.scroll-wrapper {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  overflow-x: hidden;
}

.page {
  width: 100%;
}

/* =============================================
   SECTION 1 — Dark top + Notification card
   ============================================= */

.section-dark {
  padding: 83px 98px 80px;
  background: linear-gradient(160deg, #424242 0%, #090909 100%);
}

/* ---- Notification card ---- */

.notification-card {
  display: flex;
  border-radius: 30px;
  overflow: hidden;
  min-height: 691px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Left white panel */
.card-left {
  flex: 0 0 60%;
  background: #ffffff;
  border-radius: 30px 0 0 30px;
  padding: 106px 112px 80px 102px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.logo-img {
  height: 47px;
  width: auto;
}

.platform-label {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
}

.divider-line {
  width: 100%;
  height: 1.5px;
  background: #c5c5c5;
  margin: 0 auto 24px;
  align-self: center;
}

.notice-title {
  font-size: 32px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 38px;
}

.greeting {
  font-size: 16px;
  font-weight: 500;
  color: #1f1f1f;
  margin-bottom: 30px;
}

.main-body {
  font-size: 16px;
  font-weight: 400;
  color: #1f1f1f;
  line-height: 1.25;
  margin-bottom: 30px;
  max-width: 782px;
}

.highlight-date {
  font-weight: 700;
  color: #00B4F0;
}

.maintenance-info {
  font-size: 16px;
  font-weight: 400;
  color: #D93F3F;
  line-height: 1.5625;
  margin-bottom: 30px;
}

.apology-text {
  font-size: 16px;
  font-weight: 500;
  color: #1f1f1f;
  margin-bottom: 20px;
  flex: 1;
}

.sign-off {
  font-size: 16px;
  font-weight: 500;
  color: #1f1f1f;
  text-align: right;
  align-self: flex-end;
}

/* Right blue panel */
.card-right {
  flex: 1;
  background: linear-gradient(180deg, #5ac1f3 0%, #4da5e8 100%);
  border-radius: 0 30px 30px 0;
  position: relative;
  overflow: hidden;
  min-height: 691px;
}

/* Dot grid pattern */
.dots-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 9px, transparent 9px);
  background-size: 50px 50px;
  background-position: 0 0;
  pointer-events: none;
}

/* Background images in right panel */
.bg-img {
  position: absolute;
  object-fit: cover;
}

.bg-img-1 {
  left: -120px;
  top: -10px;
  width: 546px;
  height: 311px;
  opacity: 0.85;
}

.bg-img-2 {
  right: -150px;
  top: 10px;
  width: 576px;
  height: 336px;
  opacity: 0.85;
}

/* 3D image */
.img-3d {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 90%;
  width: auto;
  object-fit: cover;
  z-index: 2;
}

/* Sorry! rotated text */
.sorry-wrap {
  position: absolute;
  left: 8%;
  top: 42%;
  width: 200px;
  height: 100px;
  z-index: 1;
}

.sorry {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-size: 43px;
  font-weight: 700;
  letter-spacing: 1.08px;
  transform: rotate(-22.5deg);
  transform-origin: left top;
  top: 0;
  left: 0;
  white-space: nowrap;
}

.sorry-shadow {
  color: #4086ac;
  left: 3.6px;
}

.sorry-front {
  color: #ffffff;
}


/* =============================================
   SECTION 2 — Dark promo
   ============================================= */

.section-promo {
  background: #ededed;
  border-radius: 30px 30px 0 0;
  padding: 60px 0 0;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.promo-top {
  text-align: center;
  padding: 60px 100px 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.promo-heading-wrap {
  position: relative;
  display: inline-block;
  padding-top: 77px;
  margin-bottom: 24px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: 150% center; }
  100% { background-position: -50% center; }
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.2); }
}

@keyframes pulseText {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.promo-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4f4f4f 0%, #090909 100%);
  border-radius: 46.5px;
  width: 81px;
  height: 57px;
  font-size: 32px;
  z-index: 1;
}

.promo-heading-box {
  display: inline-block;
  background: linear-gradient(180deg, #4a4a4a 0%, #141414 100%);
  border-radius: 46.5px;
  padding: 19px 73px;
  margin-bottom: 0;
}

.promo-heading {
  font-size: 30px;
  font-weight: 700;
  color: #f6f6f6;
}

.promo-sub {
  font-size: 16px;
  font-weight: 500;
  color: #151515;
  margin-bottom: 8px;
}

.promo-product {
  font-size: 24px;
  font-weight: 700;
  color: #fb8d0c;
  display: inline-block;
  animation: pulseText 2s ease-in-out infinite;
  margin-top: 15px;
  min-height: 1.5em;
}

.promo-dashboard {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 80px;
  min-height: 0;
  overflow: hidden;
}

.promo-dashboard img {
  width: 60%;
  height: auto;
  max-width: 100%;
  display: block;
}


/* =============================================
   SECTION 3 — Light gray features
   ============================================= */

.section-features {
  background: #ededed;
  padding: 70px 0 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.source-label {
  font-size: 20px;
  font-weight: 700;
  color: #707070;
  margin-bottom: 22px;
}

.pricing-pill {
  display: inline-block;
  background: linear-gradient(
    105deg,
    #2a2a2a 0%,
    #4a4a4a 40%,
    #6a6a6a 50%,
    #4a4a4a 60%,
    #141414 100%
  );
  background-size: 400% auto;
  border-radius: 46.5px;
  padding: 20px 50px;
  margin-bottom: 22px;
  animation: shimmer 6s linear infinite;
}

.pricing-text {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.pricing-highlight {
  color: #fb8d0c;
}

.features-desc {
  font-size: 16px;
  font-weight: 500;
  color: #151515;
  margin-bottom: 50px;
}

/* ---- Feature cards grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 317px);
  gap: 23px;
  justify-content: center;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.feature-card {
  background: #ffffff;
  border-radius: 25px;
  box-shadow: 0 4px 7px rgba(0,0,0,0.25);
  padding: 27px 30px 30px;
  text-align: left;
  min-height: 237px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (min-width: 781px) {
  .feature-card:hover {
    transform: scale(1.04);
    background: #e8f6fd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
}

.card-num {
  font-size: 40px;
  font-weight: 700;
  color: rgba(87, 186, 240, 0.45);
  line-height: 1;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: #353535;
}

.card-desc {
  font-size: 16px;
  font-weight: 700;
  color: #848484;
  line-height: 1.5;
}

/* ---- CTA ---- */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cta-label {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 14px;
  animation: bounce 1s ease-in-out infinite;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4999f0 0%, #3b7ee8 100%);
  border-radius: 47px;
  color: #ffffff;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  padding: 0 50px;
  height: 78px;
  min-width: 264px;
  margin-bottom: 80px;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  opacity: 0.88;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid #d8d8d8;
  padding: 40px 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: 65px;
  width: auto;
}

.footer-text {
  font-size: 14px;
  font-weight: 500;
  color: #565656;
  letter-spacing: 1.4px;
  line-height: 1.9;
  text-align: center;
  max-width: 641px;
}


/* =============================================
   Responsive tweaks
   ============================================= */

@media (min-width: 668px) and (max-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(260px, 340px));
  }
}

@media (min-width: 790px) and (max-width: 1280px) {
  .notification-card {
    flex-direction: row;
    height: auto;
    min-height: 500px;
  }

  .card-left {
    flex: 0 0 60%;
    border-radius: 30px 0 0 30px;
    padding: 40px 40px 40px 40px;
  }

  .card-right {
    border-radius: 0 30px 30px 0;
    min-height: 500px;
  }

  .notice-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .greeting,
  .main-body,
  .maintenance-info,
  .apology-text,
  .sign-off,
  .platform-label {
    font-size: 13px;
  }

  .logo-img {
    height: 36px;
  }
}

@media (max-width: 1280px) {
  .section-dark {
    padding: 60px 40px 60px;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .img-3d {
    width: auto;
    height: 90%;
    bottom: 0;
    right: 0;
    top: auto;
    left: auto;
  }

  .bg-img-1, .bg-img-2 {
    display: none;
  }

  .sorry-wrap {
    left: 8%;
    top: calc(10% + 50px);
    transform: none;
  }

  .source-label {
    font-size: 16px;
  }

  .pricing-text {
    font-size: 20px;
  }

  .features-desc {
    font-size: 14px;
  }

  .card-num {
    font-size: 28px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-desc {
    font-size: 13px;
  }

  .cta-label {
    font-size: 16px;
  }

  .cta-btn {
    font-size: 16px;
    height: 60px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(180px, 300px));
    gap: 16px;
  }

  .feature-card {
    min-height: 170px;
    padding: 20px 22px;
  }

  .footer-logo {
    height: 45px;
  }

  .footer-text {
    font-size: 11px;
  }

  .section-promo {
    height: 100vh;
    height: 100dvh;
  }

  .promo-top {
    padding: 20px 60px 10px;
  }

  .promo-heading-wrap {
    padding-top: 48px;
    margin-bottom: 12px;
  }

  .promo-heading-box {
    padding: 12px 40px;
  }

  .promo-heading {
    font-size: 22px;
  }

  .promo-sub {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .promo-product {
    font-size: 18px;
    margin-top: 8px;
  }

  .promo-badge {
    width: 60px;
    height: 42px;
    font-size: 24px;
  }

  .promo-dashboard {
    padding: 0 40px;
    align-items: flex-start;
  }

  .promo-dashboard img {
    width: 60%;
    height: auto;
    max-width: 100%;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 317px);
  }

  .section-features {
    padding: 50px 20px 0;
  }
}

@media (max-width: 780px) {
  .section-dark {
    padding: 40px 20px 40px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    top: auto;
  }

  .notification-card {
    flex-direction: column;
    height: auto;
  }

  .card-left {
    flex: none;
    border-radius: 30px 30px 0 0;
    padding: 40px 30px 40px;
  }

  .card-right {
    border-radius: 0 0 30px 30px;
    min-height: 300px;
  }

  .sorry-wrap {
    left: 6%;
    top: calc(8% + 50px);
    transform: none;
  }

  .card-right {
    min-height: 220px;
  }

  .footer-text {
    font-size: 9px;
  }

  .notice-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .divider-line {
    margin-bottom: 12px;
  }

  .greeting {
    margin-bottom: 12px;
  }

  .main-body {
    margin-bottom: 12px;
  }

  .maintenance-info {
    margin-bottom: 12px;
  }

  .apology-text {
    margin-bottom: 10px;
  }

  .greeting,
  .main-body,
  .maintenance-info,
  .apology-text,
  .sign-off {
    font-size: 12px;
  }

  .section-promo {
    padding-top: 30px;
    height: auto;
    min-height: 0;
  }

  .promo-top {
    padding: 30px 20px 6px;
  }

  .promo-badge {
    width: 56px;
    height: 40px;
    font-size: 22px;
  }

  .promo-heading-wrap {
    padding-top: 48px;
  }

  .promo-heading {
    font-size: 18px;
  }

  .promo-sub {
    font-size: 14px;
  }

  .promo-product {
    font-size: 22px;
  }

  .source-label {
    font-size: 18px;
    margin-top: 20px;
  }

  .features-desc {
    font-size: 14px;
  }

  .pricing-text {
    font-size: 16px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-desc {
    font-size: 12px;
  }

  .card-num {
    font-size: 22px;
  }

  .feature-card {
    min-height: 160px;
  }

  .promo-heading-box {
    padding: 14px 30px;
  }

  .promo-dashboard {
    flex: none;
    padding: 0 10px 24px;
    align-items: flex-start;
  }

  .promo-dashboard img {
    width: 100%;
    max-width: 100%;
  }

  .cards-grid {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 20px 16px;
    margin: 0 0 40px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cards-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 78vw;
    scroll-snap-align: start;
    min-height: 160px;
  }

  .feature-card:first-child {
    margin-left: 20px;
  }

  .pricing-pill {
    padding: 16px 30px;
  }
}
