:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-deep: #070b12;
  --panel: rgba(10, 15, 24, 0.8);
  --panel-strong: rgba(12, 18, 30, 0.94);
  --line: rgba(6, 125, 117, 0.16);
  --line-strong: rgba(6, 125, 117, 0.34);
  --text: #f4fbff;
  --muted: #9fb2bf;
  --accent: #067d75;
  --accent-soft: #0a9a8f;
  --accent-bright: #27b8ab;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1160px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(6, 125, 117, 0.18), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(39, 184, 171, 0.12), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 52%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
  pointer-events: none;
  z-index: -3;
}

.page-glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.38;
  pointer-events: none;
  z-index: -2;
}

.page-glow-left {
  top: 4rem;
  left: -14rem;
  background: radial-gradient(circle, rgba(6, 125, 117, 0.42), transparent 64%);
}

.page-glow-right {
  top: -1rem;
  right: -12rem;
  background: radial-gradient(circle, rgba(39, 184, 171, 0.2), transparent 64%);
}

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

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

.topbar,
main {
  width: var(--container);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 1.1rem 0 0.35rem;
}

.brand-mark {
  height: 2.2rem;
  width: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - 4.5rem);
  padding: 1rem 0 2.5rem;
}

.hero-copy {
  max-width: 36rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 7.2vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-text {
  max-width: 32rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.82;
}

.slogans {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.slogan-lead {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.slogan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.slogan-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 125, 117, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 251, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-visual {
  position: relative;
  min-height: 48rem;
  display: grid;
  place-items: center;
}

.visual-orb {
  position: absolute;
  inset: auto 6% 6% 12%;
  width: 76%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 125, 117, 0.22), transparent 68%);
  filter: blur(12px);
  animation: drift 10s ease-in-out infinite;
}

.mockup {
  position: relative;
  width: min(100%, 640px);
  border-radius: 28px;
  border: 1px solid rgba(6, 125, 117, 0.24);
  background:
    linear-gradient(180deg, rgba(12, 19, 30, 0.94) 0%, rgba(6, 10, 18, 0.98) 100%);
  box-shadow:
    0 34px 68px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(6, 125, 117, 0.08),
    0 0 72px rgba(6, 125, 117, 0.14);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-11deg) rotateX(5deg);
  animation: float 8s ease-in-out infinite;
}

.mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 0%, rgba(6, 125, 117, 0.18), transparent 24%),
    radial-gradient(circle at 22% 100%, rgba(39, 184, 171, 0.1), transparent 30%);
  pointer-events: none;
}

.mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(6, 125, 117, 0.12);
}

.mockup-pill {
  width: 7.5rem;
  height: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 125, 117, 0.95), rgba(39, 184, 171, 0.55));
  box-shadow: 0 0 18px rgba(6, 125, 117, 0.22);
}

.mockup-dots,
.conversation-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mockup-dots span,
.conversation-actions span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(214, 236, 255, 0.26);
}

.mockup-body {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  min-height: 34rem;
}

.mockup-rail {
  padding: 1rem;
  border-right: 1px solid rgba(6, 125, 117, 0.1);
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 0.72rem;
  align-content: start;
}

.rail-row {
  height: 3rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(6, 125, 117, 0.08);
}

.rail-row-wide {
  height: 4.1rem;
}

.rail-row-mid {
  width: 88%;
}

.rail-row-short {
  width: 74%;
}

.mockup-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.chat-head-avatar {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 125, 117, 0.95), rgba(39, 184, 171, 0.6));
  box-shadow: 0 0 22px rgba(6, 125, 117, 0.2);
}

.chat-head-lines {
  display: grid;
  gap: 0.42rem;
}

.chat-head-lines span {
  display: block;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214, 236, 255, 0.3), rgba(214, 236, 255, 0.08));
}

.chat-head-lines span:first-child {
  width: 8rem;
}

.chat-head-lines span:last-child {
  width: 4.8rem;
}

.chat-stack {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.bubble {
  border-radius: 22px;
  border: 1px solid rgba(6, 125, 117, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.bubble-in {
  justify-self: start;
  width: min(72%, 18rem);
}

.bubble-out {
  justify-self: end;
  width: min(78%, 20rem);
  background: linear-gradient(135deg, rgba(6, 125, 117, 0.95), rgba(10, 154, 143, 0.92));
  border-color: rgba(6, 125, 117, 0.28);
  box-shadow: 0 20px 34px rgba(6, 125, 117, 0.18);
}

.bubble-a {
  height: 3.6rem;
}

.bubble-b {
  height: 4.8rem;
}

.bubble-c {
  height: 3.1rem;
  width: min(60%, 14rem);
}

.chat-media-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.media-card {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(6, 125, 117, 0.1), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 30% 30%, rgba(39, 184, 171, 0.25), transparent 55%);
  border: 1px solid rgba(6, 125, 117, 0.12);
}

.media-card-tall {
  aspect-ratio: 0.82 / 1;
}

.composer-skel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 125, 117, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.composer-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 236, 255, 0.46);
}

.composer-line {
  flex: 1;
  height: 0.76rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214, 236, 255, 0.28), rgba(214, 236, 255, 0.08));
}

.composer-send {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 125, 117, 0.95), rgba(39, 184, 171, 0.92));
  box-shadow: 0 14px 26px rgba(6, 125, 117, 0.24);
  position: relative;
}

.composer-send::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.56rem;
  height: 0.56rem;
  border: 2px solid rgba(7, 17, 28, 0.96);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.partner-badge {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 125, 117, 0.18);
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.partner-copy {
  color: rgba(244, 251, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.partner-logo {
  display: block;
  width: auto;
  height: 1.35rem;
}

@keyframes float {
  0%,
  100% {
    transform: perspective(1600px) rotateY(-11deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: perspective(1600px) rotateY(-11deg) rotateX(5deg) translateY(-12px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1.04);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 42rem;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-top: 0.9rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .slogans {
    gap: 0.7rem;
  }

  .slogan-lead {
    font-size: 1rem;
  }

  .slogan-list span {
    font-size: 0.88rem;
  }

  .hero-visual {
    min-height: 34rem;
  }

  .mockup {
    transform: none;
    animation: none;
    border-radius: 24px;
  }

  .mockup-body {
    grid-template-columns: 1fr;
  }

  .mockup-rail {
    border-right: 0;
    border-bottom: 1px solid rgba(6, 125, 117, 0.1);
  }

  .chat-media-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-card-tall {
    grid-column: span 2;
    aspect-ratio: 1 / 0.7;
  }
}

@media (max-width: 520px) {
  .topbar,
  main {
    width: min(100%, calc(100% - 1.2rem));
  }

  .hero {
    gap: 1.2rem;
  }

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

  .media-card-tall {
    grid-column: auto;
    aspect-ratio: 1 / 1;
  }

  .partner-badge {
    right: 0.75rem;
    bottom: 0.75rem;
    gap: 0.55rem;
    padding: 0.65rem 0.8rem;
  }

  .partner-copy {
    font-size: 0.74rem;
  }

  .partner-logo {
    height: 1.15rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
