:root {
  --qleo-surface: #fcf8f7;
  --qleo-surface-bright: #fdf8f8;
  --qleo-surface-container: #f1edec;
  --qleo-accent: #1c1c1c;
  --qleo-muted: #5e5f5c;
  --qleo-soft: #e5e2dc;
  --qleo-border: rgba(196, 199, 199, 0.36);
  --qleo-glass: rgba(255, 255, 255, 0.42);
  --qleo-glass-strong: rgba(255, 255, 255, 0.66);
  --shadow-phone: 0 50px 100px -20px rgba(0, 0, 0, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  --shadow-glass: 0 40px 80px -15px rgba(31, 30, 29, 0.06);
  --max-site: 1200px;
  --max-legal: 800px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--qleo-surface);
  color: var(--qleo-accent);
  font-family: "Hanken Grotesk", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: #e5e2dc;
  color: var(--qleo-accent);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--qleo-accent);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, #fff8f0 0%, var(--qleo-surface) 100%);
}

.liquid-blob {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
}

.liquid-blob:first-child {
  top: -10%;
  left: -5%;
  width: 24rem;
  height: 24rem;
  background: #fdecc8;
}

.liquid-blob:last-child {
  right: -5%;
  bottom: -10%;
  width: 31.25rem;
  height: 31.25rem;
  background: #fff1f4;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(252, 248, 247, 0.74);
  box-shadow: 0 12px 40px rgba(28, 28, 28, 0.04);
}

.brand {
  flex: 0 0 auto;
  color: var(--qleo-accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}

.nav-links a,
.nav-links button {
  border: 0;
  background: transparent;
  color: var(--qleo-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links button:hover {
  opacity: 0.6;
}

.nav-links a:focus-visible,
.nav-links button:focus-visible,
.button:focus-visible,
.footer-links a:focus-visible,
.legal-body a:focus-visible {
  outline: 2px solid var(--qleo-accent);
  outline-offset: 4px;
}

.button,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--qleo-accent);
  color: #ffffff;
  padding: 10px 24px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button:hover,
.nav-button:hover {
  transform: scale(1.04);
  opacity: 1;
}

.button:active,
.nav-button:active {
  transform: scale(0.98);
}

.site-main {
  position: relative;
}

.section {
  position: relative;
  padding: 128px 24px;
}

.section-tonal {
  background: rgba(253, 248, 248, 0.5);
}

.section-glass {
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.container {
  width: min(100%, var(--max-site));
  margin: 0 auto;
}

.hero {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 160px 24px 80px;
  text-align: center;
}

.hero-copy {
  width: min(100%, 900px);
  margin: 0 auto 64px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero-title {
  margin-bottom: 32px;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-title-muted {
  display: inline-block;
  color: #a3a3a3;
  font-size: clamp(36px, 5.6vw, 72px);
}

.hero-subtitle {
  width: min(100%, 680px);
  margin: 0 auto;
  color: #525252;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.5;
}

.qleo-animated-text {
  position: relative;
  display: inline-block;
  overflow: visible;
  padding-right: 0.16em;
  margin-right: -0.08em;
  background: linear-gradient(110deg, var(--qleo-accent) 0%, var(--qleo-accent) 28%, #ffffff 40%, #c0c0c0 48%, #d1e9ff 58%, var(--qleo-accent) 72%, var(--qleo-accent) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquid-glass-shimmer 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: brightness(1.1) contrast(1.1);
}

.hero-device {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-device::before,
.final-cta::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(45deg, rgba(255, 228, 230, 0.78), rgba(254, 243, 199, 0.78));
  filter: blur(48px);
  opacity: 0.3;
  transition: opacity 1000ms ease;
}

.hero-device:hover::before {
  opacity: 0.5;
}

.phone-frame {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 320 / 650;
  overflow: hidden;
  border: 12px solid #1a1a1a;
  border-radius: 48px;
  background: #e2e2e2;
  box-shadow: var(--shadow-phone);
}

.hero-device .phone-frame {
  transform: scale(1.1);
  transform-origin: center;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tilt-phone {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 80px;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-copy {
  display: grid;
  gap: 32px;
}

.section-label {
  display: block;
  color: #a3a3a3;
  font-family: Inter, "Hanken Grotesk", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  color: var(--qleo-accent);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-title.large {
  font-size: clamp(48px, 6vw, 72px);
}

.section-title.final {
  font-size: clamp(48px, 7vw, 84px);
}

#about .section-label {
  margin-bottom: 16px;
}

.section-copy {
  max-width: 520px;
  color: #525252;
  font-family: Inter, "Hanken Grotesk", system-ui, sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--qleo-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
}

.metric-card {
  border-radius: 24px;
  padding: 24px;
  transition: transform 300ms ease;
}

.metric-card:hover {
  transform: translateY(-4px);
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1;
}

.metric-card span {
  display: block;
  color: #737373;
  font-family: Inter, "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  color: #525252;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 20px;
  padding: 16px;
  font-weight: 500;
}

.check-list i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--qleo-accent);
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.center-stack .section-copy {
  margin: 32px auto 96px;
}

.devices-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.device-caption {
  display: inline-block;
  margin: 0 auto 32px;
  border-radius: 999px;
  padding: 16px 20px;
  color: #737373;
  font-size: 14px;
  font-weight: 700;
}

.about-card {
  position: relative;
  width: min(100%, 880px);
  margin-top: 56px;
  overflow: hidden;
  border-radius: 48px;
  padding: 34px 42px;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
}

.about-card p {
  position: relative;
  z-index: 1;
  color: #525252;
  font-size: clamp(18px, 2.2vw, 28px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.36;
  text-wrap: balance;
}

.final-cta {
  overflow: hidden;
  text-align: center;
}

.final-cta::before {
  top: 50%;
  left: 50%;
  width: min(800px, 120vw);
  height: 400px;
  transform: translate(-50%, -50%);
  background: rgba(255, 228, 230, 0.48);
  filter: blur(120px);
}

.final-cta .section-copy {
  margin: 32px auto 48px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 16px;
  background: #000000;
  color: #ffffff;
  padding: 18px 40px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.store-button:hover {
  transform: scale(1.04);
}

.store-button:active {
  transform: scale(0.98);
}

.store-button svg {
  width: 32px;
  height: 32px;
}

.store-kicker {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.store-label {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
}

.site-footer {
  border-top: 1px solid rgba(212, 212, 212, 0.5);
  padding: 80px 32px;
  text-align: center;
}

.footer-brand {
  margin-bottom: 32px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 48px;
  margin-bottom: 48px;
}

.footer-links a {
  color: #737373;
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #000000;
}

.copyright {
  color: #a3a3a3;
  font-size: 12px;
}

.legal-page {
  padding: 152px 24px 96px;
}

.legal-shell {
  width: min(100%, var(--max-legal));
  margin: 0 auto;
}

.legal-kicker {
  margin-bottom: 24px;
}

.legal-title {
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.legal-intro {
  margin-bottom: 48px;
  color: #525252;
  font-family: Inter, "Hanken Grotesk", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.7;
}

.legal-card {
  border-radius: 40px;
  padding: clamp(28px, 5vw, 56px);
}

.legal-body {
  color: #454843;
  font-family: Inter, "Hanken Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.legal-body section + section {
  margin-top: 40px;
}

.legal-body h2 {
  margin-bottom: 12px;
  color: var(--qleo-accent);
  font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-body p + p,
.legal-body ul + p,
.legal-body p + ul {
  margin-top: 14px;
}

.legal-body ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body a {
  color: var(--qleo-accent);
  font-weight: 700;
  text-decoration-color: rgba(28, 28, 28, 0.25);
  text-underline-offset: 4px;
}

.legal-body a.button {
  color: #ffffff;
  text-decoration: none;
}

.legal-action {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.contact-panel {
  display: grid;
  gap: 28px;
  text-align: center;
}

.contact-panel .button {
  justify-self: center;
  padding: 14px 28px;
}

.support-email {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.response-time {
  display: inline-flex;
  justify-self: center;
  border-radius: 999px;
  padding: 12px 18px;
  color: #737373;
  font-family: Inter, "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes reveal-ltr {
  0% {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  100% {
    -webkit-mask-position: -100% 0;
    mask-position: -100% 0;
  }
}

@keyframes liquid-glass-shimmer {
  0% {
    background-position: -150% center;
    filter: brightness(1) contrast(1);
  }
  50% {
    filter: brightness(1.2) contrast(1.2);
  }
  100% {
    background-position: 150% center;
    filter: brightness(1) contrast(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    gap: 16px;
    padding: 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a,
  .nav-links button {
    font-size: 12px;
  }

  .hero {
    padding-top: 136px;
  }

  .hero-title {
    font-size: clamp(42px, 14vw, 60px);
  }

  .hero-title-muted {
    font-size: clamp(28px, 10vw, 42px);
  }

  .section {
    padding: 96px 20px;
  }

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

  .feature-grid.reverse-mobile .feature-visual {
    order: 2;
  }

  .feature-grid.reverse-mobile .feature-copy {
    order: 1;
  }

  .feature-copy {
    gap: 24px;
  }

  .section-title,
  .section-title.large {
    font-size: clamp(36px, 11vw, 48px);
  }

  .devices-row {
    flex-direction: column;
    gap: 56px;
  }

  .center-stack .section-copy {
    margin-bottom: 64px;
  }

  .about-card {
    padding: 28px 22px;
    border-radius: 32px;
  }

  .legal-page {
    padding-top: 136px;
  }

  .footer-links {
    gap: 22px 32px;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 10px;
  }

  .brand {
    font-size: 21px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a,
  .nav-links button {
    font-size: 11px;
  }

  .nav-button {
    padding: 8px 12px;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-copy {
    margin-bottom: 52px;
  }

  .hero-subtitle,
  .section-copy,
  .legal-intro {
    font-size: 16px;
  }

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

  .phone-frame {
    border-width: 10px;
    border-radius: 42px;
  }

  .hero-device .phone-frame {
    transform: scale(1);
  }

  .store-button {
    width: 100%;
    max-width: 260px;
    justify-content: center;
    padding-right: 26px;
    padding-left: 26px;
  }
}
