:root {
  --ink: #0f1541;
  --ink-soft: #151d4a;
  --foam: #dee9e3;
  --blush: #fdf3de;
  --slate: #65656a;
  --ash: #f4f7f2;
  --white: #ffffff;
  --shadow: rgba(10, 14, 36, 0.15);
}

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--foam), var(--white));
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  padding: 0 clamp(0.85rem, 4vw, 1.5rem) 3rem;
  overflow-x: hidden;
}

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

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

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  width: clamp(120px, 18vw, 150px);
  filter: drop-shadow(0 8px 20px rgba(0, 6, 24, 0.1));
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(15, 21, 65, 0.1);
  background: var(--white);
  border-radius: 999px;
  height: 46px;
  padding: 0 1rem;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(15, 21, 65, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(94, 170, 245, 0.8);
  outline-offset: 3px;
}

.menu-toggle:active {
  transform: translateY(2px);
  box-shadow: 0 6px 18px rgba(15, 21, 65, 0.2);
}

.menu-toggle-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.menu-icon {
  position: relative;
  width: clamp(20px, 6vw, 24px);
  height: clamp(16px, 5vw, 20px);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open .menu-icon span:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-icon span:nth-of-type(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-icon span:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--ink);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.2s, transform 0.2s;
}

nav a:hover::after,
nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink-soft);
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 1rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.brand-hue {
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(
    120deg,
    #7fe8d7,
    #5eaaf5,
    #b07bff,
    #ff8cb9,
    #ffe074
  );
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: brand-text-gradient 6s ease infinite;
  filter: drop-shadow(0 0 18px rgba(94, 170, 245, 0.35));
}

.typing {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-right: 0.2rem;
  white-space: nowrap;
  min-width: clamp(8rem, 35vw, 12rem);
  justify-content: flex-start;
  width: var(--typing-width, auto);
  min-height: 1.1em;
}

.typing::after {
  content: '';
  width: 2px;
  height: 1.1em;
  margin-left: 0.2rem;
  background: var(--ink);
  animation: caret-blink 1s steps(2, end) infinite;
  opacity: 0.8;
}

.typing.is-typing::after {
  animation-duration: 0.5s;
}

.hero-text .intro {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 520px;
}

.pill {
  display: inline-flex;
  background: rgba(15, 21, 65, 0.08);
  color: var(--ink);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-cta {
  margin-top: 1.5rem;
}

.notify-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.notify-form input {
  flex: 1;
  min-width: clamp(180px, 40vw, 260px);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(22, 28, 67, 0.1);
  font-size: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.notify-form input:focus-visible {
  outline: none;
  border-color: var(--ink);
}

.notify-form button {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.notify-form button:hover,
.notify-form button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(15, 21, 65, 0.25);
}

.form-feedback {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #1c6b4a;
}

.form-feedback.error {
  color: #b03a3a;
}

.form-feedback.success {
  color: #1c6b4a;
}

.confirmation {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.notify .confirmation {
  color: var(--white);
}

.small-print {
  font-size: 0.9rem;
  color: var(--slate);
  margin-top: 0.5rem;
}

.status-cards {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.status-cards article {
  padding: clamp(1rem, 3vw, 1.4rem);
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: 0 15px 45px rgba(16, 23, 64, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.status-cards article:hover,
.status-cards article:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(16, 23, 64, 0.15);
}

.status-cards h3 {
  margin: 0;
  font-size: 1.6rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.glass-card {
  width: min(420px, 100%);
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(253, 243, 222, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px rgba(15, 21, 65, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 50px 90px rgba(15, 21, 65, 0.2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status {
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 21, 65, 0.12);
  font-size: 0.85rem;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-step {
  --active-radius: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--active-radius);
  border: 1px solid rgba(15, 21, 65, 0.08);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  isolation: isolate;
}

.flow-step:hover {
  transform: translateY(-4px);
}

.flow-step.active {
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(15, 21, 65, 0.2);
  background: transparent;
  --active-ring-width: 6px;
  --active-fill: rgba(255, 255, 255, 0.97);
}

div.active {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 0;
  border-radius: var(--active-radius, 1rem);
  --glow-thickness: var(--active-ring-width, 6px);
  box-shadow: none;
}

div.active::before,
div.active::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

div.active::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: calc(var(--glow-thickness, 6px) + 2px);
  box-sizing: border-box;
  --border-angle: 0deg;
  background: conic-gradient(
    from var(--border-angle),
    #dee9e3 0deg,
    #fdf3de 90deg,
    #dce8e2 180deg,
    #ffffff 270deg,
    #dee9e3 360deg
  );
  animation: border-hue 8s linear infinite;
  filter: hue-rotate(0deg) drop-shadow(0 0 15px rgba(222, 233, 227, 0.55));
  z-index: -2;
  mix-blend-mode: screen;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

div.active::after {
  inset: var(--active-ring-width, 6px);
  background: var(--active-fill, rgba(255, 255, 255, 0.97));
  z-index: -1;
  border-radius: calc(var(--active-radius, 1rem) - var(--active-ring-width, 6px));
}

.flow-step .label {
  margin: 0;
  font-weight: 600;
}

.flow-step .value {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 21, 65, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.streak {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 21, 65, 0.2);
}

.dot.filled {
  background: var(--ink);
}

.about {
  margin-top: 4rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2rem;
  background: var(--white);
  box-shadow: 0 30px 70px rgba(15, 21, 65, 0.08);
  display: grid;
  gap: 2rem;
  /* two-column layout: large heading on the left, constrained paragraph on the right */
  grid-template-columns: 1fr minmax(320px, 46%);
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

/* Larger left-column headings inside .about and improved paragraph sizing */
.about > div h2 {
  /* reduced size per feedback */
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.06;
  margin: 0;
}

.about > p {
  margin: 0;
  max-width: 52ch;
  color: var(--slate);
  font-size: 1.05rem;
}

.pulse-grid {
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
  gap: 2.5rem;
}

.supporting-text {
  margin: 1.5rem 0 0;
  max-width: 45ch;
  color: var(--slate);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.insight-grid article {
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 21, 65, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 35px rgba(15, 21, 65, 0.06);
}

.insight-grid article h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.features article {
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 21, 65, 0.08);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 50px rgba(15, 21, 65, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.features article:hover,
.features article:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(15, 21, 65, 0.12);
}

.notify {
  margin-top: 4rem;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  border-radius: 1.5rem;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.notify .notify-form {
  justify-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.25rem;
  padding: 0.6rem;
  max-width: min(520px, 100%);
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.notify .notify-form input {
  flex: 1 1 220px;
  min-width: 0;
  background: rgba(15, 21, 65, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.85rem;
  color: var(--white);
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.notify .notify-form input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.notify .notify-form input:focus-visible {
  border: 1px solid var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.notify .notify-form button {
  background: var(--blush);
  color: var(--ink);
  box-shadow: 0 12px 25px rgba(253, 243, 222, 0.45);
  min-width: 150px;
  flex: 0 0 auto;
}

.notify .form-feedback {
  color: var(--white);
}

.notify .form-feedback.error {
  color: #ffd6d6;
}

footer {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: clamp(1rem, 3vw, 1.5rem) 0 clamp(2rem, 6vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--slate);
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--ink-soft);
  transform: translateY(-2px);
}

.glow {
  position: fixed;
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(15, 21, 65, 0.15), transparent 60%);
  filter: blur(60px);
}

@keyframes brand-text-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes border-hue {
  0% {
    --border-angle: 0deg;
    filter: hue-rotate(0deg) drop-shadow(0 0 25px rgba(84, 203, 255, 0.55));
  }
  100% {
    --border-angle: 360deg;
    filter: hue-rotate(360deg) drop-shadow(0 0 25px rgba(84, 203, 255, 0.55));
  }
}

@keyframes caret-blink {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.glow-top {
  top: -10vw;
  right: 5vw;
}

.glow-bottom {
  bottom: -15vw;
  left: -5vw;
}

@media (max-width: 768px) {
  body {
    padding: 0 1rem 2rem;
  }

  .notify {
    grid-template-columns: 1fr;
  }

  .notify .notify-form {
    max-width: none;
    justify-self: stretch;
  }

  .notify .notify-form button,
  .notify .notify-form input {
    width: 100%;
  }

  .notify .notify-form button {
    min-width: unset;
  }

  .hero {
    padding-top: 1rem;
  }
}

@media (max-width: 900px) {
  .nav-collapsible .site-header {
    position: relative;
    align-items: center;
  }

  .nav-collapsible .menu-toggle {
    display: inline-flex;
  }

  .nav-collapsible .site-header nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: calc(100% - 1rem);
    margin: 0 auto;
    background: var(--white);
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(15, 21, 65, 0.15);
    border: 1px solid rgba(15, 21, 65, 0.08);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 20;
  }

  .nav-collapsible .site-header nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-collapsible nav ul {
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.5rem;
  }

  .nav-collapsible nav a {
    display: block;
    padding: 0.4rem 0;
  }

  /* stack the about sections on smaller screens and reduce padding */
  .about {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1rem;
  }

  .pulse-grid {
    grid-template-columns: 1fr;
  }

  .pulse-grid .insight-grid {
    grid-template-columns: 1fr;
  }

  .about > div h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
  }

  .about > p {
    max-width: none;
  }
}

@media (max-width: 540px) {
  body {
    padding: 0 0.85rem 2rem;
  }

  .hero,
  .status-cards,
  .features,
  .insight-grid,
  .about,
  .notify,
  footer {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-visual {
    order: 2;
  }

  .about,
  .notify {
    padding: 1.5rem;
  }

  .notify .notify-form {
    padding: 0.5rem;
  }
}

/* Quote showcase (carousel) */
/* Quote showcase removed per request */
