@font-face {
  font-family: "Metropolis";
  src: url("/assets/fonts/metropolis/Metropolis-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("/assets/fonts/metropolis/Metropolis-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("/assets/fonts/metropolis/Metropolis-SemiBold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("/assets/fonts/metropolis/Metropolis-Black.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111714;
  --ink-2: #222925;
  --canvas: #c9ceca;
  --paper: #f6f7f4;
  --paper-2: #ffffff;
  --line: #aeb4af;
  --muted: #68706b;
  --orange: #ff6940;
  --lime: #d5ff63;
  --blue: #1769f5;
  --danger: #b12d1c;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  border-top: 5px solid var(--ink);
  background: var(--canvas);
  color: var(--ink);
  font-family: "Metropolis", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-header {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #c8ccc8;
  padding: 0 4vw;
  background: var(--paper-2);
}

.header-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 2.55rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.header-brand img {
  width: 45px;
  height: 45px;
  display: block;
  border-radius: 8px;
}

.header-nav {
  display: flex;
  align-items: center;
}

.header-nav a {
  position: relative;
  padding: 10px 0;
  color: #5b635e;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--ink);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  transform: scaleX(1);
}

.header-beta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8dcd8;
  border-radius: 18px;
  padding: 0 13px;
  color: #4d5550;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.header-beta span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 105, 64, 0.16);
}

.header-beta:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.home-canvas {
  min-height: calc(100svh - 132px);
  display: grid;
  place-items: center;
  padding: 48px 32px;
  background-color: var(--canvas);
}

.about-canvas {
  min-height: calc(100svh - 132px);
  display: grid;
  place-items: center;
  padding: 86px 4vw 92px;
  background: var(--canvas);
}

.about-layout {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.about-visual {
  display: grid;
  gap: 16px;
}

.about-visual img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(17, 23, 20, 0.24);
}

.about-visual span,
.about-kicker {
  color: #606963;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.about-kicker {
  margin: 4px 0 18px;
}

.about-copy h1 {
  max-width: 720px;
  margin: 0 0 32px;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.02;
}

.about-copy > p:not(.about-kicker) {
  max-width: 720px;
  margin: 0 0 18px;
  color: #3e4741;
  font-size: 1rem;
  line-height: 1.75;
}

.about-integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 42px;
}

.about-integrations span {
  border: 1px solid #9da49f;
  border-radius: 17px;
  padding: 8px 12px;
  background: rgba(246, 247, 244, 0.54);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
}

.about-contact {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 8px;
  padding: 24px 28px;
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: 0 22px 48px rgba(17, 23, 20, 0.2);
}

.about-contact > div {
  display: grid;
  gap: 4px;
}

.about-contact > div span {
  color: #99a29c;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.about-contact > div strong {
  font-size: 1.15rem;
}

.about-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--lime);
  padding-bottom: 5px;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.about-contact a:hover {
  color: var(--paper-2);
}

.about-contact a span {
  font-size: 1rem;
}

.message-stage {
  position: relative;
  width: min(990px, 100%);
  height: min(575px, calc(100svh - 222px));
  min-height: 490px;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 20, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow:
    0 36px 80px rgba(24, 31, 27, 0.2),
    0 8px 22px rgba(24, 31, 27, 0.12);
  animation: stageIn 420ms ease both;
}

.stage-label {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  color: #8b928d;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
}

.stage-label time {
  font-variant-numeric: tabular-nums;
}

.contact-card {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 246px;
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: 0 16px 34px rgba(17, 23, 20, 0.28);
  transform: translateX(-50%);
}

.contact-avatar {
  width: 54px;
  height: 54px;
  display: block;
  border-radius: 8px;
}

.contact-name {
  min-width: 0;
}

.contact-name h1,
.contact-name p {
  margin: 0;
}

.contact-name h1 {
  font-size: 0.94rem;
  font-weight: 600;
}

.contact-name p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #9ca49f;
  font-size: 0.66rem;
}

.contact-name p span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.contact-chevron {
  color: #69716c;
  font-size: 1.4rem;
}

.incoming-message {
  position: absolute;
  left: 28px;
  bottom: 128px;
  width: min(660px, calc(100% - 270px));
  animation: messageIn 430ms 160ms ease both;
}

.sender-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 5px;
  color: #5e6761;
  font-size: 0.66rem;
}

.sender-line img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.sender-line strong {
  color: var(--ink);
  font-weight: 600;
}

.sender-line span {
  color: #8c938e;
}

.intro-message {
  position: relative;
  border-radius: 22px 22px 22px 6px;
  padding: 17px 19px 16px;
  background: var(--ink-2);
  color: #f5f7f4;
  box-shadow: 0 10px 24px rgba(17, 23, 20, 0.2);
}

.intro-message::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.intro-message p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.52;
}

.intro-message p + p {
  margin-top: 12px;
  color: var(--lime);
  font-weight: 600;
}

.reply-area {
  position: absolute;
  right: 26px;
  bottom: 20px;
  width: min(370px, calc(100% - 52px));
  animation: replyIn 430ms 280ms ease both;
}

.phone-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(17, 23, 20, 0.12);
  border-radius: 25px;
  padding: 5px 5px 5px 16px;
  background: var(--paper-2);
  box-shadow:
    0 12px 28px rgba(17, 23, 20, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.phone-form:focus-within {
  border-color: var(--blue);
  box-shadow:
    0 12px 28px rgba(17, 23, 20, 0.16),
    0 0 0 3px rgba(23, 105, 245, 0.14);
}

.phone-form input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  outline: none;
}

.phone-form input::placeholder {
  color: #838b86;
  opacity: 1;
}

.phone-form button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--paper-2);
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(23, 105, 245, 0.28);
  transition: transform 140ms ease, background 140ms ease;
}

.phone-form button:hover {
  background: #0c57dc;
  transform: translateY(-1px);
}

.phone-form button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.phone-form button span {
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.form-message,
.reply-note {
  margin: 7px 14px 0;
  color: #747c77;
  font-size: 0.62rem;
  line-height: 1.35;
  text-align: right;
}

.form-message {
  min-height: 0;
  color: #315d2d;
  font-weight: 600;
}

.form-message:not(:empty) + .reply-note {
  display: none;
}

.form-message.error {
  color: var(--danger);
}

.home-footer {
  min-height: 158px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px 44px;
  align-items: start;
  border-top: 1px solid #bcc1bd;
  padding: 34px 4vw 26px;
  background: #eef0ed;
}

.footer-brand {
  display: grid;
  gap: 9px;
}

.footer-brand > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand strong {
  font-size: 0.96rem;
  font-weight: 900;
}

.footer-brand span,
.social-message {
  color: var(--muted);
  font-size: 0.7rem;
}

.legal-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.legal-links a,
.beta-link {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  text-underline-offset: 4px;
}

.legal-links a:hover,
.beta-link:hover {
  color: var(--blue);
}

.social-links button {
  min-height: 34px;
  border: 1px solid #a7ada8;
  border-radius: 17px;
  padding: 0 13px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(17, 23, 20, 0.06);
}

.social-links button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.social-message {
  grid-column: 1 / -1;
  min-height: 15px;
  margin: 0;
}

.social-message:empty {
  display: none;
}

.beta-link {
  grid-column: 1 / -1;
  width: max-content;
}

.about-footer {
  min-height: 130px;
}

.about-beta-link {
  grid-column: 3;
  grid-row: 1;
}

@keyframes stageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.994);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes replyIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 760px) {
  .home-header {
    min-height: 94px;
    padding: 0 18px;
  }

  .header-left {
    gap: 18px;
  }

  .header-brand {
    gap: 10px;
    font-size: 1.65rem;
  }

  .header-brand img {
    width: 36px;
    height: 36px;
  }

  .header-nav a {
    font-size: 0.7rem;
  }

  .header-beta {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.62rem;
  }

  .home-canvas {
    min-height: calc(100svh - 94px);
    padding: 26px 12px;
  }

  .about-canvas {
    min-height: calc(100svh - 94px);
    padding: 56px 20px 64px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-visual {
    grid-template-columns: 90px 1fr;
    align-items: end;
  }

  .about-visual img {
    width: 90px;
    height: 90px;
  }

  .about-copy h1 {
    margin-bottom: 26px;
    font-size: 2.4rem;
  }

  .about-copy > p:not(.about-kicker) {
    font-size: 0.9rem;
  }

  .about-contact {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .message-stage {
    width: 100%;
    height: auto;
    min-height: 600px;
  }

  .stage-label {
    top: 15px;
    left: 16px;
    right: 16px;
  }

  .contact-card {
    top: 48px;
    width: 220px;
    min-height: 82px;
    grid-template-columns: 48px minmax(0, 1fr) 16px;
    padding: 12px;
  }

  .contact-avatar {
    width: 48px;
    height: 48px;
  }

  .incoming-message {
    left: 16px;
    bottom: 162px;
    width: calc(100% - 32px);
  }

  .intro-message {
    padding: 15px 16px;
  }

  .intro-message p {
    font-size: 0.86rem;
  }

  .reply-area {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .home-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 18px;
  }

  .social-message,
  .beta-link {
    grid-column: auto;
  }

  .about-beta-link {
    grid-row: auto;
  }
}

@media (max-width: 390px) {
  .header-brand span {
    display: none;
  }

  .header-beta {
    width: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .message-stage,
  .incoming-message,
  .reply-area {
    animation: none;
  }
}
