.grox-page {
  --grox-night: #080c13;
  --grox-panel: #101722;
  --grox-panel-soft: #151e2a;
  --grox-text: #edf3f8;
  --grox-muted: #9baaba;
  --grox-blue: #55a9ff;
  --grox-blue-bright: #8dc8ff;
  --grox-line: rgba(166, 190, 214, 0.16);
  background: var(--grox-night);
  color: var(--grox-text);
  overflow-x: clip;
}

.grox-page .grox-topbar {
  color: var(--grox-text);
  background: color-mix(in srgb, var(--grox-night) 88%, transparent);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.grox-page .grox-topbar.is-scrolled {
  background: color-mix(in srgb, var(--grox-night) 94%, transparent);
  border-bottom-color: var(--grox-line);
}

.grox-page .grox-topbar .brand-logo {
  filter: brightness(0) invert(1);
}

.grox-page .site-nav {
  color: var(--grox-muted);
}

.grox-page .site-nav a:hover {
  color: var(--grox-text);
  background: rgba(255, 255, 255, 0.06);
}

.grox-page .site-nav a[aria-current="page"] {
  color: var(--grox-text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.grox-page .nav-toggle {
  color: var(--grox-text);
  background: var(--grox-panel);
  border-color: var(--grox-line);
}

.grox-page main {
  padding-bottom: 0;
}

.grox-kicker {
  margin: 0 0 1rem;
  color: var(--grox-blue-bright);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.grox-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding: clamp(4rem, 8vh, 7rem) max(20px, calc((100vw - 1280px) / 2));
  overflow: hidden;
  isolation: isolate;
}

.grox-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(78vw, 1050px);
  aspect-ratio: 1;
  right: -24vw;
  top: -35%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 139, 226, 0.2), rgba(58, 139, 226, 0.03) 45%, transparent 70%);
  filter: blur(2px);
}

.grox-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 37rem;
}

.grox-hero h1 {
  max-width: 12ch;
  color: var(--grox-text);
  font-size: clamp(2.7rem, 5.2vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.grox-lead {
  max-width: 35rem;
  margin-top: 1.5rem;
  color: var(--grox-muted);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.58;
}

.grox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.grox-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--grox-text);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.grox-button:hover {
  transform: translateY(-2px);
}

.grox-button-primary {
  color: #06101b;
  background: var(--grox-blue-bright);
  box-shadow: 0 10px 34px rgba(78, 165, 255, 0.24);
}

.grox-button-primary:hover {
  background: #b7dcff;
  box-shadow: 0 14px 42px rgba(78, 165, 255, 0.34);
}

.grox-button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--grox-line);
}

.grox-button-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

.grox-availability {
  max-width: 34rem;
  margin-top: 1.15rem;
  color: #7f91a3;
  font-size: 0.82rem;
  line-height: 1.5;
}

.grox-enter {
  animation: grox-rise 700ms var(--ease) both;
}

.grox-enter:nth-child(2) { animation-delay: 80ms; }
.grox-enter:nth-child(3) { animation-delay: 150ms; }
.grox-enter:nth-child(4) { animation-delay: 220ms; }
.grox-enter:nth-child(5) { animation-delay: 280ms; }

@keyframes grox-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.grox-stage {
  position: relative;
  z-index: 2;
  width: min(760px, 65vw);
  justify-self: end;
  perspective: 1400px;
  animation-delay: 220ms;
}

.grox-window {
  overflow: hidden;
  background: #111722;
  border: 1px solid rgba(191, 216, 241, 0.18);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.52), 0 0 100px rgba(71, 154, 239, 0.1);
  transform: rotateY(-5deg) rotateX(1.5deg);
  transform-origin: center;
  transition: transform 120ms linear;
}

.grox-window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: #718093;
  background: #171e29;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.66rem;
}

.grox-window-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #394452;
}

.grox-window-bar b {
  margin-inline: auto;
  padding-right: 42px;
  color: #8492a2;
  font-weight: 600;
}

.grox-window-body {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(150px, 28%) 1fr;
}

.grox-sidebar {
  padding: 25px 12px;
  background: #0d131d;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.grox-sidebar-label {
  margin: 0 9px 13px;
  color: #586879;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.grox-workspace {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 0 9px;
  border-radius: 7px;
  color: #77889a;
  font-size: 0.7rem;
}

.grox-workspace.active {
  color: #d5e4f2;
  background: #1b2634;
}

.grox-workspace i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #44576a;
}

.grox-workspace.active i {
  background: var(--grox-blue);
  box-shadow: 0 0 10px rgba(85, 169, 255, 0.6);
}

.grox-workspace small {
  color: #57687a;
  font-size: 0.58rem;
}

.grox-conversation {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px clamp(22px, 4vw, 42px) 21px;
  background: linear-gradient(145deg, #131a25, #101620);
}

.grox-conversation-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.grox-conversation-head > div {
  display: grid;
  gap: 3px;
}

.grox-conversation-head span {
  color: #6c7d90;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.grox-conversation-head strong {
  color: #d9e5ef;
  font-size: 0.76rem;
}

.grox-live {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #83d4ad !important;
  background: rgba(48, 171, 112, 0.09);
}

.grox-live i,
.grox-phone-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #54cf94;
  box-shadow: 0 0 7px rgba(84, 207, 148, 0.65);
}

.grox-message {
  max-width: 84%;
  margin-top: 28px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.7rem;
  line-height: 1.55;
}

.grox-message-user {
  align-self: flex-end;
  color: #d7e8f8;
  background: #22354b;
}

.grox-message-agent {
  display: flex;
  gap: 10px;
  color: #91a3b6;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.grox-message-agent strong {
  color: #d5e2ee;
  font-size: 0.69rem;
}

.grox-message-agent p {
  margin-top: 5px;
}

.grox-spark {
  flex: 0 0 auto;
  color: var(--grox-blue-bright);
}

.grox-progress {
  height: 2px;
  margin-top: 13px;
  overflow: hidden;
  background: #24313e;
  border-radius: 999px;
}

.grox-progress span {
  display: block;
  width: 72%;
  height: 100%;
  background: var(--grox-blue);
  animation: grox-pulse 2.4s ease-in-out infinite;
}

@keyframes grox-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.grox-command {
  margin-top: auto;
  padding: 12px 2px 2px;
  color: #718396;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.62rem;
}

.grox-cursor {
  display: inline-block;
  width: 5px;
  height: 10px;
  margin-left: 5px;
  vertical-align: -1px;
  background: var(--grox-blue);
  animation: grox-blink 1s steps(2, jump-none) infinite;
}

@keyframes grox-blink { 50% { opacity: 0; } }

.grox-phone {
  position: absolute;
  right: -3%;
  bottom: -11%;
  width: 145px;
  min-height: 285px;
  padding: 45px 17px 20px;
  border: 5px solid #2d3540;
  border-radius: 32px;
  color: var(--grox-text);
  background: linear-gradient(160deg, #172231, #0b1119);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55);
  transform: rotate(4deg);
}

.grox-phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 54px;
  height: 15px;
  border-radius: 20px;
  background: #030509;
  transform: translateX(-50%);
}

.grox-phone > span {
  color: #6f8294;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grox-phone > strong {
  display: block;
  margin-top: 10px;
  color: #e2edf6;
  font-family: var(--font-display);
  font-size: 0.82rem;
  line-height: 1.28;
}

.grox-phone-status {
  position: absolute;
  right: 14px;
  bottom: 18px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  color: #79cba4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.58rem;
}

.grox-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.5fr) minmax(300px, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
  padding: clamp(5rem, 10vw, 9rem) max(20px, calc((100vw - 1080px) / 2));
  border-top: 1px solid var(--grox-line);
}

.grox-section-label {
  padding-top: 0.35rem;
  color: #688099;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.grox-section-copy h2,
.grox-remote h2,
.grox-final h2 {
  max-width: 15ch;
  color: var(--grox-text);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.045em;
}

.grox-section-copy > p {
  max-width: 37rem;
  margin-top: 1.35rem;
  color: var(--grox-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.grox-feature-lines {
  grid-column: 2;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.grox-feature-lines li {
  display: grid;
  grid-template-columns: 2.5rem minmax(160px, 0.55fr) minmax(220px, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--grox-line);
}

.grox-feature-lines li:last-child {
  border-bottom: 1px solid var(--grox-line);
}

.grox-feature-lines span {
  color: var(--grox-blue);
  font-size: 0.67rem;
  font-weight: 700;
}

.grox-feature-lines strong {
  color: #dce7f0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.grox-feature-lines p {
  color: #7f91a4;
  font-size: 0.92rem;
}

.grox-remote {
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 10vw, 8rem) max(20px, calc((100vw - 1080px) / 2));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 12, 19, 0.94) 0%, rgba(8, 12, 19, 0.55) 60%, rgba(8, 12, 19, 0.28)),
    radial-gradient(circle at 78% 38%, rgba(77, 162, 249, 0.3), transparent 26%),
    radial-gradient(circle at 81% 35%, #1b314a 0%, #0d1622 32%, #080c13 70%);
  border-top: 1px solid var(--grox-line);
  border-bottom: 1px solid var(--grox-line);
}

.grox-remote-inner {
  max-width: 44rem;
}

.grox-remote h2 {
  max-width: 13ch;
}

.grox-remote-inner > p:last-child {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--grox-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.grox-pricing {
  row-gap: 0;
}

.grox-plans {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--grox-line);
  border-bottom: 1px solid var(--grox-line);
}

.grox-plans article {
  min-height: 265px;
  padding: 1.5rem 1.25rem 1.75rem;
  border-left: 1px solid var(--grox-line);
}

.grox-plans article:first-child {
  border-left: none;
}

.grox-plans article > p:first-child {
  color: var(--grox-blue-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.grox-plans h3 {
  margin: 2rem 0 1.5rem;
  color: var(--grox-text);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: -0.05em;
}

.grox-plans h3 span {
  margin-right: 2px;
  color: #7790a8;
  font-size: 0.95rem;
  vertical-align: super;
}

.grox-plans h3 small {
  display: block;
  margin-top: 0.4rem;
  color: #73869a;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.grox-plans article > p:last-child {
  color: var(--grox-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.grox-plan-featured {
  background: linear-gradient(180deg, rgba(72, 154, 239, 0.1), transparent);
}

.grox-pricing-note {
  grid-column: 2;
  max-width: 42rem;
  margin-top: 1.25rem;
  color: #718398;
  font-size: 0.82rem;
}

.grox-pricing-note a {
  color: #a8c6e4;
  text-underline-offset: 3px;
}

.grox-final {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(6rem, 12vw, 10rem) max(20px, calc((100vw - 1080px) / 2));
  background:
    linear-gradient(135deg, rgba(64, 151, 239, 0.12), transparent 45%),
    var(--grox-night);
  border-top: 1px solid var(--grox-line);
}

.grox-final h2 {
  max-width: 14ch;
}

.grox-final .grox-button {
  margin-top: 2rem;
}

.grox-page .grox-footer {
  color: #8394a7;
  background: #070a10;
  border-top-color: var(--grox-line);
}

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

/* Terms */

.terms-page {
  background: #f5f4ef;
  color: #25343b;
}

.terms-page .grox-topbar {
  color: var(--ink);
  background: color-mix(in srgb, #f5f4ef 90%, transparent);
  border-bottom-color: #dfddd5;
}

.terms-page .grox-topbar .brand-logo {
  filter: none;
}

.terms-page .site-nav {
  color: var(--muted);
}

.terms-page .site-nav a:hover {
  color: var(--ink);
  background: rgba(11, 31, 40, 0.05);
}

.terms-page .nav-toggle {
  color: var(--ink);
  background: #fff;
  border-color: #d8d5cd;
}

.terms-hero {
  padding: clamp(4rem, 9vw, 7rem) max(20px, calc((100vw - 1080px) / 2)) 4rem;
  border-bottom: 1px solid #dfddd5;
}

.terms-hero .grox-kicker {
  color: var(--accent-deep);
}

.terms-hero h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  letter-spacing: -0.055em;
}

.terms-hero > p:last-child {
  margin-top: 1.25rem;
  color: var(--muted);
}

.terms-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 680px);
  gap: clamp(3rem, 9vw, 8rem);
  padding: 4rem max(20px, calc((100vw - 1080px) / 2)) 8rem;
}

.terms-nav {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
  display: grid;
  gap: 0.58rem;
}

.terms-nav p {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.terms-nav a {
  color: var(--muted);
  font-size: 0.83rem;
  text-decoration: none;
}

.terms-nav a:hover {
  color: var(--accent-deep);
}

.terms-content section {
  scroll-margin-top: calc(var(--header-h) + 2rem);
  padding: 0 0 3rem;
}

.terms-content section + section {
  padding-top: 3rem;
  border-top: 1px solid #dfddd5;
}

.terms-content h2 {
  max-width: none;
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.terms-content h3 {
  margin: 1.7rem 0 0.7rem;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.terms-content p,
.terms-content li {
  color: #46575e;
  font-size: 1rem;
  line-height: 1.75;
}

.terms-content p + p {
  margin-top: 1rem;
}

.terms-content ul,
.terms-content ol {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.terms-content a {
  color: var(--accent-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}

.terms-page .grox-footer {
  color: var(--muted);
  background: #eeece5;
  border-top-color: #d8d5cd;
}

.terms-page .grox-footer a:hover {
  color: var(--ink);
}

@media (max-width: 1040px) {
  .grox-hero {
    grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
    gap: 3rem;
  }

  .grox-stage {
    width: 62vw;
  }

  .grox-phone {
    right: -1%;
    width: 125px;
    min-height: 245px;
  }
}

@media (max-width: 800px) {
  .grox-page .grox-topbar.nav-open .site-nav {
    background: #111722;
    border-color: var(--grox-line);
  }

  .terms-page .grox-topbar.nav-open .site-nav {
    background: #fff;
    border-color: #d8d5cd;
  }

  .grox-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 5rem;
    padding-bottom: 7rem;
  }

  .grox-hero h1 {
    max-width: 13ch;
  }

  .grox-stage {
    width: min(700px, 96vw);
    margin-right: -12vw;
    justify-self: center;
  }

  .grox-window {
    transform: none;
  }

  .grox-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grox-feature-lines,
  .grox-plans,
  .grox-pricing-note {
    grid-column: 1;
  }

  .grox-feature-lines {
    margin-top: 1rem;
  }

  .grox-feature-lines li {
    grid-template-columns: 2rem 1fr;
  }

  .grox-feature-lines li p {
    grid-column: 2;
  }

  .grox-plans {
    grid-template-columns: 1fr;
  }

  .grox-plans article {
    min-height: auto;
    border-left: none;
    border-top: 1px solid var(--grox-line);
  }

  .grox-plans article:first-child {
    border-top: none;
  }

  .terms-layout {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .terms-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dfddd5;
  }

  .terms-nav p {
    flex-basis: 100%;
  }
}

@media (max-width: 560px) {
  .grox-hero {
    padding-top: 4rem;
    gap: 3.2rem;
  }

  .grox-hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .grox-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .grox-button {
    width: 100%;
  }

  .grox-stage {
    width: 680px;
    margin-left: 290px;
    margin-right: 0;
    transform: scale(0.68);
    transform-origin: left center;
  }

  .grox-phone {
    right: 2%;
  }

  .grox-section-copy h2,
  .grox-remote h2,
  .grox-final h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .grox-remote {
    min-height: 70svh;
  }

  .grox-feature-lines li {
    padding-block: 1.1rem;
  }

  .terms-hero {
    padding-top: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grox-enter,
  .grox-progress span,
  .grox-cursor {
    animation: none;
  }

  .grox-window {
    transform: none !important;
  }
}
