:root {
  --bg: #040712;
  --surface: rgba(14, 20, 37, 0.74);
  --surface-strong: rgba(16, 24, 44, 0.9);
  --text: #eef3ff;
  --muted: #a7b6d8;
  --border: rgba(149, 166, 207, 0.24);
  --accent: #59d9ff;
  --accent-2: #8a7dff;
  --accent-hover: #7ce4ff;
  --focus: #7fe6ff;
  --radius: 16px;
  --shadow: 0 22px 54px rgba(1, 5, 16, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 560px at 16% -14%, rgba(74, 196, 255, 0.22), transparent 55%),
    radial-gradient(780px 520px at 88% 4%, rgba(141, 107, 255, 0.2), transparent 58%),
    radial-gradient(1000px 720px at 50% 108%, rgba(71, 255, 216, 0.12), transparent 72%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #0d162d;
  color: var(--text);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, 800px);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 9, 19, 0.68);
  backdrop-filter: blur(14px) saturate(125%);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  text-decoration: none;
  color: #f4f8ff;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 186, 255, 0.46);
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #050812;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(73, 164, 255, 0.28);
  transition: transform 160ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.nav-cta:hover {
  color: #041018;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(73, 164, 255, 0.4);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a[aria-current="page"],
.site-header nav a:hover {
  color: #e9f1ff;
}

@media (max-width: 680px) {
  .nav-cta {
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }

  .site-header nav {
    gap: 0.55rem;
  }

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

main {
  padding-bottom: 3rem;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

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

.hero {
  padding: clamp(2.2rem, 7vw, 4.2rem) 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(134, 225, 255, 0.32);
  background: linear-gradient(120deg, rgba(101, 221, 255, 0.16), rgba(138, 125, 255, 0.2));
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.lead {
  margin-top: 0.9rem;
  font-size: clamp(1.03rem, 2.2vw, 1.22rem);
  text-wrap: balance;
  max-width: 64ch;
}

.signup-block {
  margin-top: 1.4rem;
  padding: 1.15rem;
  background: linear-gradient(145deg, rgba(20, 30, 54, 0.9), rgba(11, 16, 30, 0.84));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.signup-block h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.form-wrapper {
  margin-top: 0.8rem;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.microcopy,
.small-note {
  margin-top: 0.55rem;
  font-size: 0.93rem;
}

.small-note {
  color: #92a2c8;
}

.content-section {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.content-section .container > p {
  margin-top: 0.72rem;
}

.pain-section h2 {
  text-wrap: balance;
}

.pain-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.pain-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 29, 54, 0.78), rgba(12, 19, 36, 0.74));
  padding: 0.95rem;
  box-shadow: 0 18px 34px rgba(2, 7, 21, 0.48);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pain-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 228, 255, 0.46);
  box-shadow: 0 26px 44px rgba(3, 10, 27, 0.58);
}

.pain-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--text);
}

.pain-card p {
  margin-top: 0.45rem;
}

.difference-section h2 {
  text-wrap: balance;
}

.diff-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.diff-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 29, 54, 0.78), rgba(12, 19, 36, 0.74));
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 34px rgba(2, 7, 21, 0.48);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.diff-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 228, 255, 0.46);
  box-shadow: 0 26px 44px rgba(3, 10, 27, 0.58);
}

.diff-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--text);
}

.diff-card p {
  margin-top: 0.4rem;
}

.diff-diagram {
  margin: 4rem 0 0;
}

.diff-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.flow-wrap {
  margin-top: 0.95rem;
  max-width: 500px;
  margin-inline: auto;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.flow-step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 29, 54, 0.82), rgba(12, 19, 36, 0.78));
  box-shadow: 0 18px 34px rgba(2, 7, 21, 0.5);
  padding: 0.9rem 1rem;
  text-align: left;
  width: min(100%, 33ch);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.flow-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  color: #8ce6ff;
  font-size: 1.75rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(91, 216, 255, 0.18), rgba(138, 125, 255, 0.16));
  border: 1px solid rgba(124, 228, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.flow-step-copy {
  min-width: 0;
}

.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.9rem;
  width: 2px;
  height: 0.75rem;
  transform: translateX(-50%);
  background: rgba(112, 215, 255, 0.6);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.28rem;
  width: 0.45rem;
  height: 0.45rem;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid rgba(112, 215, 255, 0.6);
  border-bottom: 2px solid rgba(112, 215, 255, 0.6);
  background: transparent;
}

.flow-step h3 {
  margin: 0;
  font-size: 1.05rem;
}

.flow-step p {
  margin-top: 0.02rem;
  font-size: 0.94rem;
}

.group-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.icon-badge {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8fe7ff;
  background: linear-gradient(135deg, rgba(91, 216, 255, 0.18), rgba(138, 125, 255, 0.16));
  border: 1px solid rgba(124, 228, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
}

.icon-badge i {
  font-size: 1.1rem;
  line-height: 1;
}

.group-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 29, 54, 0.84), rgba(12, 19, 36, 0.78));
  padding: 1.35rem 1.5rem;
  box-shadow: 0 18px 34px rgba(2, 7, 21, 0.5);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.group-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 228, 255, 0.46);
  box-shadow: 0 26px 44px rgba(3, 10, 27, 0.58);
}

.group-card h3,
.group-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.group-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.group-card li + li {
  margin-top: 0.55rem;
}

.magic-section {
  padding-top: 1.5rem;
}

.magic-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(380px 190px at 10% 0%, rgba(96, 218, 255, 0.18), transparent 60%),
    linear-gradient(145deg, rgba(20, 30, 54, 0.9), rgba(11, 16, 30, 0.84));
  box-shadow: 0 20px 40px rgba(2, 7, 21, 0.52);
  padding: 1.05rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  backdrop-filter: blur(12px);
}

.magic-copy {
  display: grid;
  gap: 0.5rem;
}

.magic-copy h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.magic-copy p:first-of-type {
  color: #86dcff;
  font-weight: 600;
}

.magic-copy p:last-of-type {
  color: #afbddc;
}

.founder-section {
  padding-top: 2.1rem;
}

.founder-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 29, 54, 0.84), rgba(12, 19, 36, 0.78));
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  backdrop-filter: blur(10px);
}

.founder-image {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(151, 192, 255, 0.34);
}

.founder-signature {
  margin-top: 0.6rem;
  color: #e6edff;
  font-weight: 600;
}

.final-cta {
  padding-top: clamp(3.2rem, 6vw, 4.8rem);
  text-align: center;
}

.final-cta + .content-section {
  padding-top: clamp(3.5rem, 7vw, 5.2rem);
}

.final-cta p {
  margin-top: 0.7rem;
}

.button {
  margin-top: 1rem;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 186, 255, 0.46);
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #050812;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 180ms ease, filter 180ms ease;
  box-shadow: 0 12px 28px rgba(73, 164, 255, 0.34);
}

.button:hover {
  color: #050812;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(73, 164, 255, 0.44);
}

.site-footer {
  padding: 3rem 0;
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-inner p + p {
  margin-top: 0.45rem;
}

/* Brevo embed overrides */
.form-wrapper .sib-form,
.form-wrapper #sib-container,
.form-wrapper #sib-form-container,
.form-wrapper .sib-form-container,
.form-wrapper .entry__field,
.form-wrapper form {
  width: 100% !important;
  max-width: 100% !important;
}

.form-wrapper .sib-form,
.form-wrapper #sib-form-container,
.form-wrapper .sib-form-container,
.form-wrapper #sib-container {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.form-wrapper #sib-container {
  padding-block: 0.8rem !important;
}

.form-wrapper #sib-form {
  display: block !important;
}

.form-wrapper #sib-form > div {
  padding: 0 !important;
  margin: 0 0 0.65rem !important;
}

.form-wrapper label,
.form-wrapper .entry__label,
.form-wrapper .checkbox__label {
  color: var(--text) !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
}

.form-wrapper .form__label-row,
.form-wrapper .form__entry,
.form-wrapper .entry_block,
.form-wrapper .entry_mcq,
.form-wrapper .entry__choice,
.form-wrapper .sib-form-block,
.form-wrapper .sib-optin,
.form-wrapper .sib-input {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* Brevo wraps inputs in .entry__field with its own border; remove that to avoid double outlines. */
.form-wrapper .entry__field {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.form-wrapper input[type="email"],
.form-wrapper input[type="text"],
.form-wrapper input[type="search"],
.form-wrapper textarea,
.form-wrapper select,
.form-wrapper .input {
  width: 100% !important;
  min-height: 2.8rem;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  padding: 0.65rem 0.8rem !important;
  color: var(--text) !important;
  background: rgba(10, 16, 31, 0.76) !important;
}

.form-wrapper input[aria-invalid="true"],
.form-wrapper input.is-invalid,
.form-wrapper .input--error,
.form-wrapper .sib-form-block__error {
  border-color: #c62945 !important;
}

.form-wrapper button,
.form-wrapper input[type="submit"],
.form-wrapper .sib-form-block__button {
  min-height: 2.95rem;
  border-radius: 999px !important;
  border: 1px solid rgba(163, 186, 255, 0.46) !important;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%) !important;
  color: #050812 !important;
  font-weight: 700 !important;
  padding: 0 1.1rem !important;
  width: auto !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.form-wrapper button:hover,
.form-wrapper input[type="submit"]:hover,
.form-wrapper .sib-form-block__button:hover {
  filter: brightness(1.08);
  border-color: rgba(177, 198, 255, 0.58) !important;
}

.form-wrapper .sib-form-block__button[disabled],
.form-wrapper .sib-form-block__button:disabled,
.form-wrapper .sib-form-block__button-with-loader[disabled],
.form-wrapper .sib-form-block__button-with-loader:disabled,
.form-wrapper .sib-form-block__button.sib-form-block__button-disabled {
  background: linear-gradient(120deg, #58c9e8 0%, #7e73e8 100%) !important;
  border-color: #5bb8de !important;
  color: #071019 !important;
  opacity: 1 !important;
}

.form-wrapper .entry__error,
.form-wrapper .sib-form-message-panel--failure,
.form-wrapper .sib-form-message-panel {
  margin-top: 0.45rem;
  border-radius: 8px;
  padding: 0.6rem 0.72rem;
}

.form-wrapper .entry__error,
.form-wrapper .sib-form-message-panel--failure {
  background: rgba(104, 23, 45, 0.35);
  color: #ffc1d0 !important;
}

.form-wrapper .entry__success,
.form-wrapper .sib-form-message-panel--success {
  background: rgba(20, 98, 82, 0.34);
  color: #8ef4cf !important;
}

.content-section,
.hero {
  animation: fade-up 600ms ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 740px) {
  .pain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .diff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .founder-card {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
