@property --percentage {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: true;
}

:root {
  --bg-color: #fff;
  --text-color: #121317;
  --accent-pink: #f2c5fe;
  --accent-purple: #566cde;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}
body {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;

  height: unset !important;
  overflow-y: auto !important;
  user-select: none;
  /* overflow: unset; */
}

h2 {
  line-height: 1.1;
}

.container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 2rem;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  background-color: transparent;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.logo {
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 32px;
}
nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
nav a:hover {
  opacity: 1;
}
nav a.btn {
  background: #000;
  padding: 0.5rem 1rem;
}
.hero {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* contain blobs */
  perspective: 1000px;
}

.hero-content-card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* transform-style: preserve-3d; */
  transition: transform 0.3s ease-out;
}
.hero-content-card img {
  height: 3rem;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: 5rem;
  font-weight: 100;
  margin-top: 0;
  margin-bottom: 2.5rem; /* 40px */
  line-height: calc(5rem * 1.05); /* slightly more breathing room */
  letter-spacing: -0.2rem;
  transition: transform 0.3s ease-out;
  /* transform-style: preserve-3d; */
}

.no-cap {
  display: block;;
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease-out;
}

.hero h1 .highlight {
  /* display: block; */
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

nav {
  display: flex;
  height: 40px;
}

.btn {
  background: #121317;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s;
  text-align: center;
}
.btn:hover {
  transform: scale(1.05);
}

.btn.round {
    box-sizing: border-box;
    padding: 8px 4px;
    aspect-ratio: 1;
    height: 100%;
    font-size: 20px;
    line-height: 1;
    align-content: center;
}

.section {
  padding: 4rem 2rem;
  border-top: 1px solid var(--glass-border);
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
#scrub-section {
  background-color: #fff;
  padding: 60px;
  position: relative;
  z-index: 600;
  width: 90%;
  margin-top: 10rem;
  border-radius: 60px;
  box-sizing: border-box;
}
#scrub-section .section-title {
  font-size: 3rem;
  font-weight: 400;
}
#more-features {
  background-color: #f1f0f0;
  padding: 60px;
  position: relative;
  z-index: 600;
  width: 90%;
  margin: 10rem auto;
  border-radius: 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

#download {
  background-color: #d9e9ff;
  color: #000;
  padding: 0 60px;
  position: relative;
  z-index: 600;
  width: 90%;
  /* height: 80vh; */
  min-height: 500px;
  display: flex;
  align-items: center;
  margin: 5rem auto;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.download-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}
.download-content h2 {
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  font-family: "Google Sans", sans-serif;
  color: #000;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.footer-logo-container {
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
}
.footer-logo-container img {
  width: 40%;
  max-width: 720px;
}
footer {
  padding: 24px 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: #8b949e;
  font-size: 0.9rem;
}
footer p {
  margin: 0;
  text-align: center;
}

/* Slider Styles */
/* Scrub Slider Styles (from example) */
.scrub-wrapper {
  width: 100%;
  max-width: 800px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff;
  margin: 2rem auto;
}

.scrub-container {
  display: block;
  height: 400px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  --percentage: 50%; /* unitless number */
}

.panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.panel-content {
  width: 100%;
  max-width: 600px;
}

.panel.raw-input {
  background-color: #fff;
  z-index: 1;
  clip-path: inset(0 calc(100% - (var(--percentage))) 0 0);
}

.panel.clarity {
  background-color: #fff;
  z-index: 2;
  clip-path: inset(0 0 0 var(--percentage));
}

.rawInput-text-container {
  background-color: #dadbdd; /* Light gray */
  padding: 2.5rem;
  border-radius: 4px;
  /* transform: rotate(-1deg); */
  box-shadow: 4px 8px 15px rgba(0, 0, 0, 0.08);
  margin-top: 5rem;
}

.polished-text-container {
  background-color: #fff;
  padding: 2.5rem 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(123, 97, 255, 0.12);
  border: 1px solid rgba(123, 97, 255, 0.1);
  margin-top: 5rem;
}

.panel-label {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel.raw-input .panel-label {
  color: #8b949e;
}

.panel.clarity .panel-label {
  color: var(--accent-purple);
  right: 2rem;
  left: auto;
}

.raw-input-text {
  font-family: sans-serif;
  color: #121317;
  font-size: 1.25rem;
  line-height: 1.3;
}

.raw-input-text,
.refined-text {
  font-family: "Google Sans", sans-serif;
  color: #121317;
  font-size: 1.25rem;
  font-weight: 500;
}

.refined-text s {
  background: rgba(255, 0, 0, 0.3);
}

.refined-text i {
  background-color: rgba(255, 255, 0, 0.3);
  font-style: normal;
}

.refined-text.final s {
  display: none;
}

/* @keyframes show-hide {
  from {
    display: unset;
    opacity: 1;
  }

  to {
    display: none;
    opacity: 0;
  }
} */

/* .refined-text {
  .edits {
    transition: display 0.5s allow-discrete, opacity 0.5s;
    animation-name: show-hide;
    animation-iteration-count: infinite;
    animation-duration: 5s;
    animation-timing-function: cubic-bezier(0.85, 0, 0.15, 1);
  }

  .final {
    transition: display 0.5s allow-discrete;
    animation-name: show-hide;
    animation-iteration-count: infinite;
    animation-duration: 5s;
    animation-timing-function: cubic-bezier(0.85, 0, 0.15, 1);
    animation-direction: reverse;
  }
} */



.scrub-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--accent-purple);
  transform: translate(-50%);
  pointer-events: none;
  z-index: 9;
  left: var(--percentage);
}

.scrubber-handle {
  position: absolute;
  top: 50%;
  left: var(--percentage);
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 10px 20px rgba(123, 97, 255, 0.3);
  pointer-events: none; /* let range input receive clicks */
}

.scrubber-icon {
  color: white;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  width: 24px;
}

.slider-control {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* invisible driver */
  z-index: 11;
  cursor: pointer;
}

/* Scroll Transition Overlay (Smoky Blur from Bottom-Left) */
.scroll-transition-overlay {
  position: fixed;
  bottom: -75%;
  left: -75%;
  width: 150%;
  height: 150%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 500;
  background: radial-gradient(circle, var(--accent-purple), var(--accent-pink));
  filter: blur(150px);
  opacity: 0.8;
  transform-origin: center;
  transform: scale(0);
  transition: opacity 0.1s linear;
}

/* New Feature Rows */
.feature-row {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 4rem;
  align-items: center;
  background-color: #fff;
  border-radius: 40px;
  padding: 3.5rem;
  color: #121317;
  box-shadow: 8px 8px 24px rgba(190, 190, 190, 0.25);
}

.feature-row .feature-text {
  grid-column: 2;
}

.feature-row .feature-image {
  grid-column: 1;
}

.feature-text h2 {
  font-size: clamp(1.5rem, 3rem, 3rem);
  font-weight: 400;
  margin: 0;
  font-family: "Google Sans", sans-serif;
}

@media (max-width: 768px) {
  body {
    padding: 0 !important;
  }

  header {
    padding: 1.5rem;
  }

  .feature-row {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 35px;
    /* width: 100%; */
  }

  .feature-row .feature-image {
    padding: 0;
    padding-top: 20px;

    video, img {
      max-height: calc(100vh - 200px);
    }
  }

  .feature-row .feature-text {
    grid-column: 1;
    padding: 0 2rem 2rem 2rem;
    text-align: center;
  }

  #scrub-section {
    padding: 10px;
  }

  #more-features {
    border-radius: unset;
    padding: 20px;
    gap: 2rem;
    width: 100%;
  }

  #download {
    padding: 0 20px;
  }

  .panel {
    padding: 0;
  }

  .scrub-container {
    display: block;
    height: 400px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    --percentage: 50%; /* unitless number */

    animation-name: zero-to-hero;
    animation-iteration-count: infinite;
    animation-duration: 5s;
    animation-timing-function: cubic-bezier(0.85, 0, 0.15, 1);
    animation-direction: alternate;
  }

  #scrub-section .section-title {
    font-size: 2rem;
  }

  .feature-text h2 {
    font-size: 2rem;
  }

  #scrub-section,
  #more-features,
  #download {
    width: 95%;
  }

  #more-features {
    width: 100%;
  }

  .hero h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo-container img {
    width: 80%;
  }
}

@keyframes zero-to-hero {
  0% {
    --percentage: 0%;
  }

  100% {
    --percentage: 100%;
  }
}

.feature-image {
  background-color: #fff;
  border-radius: 32px;
  /* aspect-ratio: 5 / 4; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.feature-image img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 24px;
}

@media (min-width: 768px) {
  .feature-row {
    display: flex;
    flex-direction: row;
    align-items: unset;
    max-height: calc(100vh - 200px);

    .feature-text {
      width: min(300px, 40%);
      align-content: center;
      margin-right: 50px;
    }

    .feature-image {
      padding: unset;
      flex: 1;

      video {
        height: 100%;
      }
    }
  }
}
