:root {
  color-scheme: light;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --indigo-400: #818cf8;
  --sky-100: #e0f2fe;
  --white: #ffffff;
  --max-width: 1100px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--slate-100);
  color: var(--slate-900);
}

a {
  color: inherit;
}

a:hover {
  color: var(--indigo-600);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  padding: 80px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__logo {
  /* Ensure the logotype scales gracefully across responsive breakpoints */
  width: min(240px, 60vw);
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.hero__content h1 {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.4rem);
  margin-bottom: 16px;
}

.hero__content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--slate-700);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky-100);
  color: var(--indigo-600);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 0;
}

.hero__stats dt {
  font-weight: 700;
  color: var(--indigo-600);
}

.hero__stats dd {
  margin: 4px 0 0;
  color: var(--slate-600);
}

.hero__media img {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.2);
}

main {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 0 32px 96px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.section--light {
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  box-shadow: none;
}

.section--accent { 
  background: linear-gradient(135deg, #312e81, #4338ca);
  color: #eef2ff;
}
.section--portal {
  background: radial-gradient(circle at top right, rgba(129, 140, 248, 0.25), rgba(14, 116, 144, 0.08));
  box-shadow: none;
}
.section--portal .section__content {
  gap: 32px;
}

.section h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  margin-top: 0;
  margin-bottom: 16px;
}

.section p {
  margin-top: 0;
  color: inherit;
  line-height: 1.6;
}

.section--light p,
.section--light li {
  color: var(--slate-700);
}

.section__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section__media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.features {
  display: grid;
  gap: 20px;
}

.feature h3 {
  margin-bottom: 8px;
}

.benefits {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefits li {
  background: rgba(255, 255, 255, 0.65);
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.plans {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plan {
  background: rgba(255, 255, 255, 0.15);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

.section--accent .plan {
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

.plan--highlight {
  background: var(--white);
  color: var(--slate-900);
  border: 2px solid var(--indigo-500);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.plan h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.plan__price {
  font-size: 2.4rem;
  margin: 12px 0;
  font-weight: 700;
}

.plan__price span {
  font-size: 1rem;
  color: var(--slate-600);
}

.section--accent .plan__price span {
  color: rgba(226, 232, 240, 0.9);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: grid;
  gap: 12px;
}

.plan__note {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-top: 16px;
}

.section--accent .plan__note {
  color: rgba(226, 232, 240, 0.9);
}

.testimonials {
  display: grid;
  gap: 24px;
}

.portal {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portal__panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal__panel--dashboard {
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
}

.portal__panel--dashboard .portal__metric {
  background: rgba(79, 70, 229, 0.2);
}

.portal__submit {
  margin-top: 8px;
}

.portal__hint {
  font-size: 0.85rem;
  color: var(--slate-600);
}

.portal__message {
  font-size: 0.9rem;
  margin: 0;
}

.portal__message--status {
  margin-bottom: 16px;
  color: var(--slate-600);
}

.portal__message--error {
  color: #b91c1c;
}

.portal__panel--dashboard .portal__message--error {
  color: #fecaca;
}

.portal__message--success {
  color: #15803d;
}

.portal__panel--dashboard .portal__message--success {
  color: #bbf7d0;
}

.portal__message--info {
  color: #1d4ed8;
}

.portal__panel--dashboard .portal__message--info {
  color: #bfdbfe;
}

.portal__message--warning {
  color: #b45309;
}

.portal__panel--dashboard .portal__message--warning {
  color: #fcd34d;
}

.portal__message--muted {
  color: rgba(148, 163, 184, 0.85);
}

.portal__panel--dashboard .portal__message--muted {
  color: rgba(226, 232, 240, 0.7);
}

.portal__welcome h3 {
  margin: 0;
  font-size: 1.5rem;
}

.portal__welcome {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.portal__welcome p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.9);
}

.portal__logout {
  align-self: flex-start;
  white-space: nowrap;
}

.portal__metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.portal__metric {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal__metric strong {
  font-size: 1.6rem;
}

.portal__metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.8);
}

.portal__metric-note {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.7);
}

.portal__loading {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.75);
}

.portal__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portal__card {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: rgba(248, 250, 252, 0.95);
}

.portal__card h4 {
  margin: 0;
  font-size: 1.1rem;
}

.portal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.portal__list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portal__list li span,
.portal__list li strong {
  display: block;
}

.portal__list li span {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
}

.portal__status,
.portal__tag {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.portal__status {
  background: rgba(148, 163, 184, 0.3);
  color: rgba(248, 250, 252, 0.9);
}

.portal__status--primary {
  background: rgba(59, 130, 246, 0.4);
}

.portal__status--secondary {
  background: rgba(16, 185, 129, 0.4);
}

.portal__tag {
  background: rgba(129, 140, 248, 0.35);
  color: rgba(248, 250, 252, 0.95);
}

.portal__tag--warning {
  background: rgba(250, 204, 21, 0.45);
  color: rgba(15, 23, 42, 0.95);
}

.portal__link {
  font-size: 0.9rem;
  color: rgba(196, 210, 253, 0.95);
  text-decoration: none;
}

.portal__link:hover {
  color: #fff;
}

.portal__empty {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.7);
}

.portal__manage {
  align-self: flex-start;
}

.portal__list--compact li {
  flex-direction: column;
  gap: 6px;
}

.portal__list--homes li span {
  color: rgba(226, 232, 240, 0.85);
}

blockquote {
  margin: 0;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  color: var(--slate-600);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button--primary {
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
  color: #fff;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.35);
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 50px rgba(79, 70, 229, 0.4);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--indigo-600);
}

.button--ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.2);
}

.footer {
  background: var(--slate-900);
  color: #e2e8f0;
  padding: 48px 32px;
}

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  /* Brand lockup keeps icon and type aligned regardless of footer layout */
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer__brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.1);
  padding: 6px;
}

.footer nav {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

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

.footer a:hover {
  color: var(--indigo-400);
}

@media (max-width: 768px) {
  .hero,
  .section,
  main {
    padding: 48px 24px;
  }

  .section {
    border-radius: 24px;
    padding: 40px 28px;
  }

  .footer {
    padding: 40px 24px;
  }

  .footer__brand {
    width: 100%;
  }
}
