:root {
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
  
  /* Modern Color Palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --surface: #1e1e2e;
  --surface-elevated: #2d2d3d;
  --surface-glass: rgba(255, 255, 255, 0.05);
  
  --text-primary: #ffffff;
  --text-secondary: #b8b8c8;
  --text-muted: #8a8aa0;
  --text-inverse: #0a0a0f;
  
  /* Brand Colors - Modern Purple Gradient */
  --brand-primary: #914ac8;
  --brand-secondary: #6f3fa9;
  --brand-tertiary: #5d2e8a;
  --brand-light: #b993ea;
  --brand-lighter: #d4bdf7;
  
  /* Accent Colors */
  --accent-blue: #07a6fd;
  --accent-cyan: #00d4ff;
  --accent-green: #00ff88;
  --accent-orange: #ff8c42;
  --accent-pink: #ff6b9d;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --yellow-custom: #efb72d;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #914ac8 0%, #6f3fa9 50%, #5d2e8a 100%);
  --gradient-accent: linear-gradient(135deg, #07a6fd 0%, #00d4ff 100%);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.3);
  --shadow-brand: 0 8px 32px rgba(145, 74, 200, 0.3);
  --shadow-accent: 0 8px 32px rgba(7, 166, 253, 0.3);
  
  /* Glass morphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(16px);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Nav */

  --indicator-size: 1em;
  --indicator-total-size: calc(var(--indicator-size) + 0.25em * 2 + 1px * 2);
  --indicator-total-gap: calc(8px * 3);
  --indicator-total-height: calc(var(--indicator-total-size) * 4 + var(--indicator-total-gap));
}

*,
::before,
::after {
  box-sizing: inherit;
  background-repeat: no-repeat;
}

html,
body,
#app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Ubuntu', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
}

@layer base, rhythm, layout, components, default, overwrites;

html {
  scroll-snap-type: y mandatory;
  timeline-scope: --section, --main, --site-header;
  scroll-behavior: smooth;
}

body {
  font-size-adjust: from-font;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--gradient-hero);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

main {
  view-timeline: --main;
}

.content {
  /* Fix the content, so it doesn't scroll with the section */
  overflow: hidden;
  position: fixed;
  inset: 0;

  /* Animate the content based on the section scrolling */
  --contrast: 4;
  --blur: 0.5rem;

  animation: scroll ease-in-out both;
  animation-timeline: --section;
}

@keyframes blink {

  0%,
  100% {
    filter: blur(var(--blur)) contrast(var(--contrast));
    opacity: 0;
    visibility: hidden;
  }

  50% {
    filter: blur(0) contrast(1);
    opacity: 1;
    visibility: visible;
  }
}

/* 
  This is a bit of a hack to get the indicator to work because I'm lazy.
  We're translating the dot from the top to the bottom of its parent,
  using the browser scroll position as the animation timeline.
  It's not really matched up to the scrolling sections, only appears to be.
*/
.indicator::before {
  animation: indicate linear both;
  animation-timeline: --main;
  animation-range: contain;
}

/* And we're manually setting the colors because see: lazy comment above */
@keyframes indicate {
  0% {
    --color-indicator: var(--brand, blue);
    transform: translateY(0px);
  }

  33.33% {
    --color-indicator: var(--brand-3, yellow);
  }

  66.67% {
    --color-indicator: var(--brand-2, green);
  }

  100% {
    --color-indicator: var(--accent, purple);
    transform: translateY(calc(var(--indicator-total-height) - var(--indicator-total-size)));
  }
}

/* Remove gradient indicator on scroll-to-end (visible on small screens */

.site-header label:last-of-type {
  view-timeline: --site-header inline;
}

.site-header::after {
  animation: fade-scroll ease-in-out both;
  animation-timeline: --site-header;
  animation-range: entry-crossing;
}

@keyframes fade-scroll {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes scroll {
  0% {
    transform: translate3d(0%, 100%, 0);
  }

  50% {
    transform: none;
  }

  100% {
    transform: translate3d(0%, -100%, 0);
  }
}

header {
  position: fixed;
  top: 0;
}

nav ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  position: relative;
  gap: 8px;
}

nav li,
nav a {
  display: block;
}

nav li {
  position: relative;
}

nav a {
  padding: 0.25em;
}

.pc-only {
  position: absolute;
  transform-origin: right;
  top: 0;
  transform: translateX(-100%);
  padding: 0 0.25em;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.75rem;
}

.text p {
  margin-top: 0;
  margin-bottom: 1.5em;
  margin-left: 1.5em;
  line-height: 1.4;
  text-shadow: var(--text-shadow);
}

h2 {
  margin: 0;
  padding: 0;
  text-shadow: var(--text-shadow-strong);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

header .header {
  width: min(1120px, 90vw);
  margin: 0 auto;
  display: flex;
  place-content: center;
  gap: 1rem;
}

.btn-header {
  background-color: var(--bg-extra, var(--ring));
  padding: 0.5em 1em;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border: 2px solid var(--text);
  border-top: none;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.header-icon img {
  height: 36px;
  margin: -8px;
}

a {
  text-decoration: none;
}

a.btn-header {
  text-decoration: none;
  height: fit-content;
}

.btn-header:hover {
  background-color: var(--color-base, var(--brand));
  color: var(--text);
  text-shadow: var(--text-shadow);
  box-shadow: var(--shadow);
  padding-top: 1em;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1em;
  background-color: color-mix(in srgb, var(--bg) 90%, transparent);
}

.mobile {
  display: none;
}

@media (max-width: 768px) {

  .content .mobile {
    display: block;
    padding: 0 1rem;
    margin-top: 1rem;
  }

  .content .text {
    display: none;
  }

  body {
    font-size: 16px;
  }

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

  nav {
    transform: translateX(50%)
  }

  h1 {
    font-size: 1.5rem;
  }

  section#title.section h2 {
    font-size: 1.25rem;
  }

  section h2 {
    font-size: 0.867rem;
    line-height: 1.2;
  }

  section .text p,
  p {
    line-height: 1;
    font-size: 0.867
  }

}

/* ==================================
   MODERN HEADER STYLES
   ================================== */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: var(--glass-blur);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xs) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
}

.logo-icon img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text .yellow-p {
  color: var(--yellow-custom);
  -webkit-text-fill-color: var(--yellow-custom);
  text-shadow: 0 0 8px rgba(239, 183, 45, 0.5);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface-glass);
}

.cta-btn {
  background: var(--gradient-primary) !important;
  color: var(--text-primary) !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  box-shadow: var(--shadow-brand);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand), var(--shadow-lg);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==================================
   FLOATING NAVIGATION
   ================================== */
.floating-nav {
  position: fixed;
  right: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
}

.nav-indicator {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: 0;
  padding: var(--space-lg);
  list-style: none;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s ease;
  display: block;
  position: relative;
}

.nav-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-dot:hover,
.nav-dot.active {
  background: var(--brand-primary);
  box-shadow: 0 0 20px var(--brand-primary);
}

.nav-dot:hover::before,
.nav-dot.active::before {
  border-color: var(--brand-primary);
  transform: translate(-50%, -50%) scale(1.2);
}

/* ==================================
   HERO SECTION STYLES
   ================================== */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
  box-sizing: border-box;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  z-index: 2;
  position: relative;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: fit-content;
}

.hero-badge svg {
  color: var(--accent-green);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.title-primary {
  color: var(--text-primary);
}

.title-secondary {
  color: var(--text-secondary);
}

.title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.highlight {
  color: var(--brand-light);
  font-weight: 600;
}

.features-preview {
  display: flex;
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-icon {
  font-size: 1.25rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  background: var(--gradient-primary);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brand);
  transition: all 0.3s ease;
  width: fit-content;
}

.primary-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand), var(--shadow-lg);
}

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

/* ==================================
   HERO VISUAL CARD
   ================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.card-dots {
  display: flex;
  gap: var(--space-xs);
}

.card-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.price-display {
  text-align: center;
  padding: var(--space-lg);
  background: var(--surface-glass);
  border-radius: var(--radius-md);
}

.price-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-sm);
}

.price-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-range {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--surface-glass);
  border-radius: var(--radius-md);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ==================================
   HERO BACKGROUND EFFECTS
   ================================== */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(-10px) rotate(240deg);
  }
}

/* ==================================
   RESPONSIVE DESIGN
   ================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .floating-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-content {
    padding: 0 var(--space-md);
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  .features-preview {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .visual-card {
    max-width: 320px;
  }
}

/* ==================================
   SIMPLIFIED FOOTER STYLES
   ================================== */
.modern-footer {
  position: relative;
  backdrop-filter: var(--glass-blur);
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  margin-top: var(--space-4xl);
  z-index: 100;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-copyright p {
  margin: 0;
}

.footer-trust {
  display: flex;
  gap: var(--space-lg);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.trust-item:hover {
  color: var(--text-primary);
}

.trust-item svg {
  flex-shrink: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .footer-trust {
    justify-content: center;
  }
}

/* ==================================
   SCROLL ANIMATIONS & INTERACTIONS
   ================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
  }

  .hero-badge {
    animation-delay: 0.1s;
  }

  .hero-title {
    animation-delay: 0.3s;
  }

  .hero-description {
    animation-delay: 0.5s;
  }

  .hero-cta {
    animation-delay: 0.7s;
  }

  .visual-card {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInLeft 1s ease-out 0.5s forwards;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeInLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Intersection Observer animations */
  .feature-item-modern {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
  }

  .feature-item-modern.animate-in {
    opacity: 1;
    transform: translateY(0);
  }

  .step-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
  }

  .step-item.animate-in {
    opacity: 1;
    transform: translateY(0);
  }

  .card-modern {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
  }

  .card-modern.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================
   UTILITY CLASSES
   ================================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.shadow-brand {
  box-shadow: var(--shadow-brand);
}

.shadow-accent {
  box-shadow: var(--shadow-accent);
}