:root {
  --coral: #f2704a;
  --purple: #a259b5;
  --purple-deep: #7c3f87;
  --ink: #f5f5f7;
  --muted: #9a9aa4;
  --bg: #0a0a0c;
  --bg-soft: #131317;
  --bg-card: #16161b;
  --border: #26262e;
  --radius: 24px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-brand img {
  height: 28px;
  width: auto;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand:hover img { transform: rotate(90deg); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--purple-deep));
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(242, 112, 74, 0.7);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 24px 60px;
  text-align: center;
  background: radial-gradient(ellipse 900px 500px at 50% -10%, #201822 0%, #0a0a0c 55%), var(--bg);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
  pointer-events: none;
}

.hero-blob.one {
  background: var(--coral);
  top: -260px;
  left: -200px;
  animation: driftA 20s ease-in-out infinite;
}

.hero-blob.two {
  background: var(--purple);
  top: -200px;
  right: -220px;
  animation: driftB 26s ease-in-out infinite;
}

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(80px, 60px) scale(1.12); }
}

@keyframes driftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-70px, 90px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero-logo {
  height: 168px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 16px 40px rgba(162, 89, 181, 0.45));
  animation: logoIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 14px;
  color: var(--ink);
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero h1 .grad {
  background: linear-gradient(110deg, var(--coral), var(--purple), var(--coral));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.hero p {
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 28px;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(24px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  to { background-position: 220% center; }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 980px;
  background: linear-gradient(135deg, var(--coral), var(--purple-deep));
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(242, 112, 74, 0.75);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 23px;
  border-radius: 980px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* ---------- Hero visual — dissolves into the page as you scroll (JS-driven, see script) ---------- */
.hero-visual {
  position: relative;
  z-index: 1;
  max-width: 880px;
  width: 100%;
  margin: 44px auto 0;
  transition: opacity 0.05s linear;
  will-change: opacity, transform;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  animation: float 7s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-composite: intersect;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(-0.4deg); }
}

/* ---------- Sections ---------- */
.section {
  padding: 86px 24px;
  position: relative;
}

.section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(110deg, var(--coral), var(--purple), var(--coral));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  animation: shimmer 7s linear infinite;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  color: var(--ink);
}

/* ---------- App card ---------- */
.app-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: center;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(120deg, transparent 20%, rgba(242, 112, 74, 0.55), rgba(162, 89, 181, 0.55), transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

.app-card:hover::before { opacity: 1; }

.app-icon {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: 0 24px 56px -18px rgba(242, 112, 74, 0.5);
  justify-self: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card:hover .app-icon { transform: scale(1.05) rotate(-2deg); }

.app-tagline {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.app-desc {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 26px;
  max-width: 46ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin-bottom: 30px;
  max-width: 480px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d8d8de;
  transition: transform 0.3s ease, color 0.3s ease;
}

.feature-item:hover {
  transform: translateX(4px);
  color: var(--ink);
}

.feature-item .ico { font-size: 1.15rem; }

.app-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.app-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0;
}

/* ---------- Teaser ---------- */
.teaser {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 28px 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  transition: border-color 0.35s ease, background 0.35s ease;
}

.teaser:hover {
  border-color: rgba(242, 112, 74, 0.45);
  background: rgba(242, 112, 74, 0.04);
}

.teaser .ico {
  font-size: 1.6rem;
  flex-shrink: 0;
  animation: bob 3.5s ease-in-out infinite;
}

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

.teaser strong { color: var(--ink); }

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value {
  text-align: center;
  padding: 8px;
}

.value .ico {
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.value:hover .ico {
  transform: translateY(-6px) scale(1.06);
  border-color: rgba(242, 112, 74, 0.5);
  box-shadow: 0 16px 34px -14px rgba(242, 112, 74, 0.6);
}

.value h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink);
}

.value p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand img { height: 22px; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 6px;
  margin-right: 4px;
  border-right: 1px solid var(--border);
}

.social-icons a {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.social-icons a:hover {
  color: var(--coral);
  transform: translateY(-2px);
}

.social-icons svg { width: 19px; height: 19px; }

.footer-links a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 36px;
  color: var(--ink);
}

.legal p, .legal li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal a { color: var(--coral); }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.back-link:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .app-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    margin-left: auto;
    margin-right: auto;
  }
  .feature-item { justify-content: center; }
  .app-actions { justify-content: center; }
  .values { grid-template-columns: 1fr; }
  .nav-cta span.full { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
