/* ============================================================
   HAI Platform — Apple.com Inspired Redesign
   Ultra-minimal, thin-line SVG icons, generous whitespace
   Accent: #C62828 (brand red) used sparingly
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Helvetica Neue", Arial,
               "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.47059;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* ---------- Header — Apple thin nav bar ---------- */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hai-logo {
  height: 36px;
  width: auto;
  opacity: 0.95;
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.15px;
}

/* ---------- Hero — Large centered title ---------- */
.hero {
  text-align: center;
  padding: 72px 24px 48px;
}

.hero-title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 21px);
  color: #515154;
  font-weight: 400;
  letter-spacing: 0.008em;
  line-height: 1.35;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Module Grid — Apple product card grid ---------- */
.modules {
  padding: 0 24px 56px;
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1024px;
  margin: 0 auto;
}

/* ---------- Card — Clean white, no heavy borders ---------- */
.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 28px 24px;
  border: 0.5px solid rgba(198,40,40,0.06);
  box-shadow:
    0 2px 8px rgba(198,40,40,0.04),
    0 0.5px 1px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94),
              box-shadow .35s cubic-bezier(.25,.46,.45,.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow:
    0 16px 40px rgba(198,40,40,0.10),
    0 4px 16px rgba(0,0,0,0.06);
}

.card-disabled {
  cursor: default;
  opacity: 0.7;
}
.card-disabled:hover {
  transform: none;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.03),
    0 0.5px 1px rgba(0,0,0,0.02);
}

/* Icon container — warm tinted, per-card color via inline style */
.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fef3f2, #fde8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background .3s ease, box-shadow .3s ease;
  box-shadow: 0 1px 4px rgba(198,40,40,0.08);
}

.card:hover .card-icon-wrap {
  background: linear-gradient(145deg, #C62828, #a01f1f);
  box-shadow: 0 4px 16px rgba(198,40,40,0.25);
}

.card-icon {
  width: 28px;
  height: 28px;
  color: #C62828;
  transition: color .3s ease;
}

.card:hover .card-icon {
  color: #ffffff;
}

.card-body {
  flex: 1;
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: #515154;
  line-height: 1.57;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer */
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(0,0,0,0.06);
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(21,128,61,0.12);
  color: #0d7a3e;
}

.badge-soon {
  background: rgba(198,40,40,0.08);
  color: #b03030;
}

.card-arrow {
  font-size: 15px;
  font-weight: 400;
  color: #C62828;
  transition: transform .25s ease;
}

.card:hover .card-arrow {
  transform: translateX(3px);
}

.card-arrow-off {
  color: #c7c7cc;
}

/* ---------- Status Bar — Minimal info strip ---------- */
.status-bar {
  text-align: center;
  padding: 0 24px 36px;
}

.status-bar p {
  font-size: 13px;
  color: #86868b;
  letter-spacing: 0.01em;
}

.status-bar strong {
  color: #C62828;
  font-weight: 600;
}

/* ---------- Footer — Apple minimal ---------- */
.site-footer {
  text-align: center;
  padding: 24px 20px 40px;
  color: #aeaeb2;
  font-size: 11px;
  letter-spacing: 0.02em;
  border-top: 0.5px solid rgba(0,0,0,0.06);
  margin-top: auto;
}

/* Desktop: render the application center at 90% without changing its layout. */
@media (min-width: 681px) {
  body { zoom: 0.9; }
}

/* ---------- Responsive ---------- */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
  .hero { padding: 56px 20px 36px; }
}

/* Mobile: single column */
@media (max-width: 680px) {
  .header-inner { height: 48px; padding: 0 16px; }
  .hai-logo { height: 28px; }
  .brand-name { font-size: 13.5px; }

  .hero { padding: 44px 18px 32px; }
  .hero-sub { font-size: 15px; }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 420px;
  }

  .card {
    padding: 24px 20px 20px;
    border-radius: 14px;
  }

  .card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .card-icon { width: 24px; height: 24px; }

  .card-title { font-size: 17px; }
  .card-desc { font-size: 13px; -webkit-line-clamp: 2; }

  .modules { padding: 0 16px 40px; }
  .status-bar { padding: 0 16px 28px; }
  .site-footer { padding: 20px 16px 32px; }
}


/* Shared platform header alignment: 62px visual height after desktop zoom. */
@media (min-width: 681px) {
  .header-inner { height: 69px; }
}


/* Shared platform typography. */
body, button, input, select, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/* Match the desktop header type to other platform pages after the 90% page scale. */
@media (min-width: 681px) {
  .brand-name { font-size: 18px; font-weight: 600; }
}
