:root {
  --background: #fcfbf8;
  --text: #181611;
  --text-muted: #4a453e;
  --primary: #0083ad;
  --primary-hover: #006f94;
  --secondary: #e69c24;
  --white: #ffffff;
  --font-sans: 'Montserrat', sans-serif;
  --font-hand: 'Caveat', cursive;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.5;
}

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

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

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-connect {
  background-color: var(--text);
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-connect:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-connect.active {
  background-color: var(--primary);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(0.95);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
  background-color: transparent;
}

.header-scrolled {
  background-color: rgba(252, 248, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 55;
  /* Above the mobile menu */
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.logo-img {
  width: 3rem;
  height: 3rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.logo-letter {
  display: inline-block;
}



.logo-letter-i {
  position: relative;
  display: inline-block;
}

/* The Mask - hides the original black dot */
.logo-letter-i::before {
  content: '';
  position: absolute;
  top: 0.1rem;
  left: 60%;
  transform: translateX(-50%);
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--background);
  border-radius: 50%;
  z-index: 1;
}

/* The Blue Dot - Animates in */
.logo-letter-i::after {
  content: '';
  position: absolute;
  top: 0.1rem;
  left: 60%;
  transform: translateX(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary) !important;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 131, 173, 0.3);
  z-index: 2;
  opacity: 0;
  animation: bounceDot 1s linear forwards;
  animation-delay: 1.4s;
  /* Waits for other hero animations */
  /* Ensure it stays visible after animation */
  animation-fill-mode: forwards;
}

@keyframes bounceDot {
  0% {
    opacity: 0;
    transform: translate(-50%, -80px);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    /* easing in (accelerate) */
  }

  20% {
    opacity: 1;
  }

  40% {
    transform: translate(-50%, 0);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    /* easing out (decelerate) */
  }

  55% {
    transform: translate(-50%, -25px);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    /* easing in */
  }

  70% {
    transform: translate(-50%, 0);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    /* easing out */
  }

  80% {
    transform: translate(-50%, -10px);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    /* easing in */
  }

  90% {
    transform: translate(-50%, 0);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    /* easing out */
  }

  95% {
    transform: translate(-50%, -4px);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    /* easing in */
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.logo-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 9999px;
  transition: width 0.3s ease;
  opacity: 0.6;
}

.logo:hover .logo-underline {
  width: 100%;
}

.logo-icon {
  font-size: 1.5rem;
  margin-left: 0.25rem;
  margin-bottom: 0.5rem;
}

.desktop-nav {
  display: none;
}

.mobile-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  z-index: 45;
  /* Just below header container toggle but above main content */
  border-bottom: 2px solid var(--primary);
  padding-top: 5rem;
  /* Space for the header */
}



.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
  gap: 1rem;
}

.mobile-menu-label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;

}

.mobile-contact-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.mobile-contact-card:active {
  transform: scale(0.98);
}

.mobile-email-link {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  letter-spacing: -0.01em;
}

.mobile-copy-btn {
  background: #f4f4f4;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.mobile-copy-btn:active {
  background: var(--primary);
  color: white;
}

.copy-feedback {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.mobile-copy-btn.copied .copy-feedback {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

@media (min-width: 768px) {
  .mobile-menu {
    top: 5.5rem;
    /* Below header */
    right: 1.5rem;
    left: auto;
    width: 320px;
    border-radius: 24px;
    border: 1px solid rgba(0, 131, 173, 0.12);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0;
    transform: translateY(-20px) scale(0.95);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 131, 173, 0.05);
    border-bottom: 1px solid rgba(0, 131, 173, 0.2);
  }

  .header-scrolled+.mobile-menu,
  .mobile-menu {
    top: 4.5rem;
  }

  .mobile-menu.open {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .mobile-menu-content {
    padding: 2rem;
    align-items: flex-start;
    text-align: left;
  }

  .mobile-contact-card {
    max-width: none;
    box-shadow: 0 4px 12px rgba(0, 131, 173, 0.05);
    background: white;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Blobs */
.blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  mix-blend-mode: multiply;
  animation: blob 10s infinite;
  z-index: 0;
  pointer-events: none;
}

.blob-1 {
  top: 12rem;
  right: 0;
  background-color: rgba(254, 243, 199, 0.5);
  /* Light yellow */
}

.blob-2 {
  top: 10rem;
  left: 0;
  background-color: rgba(219, 234, 254, 0.5);
  /* Light blue */
  animation-delay: 2s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.highlight-text {
  position: relative;
  display: inline-block;
  color: var(--primary);
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* Add fallback min-height so layout doesn't collapse if image missing */
  min-height: 200px;
}

.hero-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
  transition: transform 0.5s ease;
  background-color: transparent;
  /* In case of transparency */
}

.hero-image:hover {
  transform: scale(1.05);
}

.hero-description-wrapper {
  margin-bottom: 2rem;
  display: grid;
  gap: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 34rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.hero-tag {
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--text-muted);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  cursor: default;
  display: inline-flex;
  align-items: center;
}

.hero-tag:hover {
  background-color: rgba(0, 131, 173, 0.05);
  border-color: rgba(0, 131, 173, 0.3);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Intro Section */
.intro-section {
  padding: 5rem 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.intro-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/image.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(50%) contrast(120%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0) 100%);
}

.intro-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  /* Tighter width for better reading */
  margin: 0 auto;
}

.intro-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.heart-icon {
  width: 4rem;
  height: 4rem;
  color: var(--secondary);
}

.intro-title {
  font-size: 3.5rem;
  /* Larger */
  font-weight: 800;
  margin-bottom: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.intro-text {
  font-size: 1.35rem;
  /* Slightly larger */
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-wrap: pretty;
}

.text-primary-color {
  color: var(--primary);
  font-weight: 700;
}

.intro-header-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.intro-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

/* Removed blocky underline for cleaner look */

.doodle-sparkle {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--secondary);
  animation: float 5s ease-in-out infinite;
}

.doodle-sparkle.left {
  left: -4rem;
  top: -1rem;
}

.doodle-sparkle.right {
  right: -4rem;
  top: 1rem;
  animation-delay: 1s;
}

.bg-scribble-1 {
  position: absolute;
  left: -5rem;
  bottom: 5rem;
  width: 20rem;
  height: 20rem;
  color: #f3f4f6;
  transform: rotate(12deg);
  z-index: 0;
}

.bg-scribble-2 {
  position: absolute;
  right: -5rem;
  top: 5rem;
  width: 15rem;
  height: 15rem;
  color: #f3f4f6;
  transform: rotate(-15deg);
  z-index: 0;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background-color: #fcf8f2;
  position: relative;
  overflow: hidden;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.features-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  justify-content: center;
}

.feature-card {
  position: relative;
  background-color: var(--white);
  border-radius: 1rem;
  padding: 1.25rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 220px;
  cursor: pointer;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 131, 173, 0.3);
  }
}

.feature-icon-wrapper {
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
  background-color: rgba(0, 131, 173, 0.08);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

@media (hover: hover) {
  .feature-card:hover .feature-icon-wrapper {
    transform: scale(0.5);
    opacity: 0;
    margin-bottom: -60px;
    /* Pull content up */
  }
}

.feature-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  padding: 0 0.25rem;
  line-height: 1.3;
}

@media (hover: hover) {
  .feature-card:hover .feature-title {
    transform: translateY(-35px);
    color: var(--primary);
  }
}

.feature-description {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  padding: 0 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.1s;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  z-index: 1;
  margin-top: 0.5rem;
}

@media (hover: hover) {
  .feature-card:hover .feature-description {
    opacity: 1;
    transform: translateY(-25%);
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    height: auto;
    min-height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.25rem;
    padding: 1.25rem;
    text-align: left;
    align-items: start;
    justify-items: start;
  }

  .feature-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  }

  .feature-icon-wrapper {
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    background-color: rgba(0, 131, 173, 0.05);
  }

  .feature-card:hover .feature-icon-wrapper {
    transform: none;
    opacity: 1;
    margin-bottom: 0;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
  }

  .feature-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.1rem;
    margin-bottom: 0;
    transform: none !important;
    padding: 0;
    align-self: end;
  }

  .feature-description {
    grid-column: 2;
    grid-row: 2;
    position: static;
    opacity: 1;
    transform: none !important;
    padding: 0;
    margin-top: 0;
    font-size: 0.9rem;
  }
}

/* Feature Request Box */
.features-request-box {
  margin-top: 3rem;
  background-color: rgba(0, 131, 173, 0.05);
  border: 1px dashed rgba(0, 131, 173, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  transition: all 0.3s ease;
}

.features-request-box:hover {
  background-color: rgba(0, 131, 173, 0.08);
  border-color: rgba(0, 131, 173, 0.5);
  transform: translateY(-2px);
}

.request-icon {
  color: var(--primary);
  background-color: var(--white);
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.request-content {
  flex: 1;
}

.request-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.request-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 131, 173, 0.3);
  text-underline-offset: 2px;
  transition: all 0.2s;
}

.text-link:hover {
  color: var(--primary-hover);
  text-decoration-color: var(--primary);
}

.hand-highlight {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--secondary);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .features-request-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
}

/* Footer */
.footer {
  background-color: #181611;
  color: var(--white);
  padding-top: 6rem;
  padding-bottom: 3rem;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  position: relative;
  margin-top: 0;
  overflow: hidden;
}

.footer-blob {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16rem;
  height: 16rem;
  background-color: var(--primary);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}

.footer-content {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 64rem;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fcf8f2;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--secondary) 20%,
      #4cc9f0 40%,
      var(--primary) 60%,
      var(--secondary) 80%,
      #4cc9f0 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 10s ease infinite alternate;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  20% {
    background-position: 50% 0%;
  }

  40% {
    background-position: 100% 50%;
  }

  60% {
    background-position: 50% 100%;
  }

  80% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.footer-subtitle {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  max-width: 28rem;
  margin: 0 auto;
  position: relative;
}

.email-input {
  width: 100%;
  padding: 1.25rem 2rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.125rem;
  outline: none;
  transition: all 0.2s;
}

.email-input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
}

.email-input::placeholder {
  color: #6b7280;
}

.btn-footer {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
}

.spam-note {
  position: absolute;
  right: -6rem;
  top: 50%;
  display: none;
  /* Hidden on mobile */
}

.spam-arrow {
  width: 4rem;
  height: 2rem;
  color: var(--white);
  transform: rotate(135deg);
}

.spam-text {
  font-family: var(--font-hand);
  font-size: 1.125rem;
  margin-left: 0.5rem;
  position: absolute;
  top: 1rem;
  width: 8rem;
  text-align: left;
}

.success-message {
  background-color: rgba(0, 131, 173, 0.2);
  border: 1px solid var(--primary);
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  display: inline-block;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-links-container {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-logo-mark {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.footer-logo-img {
  width: 1.4rem;
  height: 1.4rem;
}

.footer-logo-text {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
}

.footer-i {
  position: relative;
  display: inline-block;
}



.footer-i::after {
  content: '';
  position: absolute;
  top: 0.3rem;
  left: 60%;
  transform: translateX(-50%);
  width: 0.3rem;
  height: 0.3rem;
  background-color: var(--primary) !important;
  border-radius: 50%;
  z-index: 2;
  opacity: 1;
}

.copyright-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.made-in-edinburgh {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: #6b7280;
  margin-top: 1.5rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  cursor: default;
}

.made-in-edinburgh:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-link:hover {
  color: var(--white);
}

/* Animations */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  33% {
    transform: translate(20px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
  }

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

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    filter: blur(10px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

.animate-fade {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
  animation-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
  animation-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
  animation-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
  animation-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
  animation-delay: 500ms;
}

.delay-600 {
  transition-delay: 600ms;
  animation-delay: 600ms;
}

.delay-700 {
  transition-delay: 700ms;
  animation-delay: 700ms;
}

.delay-800 {
  transition-delay: 800ms;
  animation-delay: 800ms;
}

.delay-900 {
  transition-delay: 900ms;
  animation-delay: 900ms;
}

/* Checkmark Animation */
@keyframes drawCheck {
  from {
    stroke-dashoffset: 24;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.hero-list-item .check-icon polyline {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.hero-list-item.delay-300 .check-icon polyline {
  animation-delay: 600ms;
}

.hero-list-item.delay-400 .check-icon polyline {
  animation-delay: 700ms;
}

.hero-list-item.delay-500 .check-icon polyline {
  animation-delay: 800ms;
}

/* Footer CTA */
.footer-contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.say-hi-text {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.footer-email-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.footer-email-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0083ad;
}

/* Media Queries */
@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .mobile-toggle {
    display: none;
  }

  .hero-section {
    padding-top: 12rem;
    padding-bottom: 8rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .intro-title {
    font-size: 3rem;
  }

  .manifesto-title {
    font-size: 3rem;
  }

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

  .full-width-card {
    grid-column: span 2;
    max-width: 42rem;
    margin: 0 auto;
    width: 100%;
  }

  .footer-title {
    font-size: 4.5rem;
  }

  .spam-note {
    display: block;
  }

  .footer-links-container {
    flex-direction: column;
    justify-content: center;
  }

  .made-in-edinburgh {
    margin-top: 1rem;
  }

  .footer-brand {
    margin-bottom: 0;
  }
}

/* Dialog & View Transitions */

.detail-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.detail-dialog.hidden {
  display: none;
}

.detail-dialog-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
  opacity: 0;
  animation: fadeInBackdrop 0.4s ease forwards;
}

@keyframes fadeInBackdrop {
  to {
    opacity: 1;
  }
}

.detail-dialog-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 24px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: center center;
}

.dialog-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.03);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  z-index: 20;
}

.dialog-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
  transform: rotate(90deg);
}

.dialog-content-scroll {
  overflow-y: auto;
  padding: 3rem 2.5rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.dialog-header {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.feature-icon-wrapper.large {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: rgba(0, 131, 173, 0.08);
  /* Transparent primary */
}

.feature-icon-wrapper.large img {
  width: 40px;
  height: 40px;
}

.detail-dialog-card .dialog-title {
  font-size: 2.25rem;
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dialog-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 80%;
  margin: 0 auto;
}

.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.dialog-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  opacity: 0.9;
  margin-bottom: 1rem;
  font-weight: 700;
}

.dialog-section p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.dialog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dialog-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.list-icon-wrapper {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(0, 131, 173, 0.1);
  border-radius: 50%;
  margin-top: -2px;
  /* Visual alignment */
}

.list-icon-wrapper.shield {
  color: var(--secondary);
  background: rgba(230, 156, 36, 0.1);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(0, 131, 173, 0.04) 0%, rgba(230, 156, 36, 0.04) 100%);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(0, 131, 173, 0.08);
}

.highlight-box p {
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}

/* View Transition Logic */
/* View Transition Logic */
::view-transition-old(feature-expand),
::view-transition-new(feature-expand) {
  /* Maintain aspect ratio and size during morph */
  height: 100%;
  width: 100%;
  /* Optional: Mix-blend-mode normal ensures no weird transparency artifacts */
  mix-blend-mode: normal;
}

::view-transition-group(feature-action-icon) {
  animation-duration: 0.4s;
  z-index: 100;
  mix-blend-mode: normal;
}

/* Class to apply the transition name */
.use-view-transition {
  view-transition-name: feature-expand;
}

.use-icon-transition {
  view-transition-name: feature-action-icon;
  contain: layout;
  /* Helps with isolation */
}

/* Ensure the card has a background when expanding */
.feature-card.use-view-transition {
  z-index: 50;
}

#card-onboarding,
#card-groups,
#card-scheduling,
#card-sessions,
#card-attendance,
#card-tasks,
#card-signals,
#card-guardians,
#card-payments,
#card-reports {
  cursor: pointer;
}

/* Dialog Content Animation */
.dialog-animate {
  opacity: 0;
  animation: none;
  will-change: transform, opacity;
}

/* Exclude header elements from the entry animation (they should just exist or transition) */
.dialog-header .dialog-animate {
  opacity: 1;
  animation: none;
  transform: none;
}

.dialog-open-animate .dialog-animate {
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Re-enforce exclusion if the cascade overrides */
.dialog-open-animate .dialog-header .dialog-animate {
  animation: none;
  opacity: 1;
  transform: none;
}

/* Pilot Section */
.pilot-section {
  padding: 6rem 0 3rem 0;
  position: relative;
  overflow: hidden;
  background-color: var(--white);
}

.pilot-blob-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 30rem;
  height: 30rem;
  background-color: rgba(230, 156, 36, 0.1);
  /* Secondary color, low opacity */
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(60px);
  z-index: 0;
  animation: blob 15s infinite alternate;
}

.pilot-blob-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 25rem;
  height: 25rem;
  background-color: rgba(0, 131, 173, 0.08);
  /* Primary color, low opacity */
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(60px);
  z-index: 0;
  animation: blob 20s infinite alternate-reverse;
}

.pilot-container {
  position: relative;
  z-index: 1;
  max-width: 64rem;
}

.pilot-header {
  margin-bottom: 3rem;
  text-align: center;
}

.pilot-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.pilot-title-highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.pilot-highlight-hand {
  font-family: var(--font-hand);
  color: var(--secondary);
  font-size: 2.25rem;
  transform: rotate(-2deg);
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.pilot-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  /* Center vertically so the quote card looks good */
}

@media (min-width: 768px) {
  .pilot-content-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
  }

  .pilot-header {
    text-align: left;
    /* Max width matching the text column roughly */
    max-width: 60%;
  }
}

.pilot-text-col {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pilot-cta-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: #fafbfc;
  border-radius: 1rem;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.pilot-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.pilot-cta-text {
  font-size: 1rem;
  margin: 0;
}

/* Quote Card */
.pilot-quote-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transform: rotate(2deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pilot-quote-card:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Pin/Tape effect for fun */
.pilot-quote-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background-color: rgba(230, 156, 36, 0.2);
  /* secondary color tape */
  opacity: 0.6;
  transform: translateX(-50%) rotate(-1deg);
}

.quote-mark {
  font-family: serif;
  font-size: 6rem;
  line-height: 1;
  color: rgba(230, 156, 36, 0.3);
  /* Secondary, transparent */
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  pointer-events: none;
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.author-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-card-action {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.6;
  background-color: rgba(0, 131, 173, 0.05);
  /* Very subtle background */
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 5;
  /* Ensure it's above other elements */
}

@media (hover: hover) {
  .feature-card:hover .feature-card-action {
    opacity: 1;
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
  }

  /* Ensure action stays visible when card content moves on hover */
  .feature-card:hover .feature-card-action {
    /* No additional movement needed unless we want it to follow interaction */
  }
}