/* Horizontal Solutions - site styles ("Horizon") */

:root {
  --night: #0a1420;
  --night-2: #0f1c2d;
  --night-3: #070d16;
  --panel: #0d1826;
  --text: #eaeff5;
  --muted: #9badc1;
  --line: rgba(234, 239, 245, 0.14);
  --sun: #f2a541;
  --sun-light: #ffc06a;
  --dawn: #e0654a;
  --green: #5ccf8a;
  --max: 1200px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  font-weight: 780;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--sun), var(--dawn));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 18ch;
}

h3 {
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--sun);
  color: var(--night);
  padding: 8px 14px;
  border-radius: var(--radius);
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 5;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  box-shadow: 0 2px 0 var(--sun);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  padding: 8px 11px;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 0;
    background: var(--night-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 20px;
  }

  .nav-links a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--sun);
  }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block;
  background: var(--sun);
  color: #1a1206;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  padding: 15px 26px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover {
  background: var(--sun-light);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.link:hover {
  border-color: var(--sun);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 40ch;
  margin: 0 0 36px;
}

/* ---------- Home hero: sunrise ---------- */

.hero-copy {
  padding: 80px 0 24px;
  max-width: 820px;
}

.scene {
  height: clamp(260px, 32vw, 440px);
}

.scene svg {
  width: 100%;
  height: 100%;
}

.sun-rise {
  animation: rise 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    transform: translateY(120px);
  }
}

/* ---------- Inner page hero: a smaller sun on the horizon ---------- */

.page-hero {
  position: relative;
  padding: 72px 0 96px;
  border-bottom: 2px solid var(--sun);
  background: radial-gradient(ellipse 60% 70% at 80% 100%, rgba(224, 101, 74, 0.35), transparent 70%),
    linear-gradient(180deg, var(--night) 40%, #141f36 100%);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 0;
  width: 180px;
  height: 90px;
  border-radius: 180px 180px 0 0;
  background: radial-gradient(circle at 50% 100%, #ffe0a0, var(--sun) 50%, var(--dawn));
  box-shadow: 0 0 90px 30px rgba(242, 165, 65, 0.3);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin: -8px 0 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
  border: 1px solid rgba(242, 165, 65, 0.4);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

/* ---------- Sections ---------- */

.block {
  padding: 104px 0;
}

.block.alt {
  background: var(--night-2);
}

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rule::before {
  content: "";
  width: 22px;
  height: 11px;
  background: var(--sun);
  border-radius: 22px 22px 0 0;
  align-self: flex-end;
  margin-bottom: 0.45em;
}

.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.intro {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 52ch;
  margin: 0 0 56px;
}

/* Three columns divided by hairlines */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cols article {
  padding: 0 32px 0 0;
}

.cols article + article {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.big-num {
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 165, 65, 0.7);
  letter-spacing: -0.04em;
}

.cols h3 {
  font-size: 1.4rem;
  margin: 18px 0 10px;
}

.cols p {
  color: var(--muted);
  margin: 0;
}

/* Timeline: the sun rises a little more at each step */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(242, 165, 65, 0.2), var(--sun));
}

.timeline li {
  padding-right: 28px;
}

.dial {
  display: block;
  width: 56px;
  height: 28px;
  overflow: hidden;
  position: relative;
  margin-bottom: 26px;
}

.dial::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, #ffd27a, var(--sun) 55%, var(--dawn));
  transform: translateY(var(--y, 0px));
}

.timeline h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.timeline p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.step-status {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 6px;
}

/* ---------- Work ---------- */

.case {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent);
}

.client {
  color: var(--sun);
  font-weight: 600;
  margin: 0 0 6px;
}

.case h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.case p {
  color: var(--muted);
}

.outcomes {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.outcomes li {
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--line);
  position: relative;
}

.outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 2px;
  background: var(--sun);
}

/* One-way road illustration */
.road {
  margin: 0;
  background: #08111b;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
}

.road svg {
  width: 100%;
  height: auto;
}

.road figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 10px;
}

.truck {
  animation: drive 9s linear infinite;
}

@keyframes drive {
  0% {
    transform: translateX(0);
  }
  60%,
  100% {
    transform: translateX(540px);
  }
}

.light {
  animation: light 9s steps(1) infinite;
}

@keyframes light {
  0% {
    fill: var(--dawn);
  }
  64% {
    fill: var(--green);
  }
}

.waiting {
  animation: release 9s ease-in-out infinite;
}

@keyframes release {
  0%,
  66% {
    transform: translate(0, 0);
    opacity: 1;
  }
  92% {
    transform: translate(-80px, 64px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.product-strip {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chip {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun);
  border: 1px solid rgba(242, 165, 65, 0.4);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.product-strip h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.product-strip p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Closing call to action: the sun sets ---------- */

.sunset {
  text-align: center;
  padding: 120px 0 0;
  background: linear-gradient(180deg, var(--night) 0%, #1f2340 55%, #5b3048 82%, #b4513f 100%);
  overflow: hidden;
}

.sunset h2 {
  margin: 0 auto 16px;
  max-width: none;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.sunset p {
  color: #d7dbe6;
  font-size: 1.2rem;
  margin: 0 0 36px;
}

.setting {
  position: relative;
  height: 150px;
  margin-top: 72px;
  border-bottom: 2px solid var(--sun);
}

.setting::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 260px;
  height: 130px;
  margin-left: -130px;
  border-radius: 260px 260px 0 0;
  background: radial-gradient(circle at 50% 100%, #ffd27a, var(--sun) 50%, var(--dawn));
  box-shadow: 0 0 120px 40px rgba(242, 165, 65, 0.35);
}

/* ---------- Parod app preview ---------- */

.app {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(242, 165, 65, 0.06);
  overflow: hidden;
}

.app-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.app-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(234, 239, 245, 0.18);
}

.app-body {
  padding: 22px;
}

.app-title {
  font-weight: 700;
  margin-bottom: 16px;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.app-stats div {
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.app-stats small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.app-stats b {
  font-size: 1.25rem;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
  min-width: 48px;
  text-align: center;
}

.pill.high {
  background: rgba(224, 101, 74, 0.18);
  color: #ff9b85;
}

.pill.med {
  background: rgba(242, 165, 65, 0.18);
  color: var(--sun);
}

.pill.ok {
  background: rgba(92, 207, 138, 0.16);
  color: var(--green);
}

/* ---------- Forms ---------- */

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea,
.waitlist input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.waitlist input:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 3px rgba(242, 165, 65, 0.2);
}

::placeholder {
  color: rgba(155, 173, 193, 0.6);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.form-status {
  margin: 0;
  display: none;
}

.form-status.success,
.form-status.error {
  display: block;
  padding: 12px 14px;
  border-radius: 4px;
}

.form-status.success {
  background: rgba(92, 207, 138, 0.12);
  color: var(--green);
  border: 1px solid rgba(92, 207, 138, 0.35);
}

.form-status.error {
  background: rgba(224, 101, 74, 0.12);
  color: #ff9b85;
  border: 1px solid rgba(224, 101, 74, 0.35);
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.waitlist input {
  flex: 1 1 240px;
  width: auto;
}

.waitlist .form-status {
  flex-basis: 100%;
}

.fine-print {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
}

.panel {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-grid h2 {
  font-size: 1.6rem;
}

.contact-info {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.contact-info li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-info strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night-3);
  color: var(--muted);
  padding: 24px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cols article,
  .cols article + article {
    padding: 0;
    border: 0;
  }

  .timeline {
    grid-auto-flow: row;
    gap: 28px;
  }

  .timeline::before {
    display: none;
  }

  .timeline li {
    display: grid;
    grid-template-columns: 72px 1fr;
    padding: 0;
  }

  .dial {
    margin: 4px 0 0;
    border-bottom: 2px solid var(--sun);
  }

  .case {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 32px;
  }

  .product-strip,
  .panel {
    padding: 26px 22px;
  }

  .hero-split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .page-hero::after {
    right: 24px;
    width: 120px;
    height: 60px;
  }

  .block {
    padding: 80px 0;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .app-stats {
    grid-template-columns: 1fr 1fr;
  }

  .app-stats div:last-child {
    grid-column: span 2;
  }
}

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

  .sun-rise,
  .truck,
  .light,
  .waiting,
  .badge .dot {
    animation: none;
  }

  .truck {
    transform: translateX(260px);
  }
}
