:root {
  --canvas: #fffaf0;
  --surface-soft: #faf5e8;
  --surface-card: #f5f0e0;
  --surface-dark: #0a1a1a;
  --ink: #0a0a0a;
  --body: #3a3a3a;
  --muted: #6a6a6a;
  --hairline: #e5e5e5;

  /* MorphDrop Pastel Accents */
  --accent-blue: #d3e3fd;
  --accent-mint: #c4eed0;
  --accent-peach: #ffdad6;
  --accent-cream: #eaddff;
  --accent-pink: #ff4d8b;
  --accent-ochre: #e8b94a;

  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(239, 83, 80, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3,
.display-font {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display-xl {
  font-size: 72px;
  line-height: 1.0;
}

.display-lg {
  font-size: 56px;
  line-height: 1.05;
}

.display-md {
  font-size: 40px;
  line-height: 1.1;
}

.title-lg {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.title-md {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.title-sm {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.caption-uppercase {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.0;
  border-radius: var(--radius-pill);
  height: 48px;
  padding: 0 28px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
  user-select: none;
}

.btn-primary {
  background-color: var(--surface-dark);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--ink);
}

.btn-secondary {
  background-color: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-secondary:hover {
  background-color: var(--surface-soft);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 250, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  transform: translateY(0);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Unbounded', sans-serif;
  color: var(--ink);
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  font-weight: 500;
}

.nav-links a:not(.btn) {
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--ink);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(234, 221, 255, 0.15) 0%, rgba(196, 238, 208, 0.1) 25%, transparent 50%);
  z-index: -1;
  animation: rotate-gradient 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 32px;
  margin: 0 auto var(--space-xl);
  animation: float 6s ease-in-out infinite;
  display: block;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero-sub {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto var(--space-xxl);
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

/* --- Ticker --- */
.ticker {
  background-color: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-lg) 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.ticker-content {
  display: block;
  flex-shrink: 0;
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  animation: ticker-scroll 60s linear infinite;
}

.ticker-content span {
  padding: 0 48px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* --- Features Section --- */
.features-section {
  padding: var(--space-section) 0;
}

.features-container {
  background-color: var(--surface-card);
  padding: 80px 64px;
  border-radius: 40px;
  text-align: center;
}

.features-header {
  margin-bottom: var(--space-xxl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: left;
}

.feature-card {
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  margin-bottom: 4px;
}

.feature-card p {
  color: rgba(10, 10, 10, 0.7);
  font-size: 15px;
}

.col-span-2 {
  grid-column: span 2;
}

.card-cream {
  background-color: var(--accent-cream);
  color: var(--ink);
}

.card-mint {
  background-color: var(--accent-mint);
  color: var(--ink);
}

.card-peach {
  background-color: var(--accent-peach);
  color: var(--ink);
}

.card-blue {
  background-color: var(--accent-blue);
  color: var(--ink);
}

.card-pink {
  background-color: var(--accent-pink);
  color: var(--ink);
}

/* --- Screenshots Section --- */
.screenshots {
  padding: var(--space-section) 0;
  text-align: center;
  overflow: hidden;
  background-color: var(--canvas);
}

.screenshots-header {
  margin-bottom: var(--space-xxl);
}

.scroll-strip-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
  gap: var(--space-xl);
  padding: 40px 0;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-xl);
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  animation: scroll-x 40s linear infinite;
}

.scroll-strip-wrapper:hover .marquee-group {
  animation-play-state: paused;
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - var(--space-xl)));
  }
}

.phone-mockup-wrapper {
  flex: none;
  width: 260px;
  position: relative;
  text-align: center;
  gap: var(--space-md);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-mockup-wrapper:nth-child(even) {
  transform: rotate(2deg);
}

.phone-mockup-wrapper:nth-child(odd) {
  transform: rotate(-2deg);
}

.phone-mockup-wrapper:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.05);
  z-index: 10;
}

.screenshot-mockup {
  width: 260px;
  height: 550px;
  border-radius: 28px;
  background-color: var(--canvas);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  display: block;
}

.screen-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}

/* --- FAQ Section --- */
.faq-section {
  padding: var(--space-section) 0;
  background-color: var(--canvas);
  text-align: center;
}

.faq-header {
  margin-bottom: var(--space-xxl);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

.faq-item {
  background-color: var(--canvas);
  border: 2px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #d0c8b0;
}

.faq-item.active {
  background-color: var(--surface-soft);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  border-color: var(--ink);
}

.faq-question {
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-question h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.faq-icon {
  font-size: 20px;
  color: var(--ink);
  font-family: monospace;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 var(--space-lg);
  color: var(--body);
}

.faq-item.active .faq-answer {
  padding-bottom: var(--space-lg);
}

/* --- Footer --- */
footer {
  background-color: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
  padding-bottom: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

.footer-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Unbounded', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 13px;
  max-width: 280px;
  line-height: 1.4;
}

.footer-col-right {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-column-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.footer-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .col-span-3 {
    grid-column: span 2;
  }

  .display-xl {
    font-size: 56px;
  }

  .display-lg {
    font-size: 48px;
  }

  .display-md {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-col-right {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    height: 60px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links .btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .nav-logo {
    font-size: 18px;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .display-xl {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .display-lg {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .features-section,
  .screenshots,
  .faq-section {
    padding: 64px 0;
  }

  .features-container {
    padding: 48px 24px;
    border-radius: 32px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .col-span-2 {
    grid-column: span 2;
  }

  .ticker {
    padding: 24px 0;
  }

  .ticker-content {
    font-size: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .footer-col-left {
    align-items: center;
  }

  .footer-col-right {
    justify-content: space-around;
    gap: 16px;
    flex-direction: row;
    width: 100%;
    align-items: flex-start;
  }

  .footer-column {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .display-xl {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .phone-mockup-wrapper {
    width: 240px;
  }

  .screenshot-mockup {
    width: 240px;
    height: 508px;
  }

  .features-container {
    padding: 32px 16px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .feature-card p {
    font-size: 14px;
  }

  .faq-question {
    padding: var(--space-md);
  }

  .faq-question h4 {
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 var(--space-md);
  }

  .faq-item.active .faq-answer {
    padding-bottom: var(--space-md);
  }
}

/* ==========================================================================
   Animations & Modal Overlay
   ========================================================================== */

/* Fade-In Scroll Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Content Card */
.modal-content {
  background-color: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Modal Header */
.modal-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

/* Modal Body */
.modal-body {
  padding: var(--space-lg);
  padding-bottom: 80px;
  /* Extra padding for floating button */
  overflow-y: auto;
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: var(--muted);
}

.release-version {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.release-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.release-notes {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  padding-right: 15px;
}

.release-notes *:last-child {
  margin-bottom: 0;
}

/* Floating Button in Modal */
.btn-floating {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  white-space: nowrap;
}

.btn-floating:hover {
  transform: translateX(-50%) translateY(-2px) !important;
}

/* Markdown Formatting inside Release Notes */
.release-notes h1,
.release-notes h2,
.release-notes h3,
.release-notes h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.release-notes h1,
.release-notes h2 {
  font-size: 1.2rem;
}

.release-notes h3,
.release-notes h4 {
  font-size: 1.05rem;
}

.release-notes p {
  margin-bottom: var(--space-xs);
}

.release-notes ul,
.release-notes ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-md);
  margin-top: 5px;
}

.release-notes li {
  margin-bottom: 8px;
}

.release-notes strong {
  color: var(--ink);
  font-weight: 600;
}

.release-notes {
  padding-right: 15px;
}

/* Floating Profile Widget */
.support-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 99;
  transition: opacity 0.3s ease;
}

.support-msg-bubble {
  background-color: var(--canvas);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0px var(--ink);
  padding: 16px 24px;
  border-radius: 20px 20px 0 20px;
  font-size: 15px;
  font-weight: 600;
  max-width: 260px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  transform-origin: bottom right;
}

.support-msg-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.support-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0px var(--ink);
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.support-fab:hover .support-avatar {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px var(--ink);
}

.support-fab:hover .support-msg-bubble.show {
  transform: translateY(-4px) scale(1);
  box-shadow: 6px 6px 0px var(--ink);
}