:root {
  color-scheme: light;
  --ink: oklch(18% 0.02 154);
  --ink-soft: oklch(32% 0.018 154);
  --muted: oklch(47% 0.018 150);
  --paper: oklch(95.5% 0.016 86);
  --paper-strong: oklch(98% 0.012 86);
  --forest: oklch(20% 0.045 155);
  --forest-deep: oklch(14% 0.04 155);
  --forest-soft: oklch(27% 0.045 155);
  --brass: oklch(68% 0.105 78);
  --brass-dark: oklch(47% 0.075 72);
  --line: oklch(22% 0.02 154 / 0.14);
  --line-light: oklch(98% 0.012 86 / 0.22);
  --cream: oklch(97% 0.018 88);
  --shadow: 0 12px 34px oklch(12% 0.03 155 / 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Helvetica Neue", Helvetica, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

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

svg {
  display: block;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 5vw, 72px);
  color: var(--cream);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 180px;
  min-width: 180px;
}

.brand-mark,
.footer-mark {
  display: block;
  width: 42px;
  height: 40px;
  flex: none;
  object-fit: contain;
  border-radius: 4px;
}

.brand-name,
.footer-brand-name {
  color: var(--cream);
  font-size: 1.55rem;
  font-weight: 620;
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 34px);
  color: oklch(97% 0.012 86 / 0.82);
  font-size: 0.94rem;
  font-weight: 540;
}

nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

nav a:not(.nav-action):hover {
  border-color: currentColor;
}

.nav-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid oklch(82% 0.08 78 / 0.42);
  border-radius: 8px;
  padding: 0 16px;
  background: oklch(70% 0.1 78 / 0.9);
  color: oklch(20% 0.025 80);
  font-weight: 640;
}

.hero {
  min-height: 86svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, oklch(13% 0.04 155 / 0.96) 0%, oklch(16% 0.04 155 / 0.86) 33%, oklch(19% 0.035 155 / 0.18) 72%),
    linear-gradient(180deg, oklch(10% 0.03 155 / 0.2), transparent 38%, oklch(10% 0.03 155 / 0.44)),
    url("/assets/hero-premium.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: oklch(98% 0.012 86 / 0.18);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(9% 0.03 155 / 0.22), transparent 32%),
    radial-gradient(circle at 78% 20%, oklch(74% 0.11 78 / 0.11), transparent 32%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 44px));
  padding: 156px 0 92px clamp(22px, 6.8vw, 104px);
  color: var(--cream);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 7.6rem;
  font-weight: 640;
  line-height: 0.84;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin-bottom: 18px;
  color: oklch(97% 0.012 86 / 0.92);
  font-size: 1.56rem;
  line-height: 1.33;
  font-weight: 440;
}

.hero-note {
  max-width: 520px;
  margin-bottom: 38px;
  color: oklch(91% 0.016 86 / 0.7);
  font-size: 1.08rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button,
.tenant-form button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 560;
  cursor: pointer;
}

.button.primary,
.tenant-form button {
  background: linear-gradient(180deg, oklch(76% 0.11 78), oklch(62% 0.1 76));
  color: oklch(20% 0.026 80);
  border-color: oklch(82% 0.09 78 / 0.25);
}

.button.secondary {
  border-color: oklch(96% 0.012 86 / 0.34);
  color: var(--cream);
  background: oklch(10% 0.03 155 / 0.12);
}

.button:hover,
.tenant-form button:hover,
.nav-action:hover {
  filter: brightness(1.04);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: oklch(96% 0.012 86 / 0.7);
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.purpose {
  background: var(--paper-strong);
  padding: clamp(48px, 7vw, 88px) 0;
}

.purpose-grid,
.security-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.purpose h2,
.security h2,
.contact h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 3.18rem;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 620;
}

.purpose p,
.security-copy p,
.contact p {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.security-copy p + p {
  margin-top: 18px;
}

.assurance {
  background:
    linear-gradient(180deg, var(--paper-strong), var(--paper));
  padding: clamp(42px, 7vw, 86px) 0 clamp(52px, 8vw, 96px);
}

.assurance h2,
.tenant-grid h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 3.18rem;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 620;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow article {
  position: relative;
  min-height: 230px;
  padding: 34px 34px 36px;
  border-right: 1px solid var(--line);
}

.workflow article:last-child {
  border-right: 0;
}

.step-number {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 680;
}

.workflow svg {
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.workflow p,
.section-copy {
  color: var(--muted);
}

.workflow p {
  max-width: 300px;
  margin-bottom: 0;
  font-size: 0.98rem;
}

.tenant-access {
  background: linear-gradient(180deg, oklch(92.5% 0.016 86), oklch(89.5% 0.018 86));
  border-top: 1px solid oklch(35% 0.02 154 / 0.08);
  padding: clamp(44px, 7vw, 84px) 0;
}

.tenant-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}

.section-copy {
  max-width: 470px;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.tenant-form {
  background: var(--paper-strong);
  border: 1px solid oklch(25% 0.018 154 / 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.tenant-form label {
  display: block;
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
}

.tenant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  border: 1px solid oklch(22% 0.02 154 / 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: oklch(99% 0.008 86);
}

.tenant-form input {
  width: 100%;
  min-height: 56px;
  border: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 560;
  outline: none;
}

.tenant-form input:focus {
  box-shadow: inset 0 0 0 3px oklch(64% 0.075 78 / 0.24);
}

.tenant-form button {
  min-height: 56px;
  border-radius: 0;
  padding-inline: 28px;
}

.tenant-domain {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tenant-domain span {
  color: var(--ink);
  font-weight: 600;
}

.security {
  background: var(--forest);
  color: var(--cream);
  padding: clamp(56px, 8vw, 102px) 0;
}

.security h2 {
  color: var(--cream);
}

.security-copy p {
  color: oklch(94% 0.012 86 / 0.78);
}

.contact {
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 84px) 0;
}

.contact a,
.legal-article a {
  color: var(--brass-dark);
  font-weight: 620;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(22px, 5vw, 72px);
  background: var(--forest-deep);
  color: oklch(96% 0.012 86 / 0.76);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  width: 150px;
}

.footer-mark {
  width: 36px;
  height: 34px;
}

.footer-brand-name {
  font-size: 1.28rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: oklch(96% 0.012 86 / 0.72);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-links a {
  padding-block: 4px;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-copy {
  color: oklch(96% 0.012 86 / 0.7);
  font-size: 0.92rem;
  font-weight: 460;
  text-align: right;
}

.legal-page {
  background: var(--paper-strong);
}

.legal-header {
  position: static;
  background: var(--forest-deep);
  border-bottom: 1px solid oklch(96% 0.012 86 / 0.12);
}

.legal-main {
  padding: clamp(48px, 7vw, 90px) 22px clamp(72px, 9vw, 120px);
}

.legal-article {
  width: min(860px, 100%);
  margin: 0 auto;
  color: var(--ink);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.legal-article h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 4.4rem;
  font-weight: 640;
  line-height: 0.95;
}

.legal-date {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-lead {
  margin-bottom: clamp(42px, 6vw, 68px);
  color: var(--ink-soft);
  font-size: 1.24rem;
  line-height: 1.55;
}

.legal-article section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-article h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.36rem;
  font-weight: 640;
  line-height: 1.25;
}

.legal-article p {
  max-width: 72ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .site-header {
    padding: 20px 22px;
  }

  .brand {
    width: 132px;
    min-width: 132px;
  }

  nav a:not(.nav-action) {
    display: none;
  }

  .nav-action {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 82svh;
    background-position: 64% center;
  }

  .hero-copy {
    width: min(100% - 44px, 680px);
    padding: 128px 0 76px 22px;
  }

  h1 {
    font-size: 4.15rem;
  }

  .lead {
    max-width: 560px;
    font-size: 1.22rem;
  }

  .hero-note {
    max-width: 420px;
    font-size: 1rem;
  }

  .assurance h2,
  .tenant-grid h2,
  .purpose h2,
  .security h2,
  .contact h2 {
    font-size: 2.25rem;
  }

  .scroll-cue {
    display: none;
  }

  .workflow,
  .tenant-grid,
  .purpose-grid,
  .security-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .workflow article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }

  .workflow article:last-child {
    border-bottom: 0;
  }

  .tenant-form {
    padding: 14px;
  }

  .tenant-row {
    grid-template-columns: 1fr;
  }

  .tenant-form button {
    border-top: 1px solid oklch(22% 0.02 154 / 0.13);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-copy {
    text-align: left;
  }

  .legal-article h1 {
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
