:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101613;
  color: #dee5e0;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page { overflow: hidden; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #404a45;
  background: #101613ed;
}
.site-header .shell { display: flex; align-items: center; gap: 24px; min-height: 86px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { display: block; width: 158px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.language-picker { padding: 9px 12px; border: 1px solid #404a45; border-radius: 10px; background: #1d2420; color: #dee5e0; }
.language-picker:focus-visible, .button:focus-visible, .text-link:focus-visible { outline: 3px solid #9af3e2; outline-offset: 3px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: #7fd7c8; color: #003731; }
.button-primary:hover { background: #9af3e2; }
.button-outline { border-color: #89938f; color: #dee5e0; background: transparent; }
.button-outline:hover { border-color: #9af3e2; background: #28302b; }
.header-login { font-size: 14px; }

.hero {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse 70% 75% at 77% 30%, #00504780, transparent 75%), #101613;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101613 0%, #101613ee 30%, #10161366 65%, #101613 100%), url("./hourglass-hero-m3.webp") 76% center / cover no-repeat;
  opacity: .75;
}
.hero .shell { display: grid; grid-template-columns: minmax(0, 670px) 1fr; align-items: center; min-height: 600px; padding-block: 88px 110px; }
.eyebrow { margin: 0 0 22px; color: #9af3e2; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 680px; margin: 0; color: #f0f7f2; font-size: clamp(42px, 5.5vw, 78px); letter-spacing: -.055em; line-height: 1.04; }
.hero-copy { max-width: 560px; margin: 27px 0 31px; color: #c3d0c8; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 17px 0 0; color: #aebbb2; font-size: 13px; }

.section { padding-block: 92px; }
.section-heading { max-width: 650px; margin-bottom: 35px; }
.section h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.04em; line-height: 1.13; }
.section-heading p:last-child { color: #aebbb2; font-size: 17px; line-height: 1.55; }
.features { background: #191f1c; border-block: 1px solid #404a45; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { min-height: 245px; padding: 30px; border: 1px solid #404a45; border-radius: 22px; background: #1d2420; }
.feature-mark { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 25px; border-radius: 13px; background: #005047; color: #9af3e2; font-size: 25px; font-weight: 700; }
.feature h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.025em; }
.feature p { margin: 0; color: #aebbb2; line-height: 1.55; }
.closing { padding-block: 82px 96px; text-align: center; }
.closing h2 { max-width: 700px; margin-inline: auto; }
.closing p { max-width: 580px; margin: 20px auto 27px; color: #aebbb2; font-size: 17px; line-height: 1.55; }
.closing .hero-actions { justify-content: center; }
.footer { padding-block: 30px; border-top: 1px solid #404a45; color: #aebbb2; font-size: 13px; }
.footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer a { color: #9af3e2; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .hero .shell { min-height: 550px; }
  .feature-grid { gap: 12px; }
  .feature { padding: 24px; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 32px, 520px); }
  .site-header .shell { min-height: 76px; gap: 10px; }
  .brand img { width: 124px; }
  .header-actions { gap: 8px; }
  .header-login { min-height: 40px; padding: 9px 12px; }
  .language-picker { max-width: 75px; padding: 8px 7px; }
  .hero::before { background: linear-gradient(180deg, #101613dd 0%, #101613c4 48%, #101613 100%), url("./hourglass-hero-m3.webp") 62% 0 / auto 63% no-repeat; opacity: .7; }
  .hero .shell { display: block; min-height: 0; padding-block: 105px 80px; }
  h1 { font-size: clamp(43px, 10vw, 62px); }
  .hero-copy { font-size: 17px; }
  .section { padding-block: 65px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .closing { padding-block: 65px 76px; }
  .footer .shell { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Horapus uses the same landing content and application routes with its own brand. */
html[data-brand="horapus"] { background: #151021; color: #f0ebf3; }
html[data-brand="horapus"] .site-header { background: #151021ed; border-color: #4b4258; }
html[data-brand="horapus"] .language-picker { background: #2e263d; border-color: #4b4258; color: #f0ebf3; }
html[data-brand="horapus"] .language-picker:focus-visible,
html[data-brand="horapus"] .button:focus-visible { outline-color: #d6c0ff; }
html[data-brand="horapus"] .button-primary { background: #d6c0ff; color: #2f155f; }
html[data-brand="horapus"] .button-primary:hover { background: #f0e8ff; }
html[data-brand="horapus"] .button-outline { color: #f0ebf3; border-color: #a096ac; }
html[data-brand="horapus"] .button-outline:hover { background: #2e263d; border-color: #d6c0ff; }
html[data-brand="horapus"] .hero { background: radial-gradient(ellipse 70% 75% at 77% 30%, #4a2b8080, transparent 75%), #151021; }
html[data-brand="horapus"] .hero::before { background: linear-gradient(90deg, #151021 0%, #151021ee 30%, #15102166 65%, #151021 100%), url("./horapus-signup-hero.png") 76% center / cover no-repeat; }
html[data-brand="horapus"] .eyebrow,
html[data-brand="horapus"] .footer a { color: #d6c0ff; }
html[data-brand="horapus"] h1 { color: #f0ebf3; }
html[data-brand="horapus"] .hero-copy { color: #d8cee0; }
html[data-brand="horapus"] .features { background: #1d182a; border-color: #4b4258; }
html[data-brand="horapus"] .feature { background: #2e263d; border-color: #4b4258; }
html[data-brand="horapus"] .feature-mark { background: #4a2b80; color: #f0e8ff; }
html[data-brand="horapus"] .footer { border-color: #4b4258; }

@media (max-width: 700px) {
  html[data-brand="horapus"] .hero::before { background: linear-gradient(180deg, #151021dd 0%, #151021c4 48%, #151021 100%), url("./horapus-signup-hero.png") 62% 0 / auto 63% no-repeat; }
}
