/* =========================================================
   Olewww LLP — trial app landing page
   Sky blue, Gardens by the Bay, transparent chrome
   ========================================================= */

.home-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.home-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.home-wrap {
  width: min(1180px, calc(100% - clamp(36px, 7vw, 96px)));
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.home-hero {
  position: relative;
  padding: calc(var(--head-h) + clamp(54px, 8vh, 96px)) 0 clamp(62px, 10vh, 112px);
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 18%;
  width: min(820px, 74vw);
  height: 560px;
  background: radial-gradient(ellipse at 34% 46%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16) 46%, transparent 72%);
  pointer-events: none;
}

.home-hero .eyebrow {
  margin-bottom: clamp(16px, 2.4vh, 24px);
}

.home-hero h1 {
  max-width: 15ch;
  font-family: var(--display);
  font-size: clamp(3.3rem, 7.4vw, 6.4rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.07em;
  color: #082d44;
  text-wrap: balance;
}

.home-hero h1 .sky-text {
  background: linear-gradient(102deg, #0a3c59 4%, #146f95 42%, #43b3de 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-lede {
  max-width: 58ch;
  margin-top: clamp(20px, 3vh, 30px);
  font-size: clamp(0.94rem, 1.18vw, 1.05rem);
  line-height: 1.75;
  color: #2b5f77;
}

.home-lede strong {
  color: #0c4a66;
  font-weight: 700;
}

.home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3.6vh, 34px);
}

.home-actions .btn {
  min-height: 50px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
  font-size: 0.71rem;
  letter-spacing: 0.025em;
  color: #3b7187;
}

.hero-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(76, 175, 125, 0.55);
  animation: pulse 2.6s ease-in-out infinite;
}

/* ---------- Trial apps ---------- */

.apps-section {
  position: relative;
  padding: clamp(38px, 6vw, 72px) 0 clamp(54px, 8vw, 92px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.46) 10%, rgba(255, 255, 255, 0.4) 88%, rgba(255, 255, 255, 0.06));
}

.apps-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 90% 30%, rgba(255, 255, 255, 0.4), transparent 66%);
  pointer-events: none;
}

.apps-section .home-wrap {
  position: relative;
  z-index: 1;
}

.apps-head {
  max-width: 700px;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.apps-head .eyebrow {
  margin-bottom: 12px;
}

.apps-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.9vw, 3.2rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.055em;
  color: #082d44;
  text-wrap: balance;
}

.apps-head p {
  max-width: 58ch;
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #376d85;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 24px);
}

.app-card {
  --app-accent: #1687a9;
  --app-tint: rgba(39, 158, 195, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(23px, 2.8vw, 32px);
  border-radius: 22px;
  border: 1px solid rgba(22, 99, 132, 0.15);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 24px 60px rgba(22, 100, 134, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.32s ease, border-color 0.32s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--app-accent), rgba(255, 255, 255, 0));
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 99, 132, 0.28);
  box-shadow: 0 32px 74px rgba(22, 100, 134, 0.17);
}

.app-card--job {
  --app-accent: #1687a9;
  --app-tint: rgba(39, 158, 195, 0.11);
}

.app-card--pay {
  --app-accent: #d77e55;
  --app-tint: rgba(232, 139, 99, 0.11);
}

.app-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--app-tint);
  border: 1px solid rgba(22, 99, 132, 0.12);
  color: var(--app-accent);
}

.app-icon svg {
  width: 21px;
  height: 21px;
}

.app-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 99, 132, 0.14);
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--display);
  font-size: 0.49rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3f7388;
}

.app-card h3 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.1vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #0a344b;
}

.app-card p {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.67;
  color: #416f84;
}

.app-list {
  display: grid;
  gap: 7px;
  margin: 17px 0 22px;
  padding: 0;
  list-style: none;
}

.app-list li {
  position: relative;
  padding-left: 21px;
  font-size: 0.74rem;
  line-height: 1.55;
  color: #365f73;
}

.app-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 11px;
  height: 6px;
  border-left: 1.8px solid var(--app-accent);
  border-bottom: 1.8px solid var(--app-accent);
  transform: rotate(-45deg);
}

.app-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid rgba(22, 99, 132, 0.15);
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 600;
  color: #0b4c68;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.app-link svg {
  width: 16px;
  height: 16px;
  color: var(--app-accent);
  transition: transform 0.25s var(--ease);
}

.app-link:hover {
  background: #ffffff;
  border-color: rgba(22, 99, 132, 0.3);
}

.app-link:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Demo access ---------- */

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(16px, 2.4vw, 24px);
  padding: clamp(23px, 3.4vw, 34px);
  border-radius: 20px;
  border: 1px dashed rgba(22, 99, 132, 0.26);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.demo-panel .eyebrow {
  margin-bottom: 10px;
}

.demo-panel h3 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.52rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #0a344b;
}

.demo-panel p {
  margin-top: 7px;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #416f84;
}

.demo-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 99, 132, 0.12);
  font-size: 0.65rem;
  line-height: 1.55;
  color: #577b8d;
}

.demo-warning svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: #bf8136;
}

.credentials {
  display: grid;
  gap: 8px;
}

.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 15px;
  border-radius: 10px;
  border: 1px solid rgba(22, 99, 132, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.credential span {
  flex: 1;
  font-family: var(--display);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5e8395;
}

.credential strong {
  font-family: "Sora", monospace;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #0b4058;
}

.copy-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(22, 99, 132, 0.16);
  background: rgba(39, 158, 195, 0.07);
  color: #2b6f88;
  transition: background 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: rgba(39, 158, 195, 0.16);
  color: #0a4058;
}

.copy-btn svg {
  width: 13px;
  height: 13px;
}

.copy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: 0.59rem;
  color: #5c8193;
}

.copy-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(76, 175, 125, 0.55);
}

.home-signoff {
  margin-top: clamp(28px, 4vw, 42px);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #4e7a8e;
}

.home-signoff strong {
  color: #0c4964;
  font-weight: 700;
}

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

@media (max-width: 900px) {
  .home-hero h1 {
    font-size: clamp(3rem, 9.8vw, 5rem);
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .demo-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .home-hero {
    padding-top: calc(var(--head-h) + 26px);
    padding-bottom: 52px;
  }

  .home-hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.2rem);
    max-width: 12ch;
  }

  .home-lede {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .home-actions .btn {
    width: 100%;
    min-height: 47px;
  }

  .apps-section {
    padding-top: 36px;
    padding-bottom: 54px;
  }

  .apps-head h2 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .app-card {
    border-radius: 18px;
    padding: 21px;
  }

  .demo-panel {
    border-radius: 18px;
    padding: 20px;
  }

  .home-signoff {
    text-align: left;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-note .dot {
    animation: none;
  }
}
