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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: #000;
  background-image:
    radial-gradient(ellipse 55% 50% at 50% 40%, rgba(0, 145, 255, 0.32) 0%, rgba(0, 85, 255, 0.12) 35%, transparent 68%),
    radial-gradient(ellipse 45% 40% at 88% 92%, rgba(157, 80, 187, 0.28) 0%, rgba(110, 72, 170, 0.1) 45%, transparent 72%),
    radial-gradient(ellipse 38% 32% at 8% 12%, rgba(157, 80, 187, 0.18) 0%, rgba(0, 85, 255, 0.08) 40%, transparent 70%);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  isolation: isolate;
}

/* Ambient background glows — soft gradient accents */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--center {
  width: 52vw;
  height: 48vh;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse,
    rgba(0, 210, 255, 0.2) 0%,
    rgba(0, 85, 255, 0.14) 40%,
    transparent 72%
  );
}

.bg-glow--left {
  width: 36vw;
  height: 36vw;
  top: -8%;
  left: -12%;
  background: radial-gradient(
    circle,
    rgba(157, 80, 187, 0.2) 0%,
    rgba(110, 72, 170, 0.08) 50%,
    transparent 70%
  );
}

.bg-glow--right {
  width: 42vw;
  height: 42vw;
  bottom: -12%;
  right: -8%;
  background: radial-gradient(
    circle,
    rgba(0, 210, 255, 0.12) 0%,
    rgba(157, 80, 187, 0.22) 45%,
    transparent 72%
  );
}

/* Decorative 3D assets */
.deco {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Slightly soft background shapes */
.deco-ring {
  top: -10%;
  left: -14%;
  width: min(58vw, 560px);
  opacity: 0.92;
  filter: blur(4px);
}

.deco-pie {
  bottom: -8%;
  right: -6%;
  width: min(42vw, 420px);
  opacity: 0.82;
  filter: blur(5px);
}

@keyframes float-bars {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@keyframes float-cone {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(-4deg);
  }
}

/* Sharp foreground shapes */
.deco-bars {
  bottom: 4%;
  left: 2%;
  width: min(22vw, 200px);
  filter: none;
  animation: float-bars 5s ease-in-out infinite;
}

.deco-cone {
  top: 38%;
  right: 8%;
  width: min(14vw, 130px);
  z-index: 2;
  filter: none;
  animation: float-cone 4.2s ease-in-out infinite;
  animation-delay: -1.2s;
}

@media (prefers-reduced-motion: reduce) {
  .deco-bars,
  .deco-cone {
    animation: none;
  }
}

/* Header */
.header {
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.logo {
  height: 2rem;
  width: auto;
}

/* Hero */
.hero {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  width: 100%;
  gap: 1.75rem;
}

.headline {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw + 0.4rem, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: min(92vw, 52rem);
  margin: 0 auto;
}

.headline-top,
.headline-bottom {
  display: block;
}

.headline-part {
  display: block;
  white-space: nowrap;
}

.headline-bottom {
  white-space: nowrap;
}

/* Wide: 2 lines — "The Future of Business Operations" / "Start Here" */
@media (min-width: 640px) {
  .headline-part {
    display: inline;
  }

  .headline-part + .headline-part::before {
    content: " ";
  }
}

/* Narrow: 3 lines — stack "The Future of" and "Business Operations" */
@media (max-width: 639px) {
  .headline {
    max-width: min(88vw, 22rem);
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    line-height: 1.14;
  }
}

.subheadline {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 580px;
  font-weight: 400;
}

/* Social proof */
.social-proof {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid #000;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.avatar:not(:first-child) {
  margin-left: -0.6rem;
}

.avatar--1 {
  background-image: linear-gradient(135deg, #667eea, #764ba2);
}

.avatar--2 {
  background-image: linear-gradient(135deg, #f093fb, #f5576c);
}

.avatar--3 {
  background-image: linear-gradient(135deg, #4facfe, #00f2fe);
}

.avatar--4 {
  background-image: linear-gradient(135deg, #43e97b, #38f9d7);
}

.social-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.social-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.social-text span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #00d2ff 0%, #2491ff 42%, #6b46ff 100%);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 28px rgba(36, 145, 255, 0.35);
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 32px rgba(129, 140, 248, 0.35);
}

.cta:active {
  transform: translateY(0);
}

/* Invite form modal */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1040px);
  max-height: 92vh;
  height: fit-content;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(18, 22, 38, 0.98) 0%, rgba(8, 10, 18, 0.98) 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(36, 145, 255, 0.12) inset;
  animation: modal-in 0.28s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__header {
  position: relative;
  padding: 1.25rem 1.25rem 1rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.modal__title {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  padding-right: 2.5rem;
}

.modal__form {
  flex: 0 0 auto;
  line-height: 0;
  overflow: hidden;
  background: #12182b;
}

.modal__form-clip {
  height: 376px;
  overflow: hidden;
}

.modal__form iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: none;
  vertical-align: top;
}

@media (max-width: 900px) {
  .modal__form-clip {
    height: 468px;
  }

  .modal__form iframe {
    height: 520px;
  }
}

@media (max-width: 640px) {
  .modal__form-clip {
    height: 568px;
  }

  .modal__form iframe {
    height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal__dialog {
    animation: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal__dialog {
    width: 100%;
  }

  .modal__header {
    padding: 1.15rem 1rem 0.85rem;
  }

  .deco-ring {
    top: -6%;
    left: -28%;
    width: 72vw;
    filter: blur(3px);
  }

  .deco-bars {
    bottom: 2%;
    left: -2%;
    width: 28vw;
    opacity: 0.8;
  }

  .deco-cone {
    top: 32%;
    right: 2%;
    width: 18vw;
  }

  .deco-pie {
    bottom: -10%;
    right: -18%;
    width: 58vw;
    opacity: 0.7;
    filter: blur(4px);
  }

  .hero {
    gap: 1.5rem;
    padding-top: 3rem;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 1.5rem 1.25rem 2rem;
  }

  .header {
    top: 1.5rem;
  }

  .logo {
    height: 1.6rem;
  }

  .deco-cone {
    display: none;
  }
}
