:root {
  color-scheme: light;
  --ink: #172338;
  --muted: #637086;
  --line: #dce4eb;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --teal: #0e817a;
  --teal-dark: #075f5b;
  --gold: #d8a33c;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(30, 54, 72, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f8faf9;
  font-family: "Rubik", system-ui, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.platform-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 12%, rgba(14, 129, 122, .16), transparent 30%),
    radial-gradient(circle at 88% 5%, rgba(216, 163, 60, .13), transparent 26%),
    linear-gradient(180deg, #fbfcfb 0%, #f3f7f6 100%);
}

.platform-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.platform-brand img { width: 50px; height: 50px; object-fit: contain; }
.platform-brand span { display: grid; line-height: 1; }
.platform-brand strong { font-size: 1.35rem; letter-spacing: .02em; }
.platform-brand small { margin-top: 6px; color: var(--teal); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }

.account-area { display: flex; align-items: center; gap: 14px; }
.account-name { font-size: .9rem; font-weight: 600; }
.ghost-button {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px;
  color: var(--ink); background: rgba(255,255,255,.65);
}

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  padding: 54px 0 76px;
}

.eyebrow { color: var(--teal); font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
.hero h1 { margin: 18px 0; max-width: 650px; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy > p { max-width: 600px; margin: 0; color: var(--muted); font-size: 1.14rem; line-height: 1.9; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.trust-row span { padding: 9px 13px; border: 1px solid rgba(14,129,122,.18); border-radius: 999px; color: var(--teal-dark); background: rgba(255,255,255,.68); font-size: .78rem; }

.auth-panel { padding: 24px; border: 1px solid rgba(220,228,235,.8); border-radius: 26px; background: rgba(255,255,255,.84); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); }
.auth-tab { padding: 10px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; }
.auth-tab.is-active { color: var(--ink); background: var(--paper); box-shadow: 0 4px 15px rgba(26,50,68,.08); font-weight: 700; }
.auth-form { margin-top: 24px; }
.form-heading h2 { margin: 0 0 7px; font-size: 1.45rem; }
.form-heading p { margin: 0 0 20px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.auth-form label { display: grid; gap: 7px; margin: 13px 0; color: #37445a; font-size: .78rem; font-weight: 600; }
.auth-form input, .auth-form select {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 11px;
  padding: 0 13px; color: var(--ink); outline: none; background: #fff;
}
.auth-form input:focus, .auth-form select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,129,122,.11); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.primary-button { width: 100%; min-height: 48px; margin-top: 10px; border: 0; border-radius: 12px; color: #fff; background: var(--teal); font-weight: 700; box-shadow: 0 10px 24px rgba(14,129,122,.2); }
.primary-button:hover { background: var(--teal-dark); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.form-message { margin-top: 14px; padding: 11px 13px; border-radius: 10px; color: var(--danger); background: #fff0ef; font-size: .82rem; }

.products-section { padding: 80px 0 100px; border-top: 1px solid rgba(220,228,235,.75); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.035em; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.7; font-size: .9rem; }
.products-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.product-card { min-height: 236px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.8); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card.has-access { border-color: rgba(14,129,122,.38); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(30,54,72,.1); }
.product-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: #e8f4f2; font-size: 1.35rem; }
.product-card h3 { margin: 18px 0 8px; font-size: 1rem; line-height: 1.5; }
.product-card p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.65; }
.product-actions { display: grid; gap: 7px; margin-top: auto; padding-top: 18px; }
.tenant-button, .unavailable-button { min-height: 36px; border-radius: 9px; padding: 7px 10px; font-size: .72rem; font-weight: 700; }
.tenant-button { border: 0; color: #fff; background: var(--teal); }
.unavailable-button { border: 1px solid var(--line); color: #8a94a3; background: var(--soft); cursor: default; }
.status-pill { align-self: flex-start; margin-top: 12px; padding: 5px 8px; border-radius: 999px; color: var(--teal-dark); background: #e5f4f1; font-size: .66rem; font-weight: 700; }
.loading-card { height: 236px; border-radius: 19px; background: linear-gradient(100deg,#edf1f2 30%,#f8fafa 50%,#edf1f2 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -150%; } }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 34px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 35px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .platform-header, main, footer { width: min(100% - 24px, 1180px); }
  .hero { gap: 34px; padding-bottom: 52px; }
  .hero h1 { font-size: 3.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .account-name { display: none; }
}
@media (max-width: 430px) {
  .products-grid { grid-template-columns: 1fr; }
  .auth-panel { padding: 17px; }
  footer { flex-direction: column; gap: 8px; }
}
