/* takely.win. One typeface (Geist), Tailwind's type scale, the 0–96px spacing steps,
   flat backgrounds, and one easing curve for every motion. */

:root {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --line: #272727;
  --line-2: #313131;
  --text: #ffffff;
  --text-2: #c8c8c8;
  --muted: #9b9b9b;
  --accent: #6d3ef5;
  --accent-hover: #7b52f7;
  --accent-text: #a48bff;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --nav-h: 56px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-64px);
  transition: transform 700ms var(--ease);
}

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.accent {
  color: var(--accent-text);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.center {
  text-align: center;
}

.flip-x {
  transform: scaleX(-1);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 700ms var(--ease),
    transform 700ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-lg {
  min-height: 48px;
  padding: 8px 24px;
}

.btn-sm {
  min-height: 40px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Navigation: a floating glass pill */

.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  margin-top: 24px;
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--line-2);
  background: rgb(24 24 24 / 72%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 24px;
  height: 24px;
  color: var(--accent-text);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a,
.nav-login {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition:
    background-color 700ms var(--ease),
    color 700ms var(--ease);
}

.nav-links a:hover,
.nav-login:hover,
.nav-links a[aria-current="true"] {
  background: var(--surface-2);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9999px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 700ms var(--ease);
}

.burger span:first-child {
  transform: translateY(-4px);
}

.burger span:last-child {
  transform: translateY(4px);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(0) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(0) rotate(-45deg);
}

.menu {
  pointer-events: auto;
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 80%);
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  opacity: 0;
  transition: opacity 700ms var(--ease);
}

.menu[hidden] {
  display: none;
}

.menu.is-open {
  opacity: 1;
}

.menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.menu li {
  overflow: hidden;
}

.menu a:not(.btn) {
  display: block;
  padding: 4px 12px;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  text-decoration: none;
}

.menu li > * {
  transform: translateY(48px);
  opacity: 0;
  transition:
    transform 700ms var(--ease),
    opacity 700ms var(--ease);
}

.menu.is-open li > * {
  transform: translateY(0);
  opacity: 1;
}

.menu.is-open li:nth-child(1) > * { transition-delay: 100ms; }
.menu.is-open li:nth-child(2) > * { transition-delay: 150ms; }
.menu.is-open li:nth-child(3) > * { transition-delay: 200ms; }
.menu.is-open li:nth-child(4) > * { transition-delay: 250ms; }
.menu.is-open li:nth-child(5) > * { transition-delay: 300ms; }

@media (max-width: 860px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links,
  .nav-login {
    display: none;
  }

  .burger {
    display: inline-block;
  }
}

@media (max-width: 380px) {
  .nav-actions .btn-sm {
    display: none;
  }
}

/* Type */

.eyebrow {
  margin-bottom: 16px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--accent-text);
}

.gradient-text,
.hero-title,
.final-title {
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title span {
  display: block;
}

.hero-title {
  max-width: 680px;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 680px;
  margin-top: 24px;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--text-2);
}

.h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.01em;
}

.h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--text-2);
}

.lead + .lead {
  margin-top: 16px;
}

.strong {
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1;
  }

  .h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}


/* Hero */

.hero {
  padding-top: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.proof {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 640px;
  text-wrap: balance;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted);
  text-align: left;
}

.proof .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-text);
}

.hero-visual {
  position: relative;
  width: 100%;
  margin-top: 64px;
  padding-bottom: 48px;
}

.frame {
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.frame-img {
  width: 100%;
  border-radius: 8px;
}

.phone {
  position: absolute;
  right: 16px;
  bottom: 0;
  width: 28%;
  max-width: 220px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}

.phone-img {
  width: 100%;
  border-radius: 16px;
}

@media (min-width: 1024px) {
  .phone {
    right: -24px;
  }
}

/* Sections */

.section {
  padding-top: 96px;
}

@media (max-width: 639px) {
  .section {
    padding-top: 64px;
  }
}

.problem-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}

.card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    border-color 700ms var(--ease),
    transform 700ms var(--ease);
}

.card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.card .h3 {
  margin: 16px 0 8px;
}

.steps,
.features {
  margin-top: 40px;
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent-text);
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Tagline: each word lights up as it crosses the middle of the screen */

.tagline {
  padding-top: 96px;
  padding-bottom: 32px;
  display: flex;
  justify-content: center;
}

.tagline-text {
  max-width: 880px;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.tagline-text span {
  color: rgb(255 255 255 / 28%);
  transition: color 700ms var(--ease);
}

.tagline-text span.on {
  color: var(--text);
}

@media (min-width: 768px) {
  .tagline {
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .tagline-text {
    font-size: 3rem;
    line-height: 1;
  }
}

/* Showcase: text beside a screenshot */

.showcase {
  display: grid;
  gap: 40px;
  align-items: center;
}

.showcase .lead {
  margin-top: 16px;
}

@media (min-width: 960px) {
  .showcase {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }

  .showcase.flip {
    grid-template-columns: 7fr 5fr;
  }

  .showcase.flip .showcase-text {
    order: 2;
  }
}

.checks {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}

.checks .icon {
  margin-top: 2px;
  color: var(--accent-text);
}

/* Platforms */

.platform-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.platform-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
}

.platform-list li.soon {
  color: var(--muted);
}

.badge {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--surface-2);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted);
}

/* FAQ */

.faq {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: 4fr 8fr;
    gap: 64px;
  }
}

.faq-list {
  display: grid;
  gap: 8px;
}

.qa {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 700ms var(--ease);
}

.qa[open] {
  border-color: var(--line-2);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary:hover {
  background: var(--surface-2);
}

.caret {
  color: var(--muted);
  transition: transform 700ms var(--ease);
}

.qa[open] .caret {
  transform: rotate(180deg);
}

.qa-body {
  padding: 0 24px 24px;
  color: var(--text-2);
}

.qa-body p + p {
  margin-top: 12px;
}

.qa-body a,
.legal a {
  color: var(--accent-text);
  text-underline-offset: 4px;
}

/* Final call */

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 96px;
  text-align: center;
}

.final-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .final-title {
    font-size: 3rem;
    line-height: 1;
  }
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-grid p {
  margin-top: 12px;
  max-width: 280px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-title {
  margin-bottom: 12px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--muted);
}

.footer ul {
  display: grid;
  gap: 8px;
}

.footer ul a,
.lang-switch {
  color: var(--text-2);
  text-decoration: none;
  transition: color 700ms var(--ease);
}

.footer ul a:hover,
.footer ul a[aria-current="page"],
.lang-switch:hover {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid var(--line-2);
}

.footer-base {
  margin-top: 48px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Legal pages */

.legal {
  max-width: 768px;
  padding-top: 128px;
  padding-bottom: 96px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

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

.legal-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: -0.02em;
}

.legal .small {
  margin-top: 8px;
}

.legal .lead {
  margin-top: 24px;
}

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

.legal section p {
  margin-top: 12px;
  color: var(--text-2);
}

.legal a {
  word-break: break-word;
}

/* 404 */

.not-found {
  min-height: 70vh;
  padding-top: 160px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.not-found .hero-sub {
  margin-top: 0;
}

/* Reveal on scroll (only once the script runs, so the page never hides without it) */

.js .reveal {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease),
    filter 900ms var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }

  .js .reveal {
    transform: none;
    filter: none;
  }

  .tagline-text span {
    color: var(--text);
  }
}
