@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f8f9fb;
  --ink: #080b10;
  --muted: #657080;
  --panel: #ffffff;
  --line: rgba(10, 15, 24, 0.12);
  --accent: #ff3d12;
  --accent-dark: #e42d09;
  --shadow: 0 26px 80px rgba(16, 24, 40, 0.13);
  --font-sans: "Manrope", Arial, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 78%, rgba(255, 61, 18, 0.08), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 251, 0.94)),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: absolute;
  inset: 112px 0 auto;
  height: 1px;
  background: rgba(10, 15, 24, 0.08);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.portal-shell {
  display: flex;
  flex-direction: column;
  width: min(1550px, calc(100% - 96px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px 0 0;
}

.topbar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 54px;
}

.menu-toggle {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  color: #0b0f16;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 232px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  flex: 1;
}

.nav a {
  position: relative;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover {
  color: var(--accent-dark);
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.phone {
  display: grid;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--ink);
  text-align: right;
  text-decoration: none;
}

.phone span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  font-size: clamp(20px, 1.38vw, 24px);
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.phone img {
  width: 24px;
  height: 25px;
  object-fit: contain;
  transform: translateY(4px);
}

.phone small {
  color: var(--muted);
  font-size: clamp(13px, 0.95vw, 16px);
}

.primary-action,
.secondary-action,
.login-form button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(460px, 560px) minmax(560px, 1fr);
  gap: clamp(76px, 5.8vw, 112px);
  align-items: center;
  min-height: calc(100vh - 112px);
  min-height: calc(100svh - 112px);
  margin-top: 28px;
  padding: 0;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 34px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1 {
  font-family: var(--font-sans);
  max-width: 560px;
  margin: 0;
  font-size: clamp(50.6px, 3.45vw, 57.5px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.mobile-title {
  display: none;
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(22px, 1.6vw, 26px);
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 268px) minmax(0, 268px);
  gap: 30px;
  max-width: 610px;
  margin-top: 36px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 18px 26px 20px;
  font-size: 19px;
  font-weight: 500;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.primary-action {
  color: #fff;
  background: linear-gradient(180deg, #ff4d18, #ff2e08);
  box-shadow: 0 14px 30px rgba(255, 61, 18, 0.26);
}

.secondary-action {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.primary-action:hover,
.secondary-action:hover,
.login-form button:hover {
  transform: translateY(-2px);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.45vw, 26px);
  max-width: 680px;
  margin-top: 58px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.22;
}

.benefit-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.dashboard-scene {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: end;
  width: 100%;
  overflow: visible;
  margin-top: 0;
  isolation: isolate;
}

.dashboard-scene img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(90%, calc((100svh - 144px) * 1.0846));
  max-width: none;
  height: auto;
  border-radius: clamp(12px, 1.2vw, 18px);
  box-shadow:
    0 34px 72px rgba(16, 24, 40, 0.17),
    0 8px 24px rgba(16, 24, 40, 0.08);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, box-shadow;
}

.dashboard-help {
  display: none;
}

/* Desktop-only dashboard motion; keep it disabled on mobile for stability. */
@keyframes dashboard-float {
  0%,
  100% {
    transform: translate3d(0, 5px, 0);
  }

  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes dashboard-shadow {
  0%,
  100% {
    box-shadow:
      0 28px 62px rgba(16, 24, 40, 0.14),
      0 7px 20px rgba(16, 24, 40, 0.07);
  }

  50% {
    box-shadow:
      0 42px 82px rgba(16, 24, 40, 0.19),
      0 12px 30px rgba(16, 24, 40, 0.09);
  }
}

@media (min-width: 1181px) and (prefers-reduced-motion: no-preference) {
  .dashboard-scene {
    animation: dashboard-float 7.5s ease-in-out infinite;
  }

  .dashboard-scene img {
    animation: dashboard-shadow 7.5s ease-in-out infinite;
  }
}

@media (min-width: 1181px) and (hover: hover) {
  .dashboard-scene:hover {
    animation-play-state: paused;
  }

  .dashboard-scene:hover img {
    transform: scale(1.008);
    animation-play-state: paused;
  }
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 16, 0.52);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(400px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.modal-panel h2 {
  margin: 15px 0 7px;
  font-size: 28px;
  line-height: 1.15;
}

.modal-brand {
  display: block;
}

.modal-brand .brand-logo {
  width: 156px;
}

.modal-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 15, 24, 0.08);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

.login-form input:focus {
  outline: 2px solid rgba(255, 61, 18, 0.22);
  border-color: rgba(255, 61, 18, 0.55);
}

.login-form button {
  min-height: 50px;
  margin-top: 2px;
  color: #fff;
  background: linear-gradient(180deg, #ff4d18, #ff2e08);
  box-shadow: 0 14px 30px rgba(255, 61, 18, 0.2);
  font-weight: 500;
}

.form-error {
  margin: 0;
  color: #c52707;
  font-size: 12.5px;
  text-align: center;
  line-height: 1.4;
}

.form-help {
  justify-self: center;
  margin-top: -2px;
  color: #7a8490;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: color 160ms ease;
}

.form-help:hover,
.form-help:focus-visible {
  color: var(--accent-dark);
  outline: none;
}

@media (max-width: 1440px) {
  .portal-shell {
    width: min(100% - 64px, 1280px);
  }

  .brand-logo {
    width: clamp(190px, 15.8vw, 224px);
  }

  .nav {
    gap: clamp(24px, 3.5vw, 46px);
  }

  .nav a {
    font-size: clamp(15px, 1.25vw, 17px);
  }

  .phone span {
    font-size: clamp(17px, 1.45vw, 20px);
  }

  .phone img {
    width: 21px;
    height: 22px;
  }

  .hero {
    grid-template-columns: minmax(400px, 480px) minmax(520px, 1fr);
    gap: clamp(84px, 7vw, 104px);
  }

  h1 {
    max-width: 480px;
    font-size: clamp(44.6px, 3.79vw, 49.1px);
    line-height: 1.08;
  }

  .hero-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    max-width: 500px;
  }

  .primary-action,
  .secondary-action {
    min-height: 60px;
    padding: 17px 16px 19px;
    font-size: clamp(15px, 1.25vw, 17px);
  }

  .benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 510px;
    margin-top: 36px;
  }

  .benefit {
    gap: 6px;
    font-size: 12px;
    min-width: 0;
  }

  .benefit-icon {
    width: 26px;
    height: 26px;
  }

  .benefit span {
    min-width: 0;
  }

}

@media (max-width: 1180px) {
  .portal-shell {
    width: min(100% - 42px, 980px);
    min-height: 100vh;
    padding-bottom: 36px;
  }

  .nav {
    display: none;
  }

  .hero {
    flex: none;
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    margin-top: 0;
    padding: 54px 0 34px;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(46px, 6vw, 64px);
    line-height: 1.07;
  }

  h1 span {
    white-space: nowrap;
  }

  .hero-actions {
    max-width: 610px;
  }

  .benefits {
    max-width: 610px;
  }

  .lead {
    font-size: 22px;
  }

  .dashboard-scene {
    margin-top: 0;
    min-height: auto;
  }

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

/* Mobile portal layout: compact header, fixed login CTA, and inset dashboard tile. */
@media (max-width: 680px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    min-height: 100svh;
    padding-bottom: 0;
  }

  body::before {
    display: none;
  }

  .portal-shell {
    width: min(100% - 36px, 520px);
    min-height: 100svh;
    height: 100svh;
    padding-top: 18px;
    padding-bottom: 0;
    overflow: visible;
  }

  .topbar {
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding-bottom: 18px;
  }

  .topbar.is-menu-open::before {
    content: "";
    position: fixed;
    inset: 88px 0 0;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
      rgba(247, 249, 252, 0.34);
    backdrop-filter: blur(2px);
    pointer-events: none;
  }

  .topbar::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    height: 1px;
    background: rgba(10, 15, 24, 0.08);
    transform: translateX(-50%);
  }

  .brand {
    position: relative;
    z-index: 2;
    min-width: 0;
    margin-right: auto;
  }

  .brand-logo {
    width: clamp(150px, 43vw, 168px);
  }

  .phone {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(10, 15, 24, 0.08);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  }

  .phone:hover,
  .phone:focus-visible {
    color: var(--ink);
    border-color: rgba(10, 15, 24, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
    transform: none;
    outline: none;
  }

  .phone > span {
    display: grid;
    place-items: center;
    font-size: 0;
  }

  .phone img {
    display: none;
  }

  .phone > span::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2A19.79 19.79 0 0 1 11.19 19 19.5 19.5 0 0 1 5 12.81 19.79 19.79 0 0 1 2.08 4.18 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72c.12.91.33 1.8.62 2.65a2 2 0 0 1-.45 2.11L8.09 9.62a16 16 0 0 0 6.29 6.29l1.14-1.14a2 2 0 0 1 2.11-.45c.85.29 1.74.5 2.65.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2A19.79 19.79 0 0 1 11.19 19 19.5 19.5 0 0 1 5 12.81 19.79 19.79 0 0 1 2.08 4.18 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72c.12.91.33 1.8.62 2.65a2 2 0 0 1-.45 2.11L8.09 9.62a16 16 0 0 0 6.29 6.29l1.14-1.14a2 2 0 0 1 2.11-.45c.85.29 1.74.5 2.65.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .phone .phone-number,
  .phone small {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(10, 15, 24, 0.08);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
    cursor: pointer;
    transform: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    color: var(--ink);
    border-color: rgba(10, 15, 24, 0.15);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
    transform: none;
    outline: none;
  }

  .menu-toggle span {
    grid-area: 1 / 1;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease, width 180ms ease;
  }

  .menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
  }

  .menu-toggle span:nth-child(3) {
    transform: translateY(6px);
  }

  .topbar.is-menu-open .menu-toggle span:nth-child(1) {
    width: 20px;
    transform: rotate(45deg);
  }

  .topbar.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-menu-open .menu-toggle span:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: 104px;
    left: 18px;
    right: 18px;
    z-index: 3;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(10, 15, 24, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
      0 28px 70px rgba(16, 24, 40, 0.18),
      0 8px 22px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .topbar.is-menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0);
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: var(--ink);
    background: rgba(10, 15, 24, 0.045);
    outline: none;
  }

  .hero {
    position: relative;
    gap: 0;
    align-items: start;
    align-content: start;
    height: calc(100svh - 86px);
    min-height: 0;
    margin-top: 0;
    padding: 28px 0 0;
    overflow: visible;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .eyebrow {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.28vw, 34px);
    line-height: 1.08;
  }

  h1 span {
    white-space: nowrap;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: block;
  }

  .lead {
    margin-top: 18px;
    font-size: clamp(16px, 4.5vw, 18px);
    line-height: 1.4;
  }

  .hero-actions {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 20;
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    pointer-events: none;
  }

  .hero-actions::before {
    display: none;
  }

  .primary-action {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 18px 20px 19px;
    font-size: 16px;
    text-align: center;
    pointer-events: auto;
    box-shadow:
      0 16px 34px rgba(255, 61, 18, 0.32),
      0 2px 0 rgba(255, 255, 255, 0.16) inset;
  }

  .secondary-action {
    display: none;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin-top: 28px;
  }

  .benefit {
    gap: 10px;
    font-size: 14px;
  }

  .benefit-icon {
    width: 30px;
    height: 30px;
  }

  .dashboard-scene {
    position: absolute;
    left: 50%;
    top: clamp(330px, calc(555px - 25svh), 450px);
    bottom: auto;
    z-index: 1;
    width: min(90%, 360px);
    margin: 0;
    overflow: visible;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .dashboard-scene img {
    width: 100%;
    border-radius: 9px;
    box-shadow:
      0 26px 62px rgba(16, 24, 40, 0.18),
      0 8px 24px rgba(16, 24, 40, 0.1),
      0 0 0 1px rgba(10, 15, 24, 0.04);
  }

  .dashboard-help {
    display: none;
  }

  .dashboard-help:hover,
  .dashboard-help:focus-visible {
    color: inherit;
    outline: none;
  }

  .modal-panel {
    padding: 22px;
  }

  .modal-panel h2 {
    font-size: 26px;
  }
}
