/* ============ Tokens ============ */
:root {
  --dark: #0a0a0a;
  --dark-2: #141414;
  --dark-3: #1e1e1e;
  --light: #f1f0fa;
  --faded: rgba(241, 240, 250, 0.55);
  --line: rgba(241, 240, 250, 0.12);
  --brand: #ffb21e;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --gutter: 1.5rem;
  --heading: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--light);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--brand); color: var(--dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.container { width: 100%; max-width: 100rem; margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ============ Type ============ */
.display, .h2, .h3, .wordmark, .site-footer__giant, .stat__value, .app-card h3, .marquee {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.display { font-size: clamp(2rem, 9.6vw, 11rem); font-weight: 900; line-height: 1; }
.display--md { font-size: clamp(2.75rem, 7.5vw, 8rem); }
.h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 900; line-height: 1; }
.h2__count { font-family: var(--body); font-size: 0.3em; font-weight: 500; vertical-align: top; margin-left: 0.35em; color: var(--faded); letter-spacing: 0; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.05; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.5rem; border-radius: 100vw;
  background: var(--light); color: var(--dark);
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.btn .icon { transition: transform .3s; }
.btn:hover { background: var(--brand); }
.btn:hover .icon { transform: rotate(45deg); }
.btn--dark { background: var(--dark); color: var(--light); }
.btn--dark:hover { background: var(--dark-3); }

.pill {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 100vw;
  background: rgba(10, 10, 10, 0.22); color: #fff; font-size: 0.875rem; white-space: nowrap;
}
.pill--outline { background: none; border: 1px solid var(--line); color: var(--faded); }

.round-btn {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--line); font-size: 1.15rem;
  transition: background-color .25s, color .25s, border-color .25s;
}
.round-btn .icon { transition: transform .3s; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.wordmark { font-weight: 900; font-size: 1.15rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; font-size: 0.95rem; }
.site-nav > a { color: var(--faded); transition: color .2s; }
.site-nav > a:hover { color: var(--light); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 100vw; padding: 3px; font-size: 0.8rem; font-weight: 600; }
.lang-switch > * { padding: 0.3rem 0.7rem; border-radius: 100vw; }
.lang-switch .is-active { background: var(--light); color: var(--dark); }
.lang-switch a { color: var(--faded); }
.lang-switch a:hover { color: var(--light); }

.mobile-menu { display: none; }
.mobile-menu__toggle { position: relative; z-index: 61; padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 100vw; font-size: 0.9rem; font-weight: 600; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  padding: 5rem var(--gutter) 2rem; background: var(--dark);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.mobile-nav--open { opacity: 1; visibility: visible; }
.mobile-nav a { font-family: var(--heading); font-weight: 900; text-transform: uppercase; font-size: 2.5rem; line-height: 1.15; }
.mobile-nav .mobile-nav__lang { margin-top: 2rem; font-size: 1rem; color: var(--brand); }

/* ============ Hero ============ */
.hero { padding: 4rem 0 5rem; }
.hero__label { color: var(--faded); font-size: 0.95rem; margin-bottom: 2rem; }
.hero__label::before { content: ''; display: inline-block; width: 0.55rem; height: 0.55rem; background: var(--brand); border-radius: 50%; margin-right: 0.6rem; }
.hero__bottom { margin-top: 3.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero__lead { max-width: 34rem; font-size: 1.25rem; line-height: 1.4; color: var(--faded); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero .display { font-size: clamp(2rem, 5.2vw, 7rem); }
.hero__visual {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--dark-2); overflow: hidden;
  background-image: radial-gradient(circle at 70% 20%, rgba(255, 178, 30, 0.18), transparent 55%);
  container-type: inline-size; --u: 1cqw;
}
/* One tile at a time, cycling through the apps. Sizes scale with the visual. The keyframes
   assume four tiles, each staggered by 3.5s in home.dart (4 × 3.5s = 14s). */
.hero__tile {
  position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content;
  display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--u));
  padding: calc(8 * var(--u)) calc(10 * var(--u)) calc(7 * var(--u)); border-radius: calc(12 * var(--u));
  color: #fff; font-weight: 600; font-size: calc(6 * var(--u));
  box-shadow: 0 2rem 3rem -1.5rem rgba(0, 0, 0, .6);
  opacity: 0; animation: hero-cycle 14s cubic-bezier(.2, .8, .2, 1) infinite both;
}
.hero__tile .app-icon--md { width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: calc(9 * var(--u)); font-size: calc(11 * var(--u)); }
.hero__tile span { white-space: nowrap; }
@keyframes hero-cycle {
  0% { opacity: 0; transform: translateY(8%) scale(.92) rotate(-6deg); }
  4%, 21% { opacity: 1; transform: translateY(0) scale(1) rotate(-3deg); }
  25%, 100% { opacity: 0; transform: translateY(-8%) scale(.92) rotate(0deg); }
}

/* ============ Marquee ============ */
.marquee { display: flex; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.25rem 0; user-select: none; }
.marquee__track { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; flex-shrink: 0; animation: marquee 30s linear infinite; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 900; white-space: nowrap; }
.marquee__star { color: var(--brand); font-size: 0.7em; }
.marquee__item { display: inline-flex; align-items: center; gap: 1rem; }
.marquee__item .app-icon { box-shadow: none; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ============ Sections ============ */
.section { padding: 7rem 0; }
.section .h2 { margin-bottom: 3rem; }

/* ============ App cards ============ */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--gutter); }
.app-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--dark-2); overflow: hidden; }
.app-card__panel {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--radius);
}
.app-card__top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 0.5rem; width: 100%; }
.app-card__top .pill { display: inline-flex; align-items: center; gap: 0.5rem; }
.app-card__panel .app-icon { position: relative; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.app-card__ghost {
  position: absolute; right: -0.06em; bottom: -0.22em;
  font-family: var(--heading); font-weight: 900; font-size: clamp(9rem, 22vw, 18rem); line-height: 1;
  color: rgba(255, 255, 255, 0.14); letter-spacing: -0.05em; pointer-events: none;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.app-card:hover .app-card__ghost { transform: translateX(-4%); }
.app-card:hover .app-card__top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 0.5rem; width: 100%; }
.app-card__top .pill { display: inline-flex; align-items: center; gap: 0.5rem; }
.app-card__panel .app-icon { transform: translateY(-6px) rotate(-4deg); }
.app-card__body { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.25rem; }
.app-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 900; line-height: 1.05; }
.app-card p { margin-top: 0.5rem; color: var(--faded); }
.app-card:hover .round-btn { background: var(--brand); border-color: var(--brand); color: var(--dark); }
.app-card:hover .round-btn .icon { transform: rotate(45deg); }

.app-icon {
  display: grid; place-items: center; flex-shrink: 0;
  background: #fff; font-family: var(--heading); font-weight: 900; letter-spacing: -0.03em;
  object-fit: cover; box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, .45);
}
.app-icon--sm { width: 3rem; height: 3rem; border-radius: 0.8rem; font-size: 1rem; }
.app-icon--md { width: 5rem; height: 5rem; border-radius: 1.3rem; font-size: 1.6rem; }
.app-icon--lg { width: 9rem; height: 9rem; border-radius: 2.2rem; font-size: 3rem; }

/* ============ Stats ============ */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { display: flex; flex-direction: column; padding: 3.5rem var(--gutter) 3rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-size: clamp(4rem, 9vw, 8.5rem); font-weight: 900; line-height: 0.9; color: var(--brand); }
.stat__label { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 600; }
.stat__note { margin-top: 0.25rem; color: var(--faded); }

/* ============ How we work ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.step { display: flex; flex-direction: column; padding: 1.75rem 1.5rem 2rem; border-radius: var(--radius); background: var(--dark-2); transition: background-color .25s; }
.step:hover { background: var(--dark-3); }
.step__num { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.step__title { margin: 4rem 0 0.75rem; font-family: var(--heading); font-weight: 900; text-transform: uppercase; font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.02em; }
.step p { color: var(--faded); }

/* ============ About ============ */
.about { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); }
.about__label { color: var(--faded); }
.about__label::before { content: '('; }
.about__label::after { content: ')'; }
.about__text { font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }

/* ============ Contact ============ */
.contact { background: var(--brand); color: var(--dark); padding: 6rem 0 5rem; }
.contact__bottom { margin-top: 3rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.contact__bottom p { max-width: 26rem; font-size: 1.25rem; line-height: 1.4; }

/* ============ App page ============ */
.back-link { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--faded); transition: color .2s; }
.back-link:hover { color: var(--light); }
.app-hero { padding: 2.5rem 0 5rem; border-bottom: 1px solid var(--line); }
.app-hero__grid { margin-top: 3rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.app-hero .display { margin-top: 1.5rem; word-break: break-word; }
.app-hero__tagline { margin-top: 1.25rem; font-size: 1.35rem; color: var(--faded); max-width: 32rem; }
.app-hero__visual {
  position: relative; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--app);
}
.app-hero__visual .app-card__ghost { font-size: clamp(12rem, 28vw, 26rem); }

.store-buttons { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store-button {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.4rem 0.7rem 1.1rem;
  border-radius: 0.8rem; background: var(--light); color: var(--dark); transition: background-color .2s;
}
.store-button .icon { width: 1.6rem; height: 1.6rem; }
.store-button > span { display: flex; flex-direction: column; line-height: 1.15; }
.store-button__small { font-size: 0.7rem; opacity: .7; }
.store-button__store { font-size: 1.05rem; font-weight: 600; }
a.store-button:hover { background: var(--brand); }
.store-button--soon { background: var(--dark-2); color: var(--faded); }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 5rem; align-items: start; }
.app-body__desc { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.35; letter-spacing: -0.01em; max-width: 48rem; margin-bottom: 5rem; }
.feature-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 4rem 1fr 1.4fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.feature-list__num { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.feature-list h3 { font-size: 1.25rem; font-weight: 600; }
.feature-list p { color: var(--faded); }
.app-body__side { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1rem; }
.side-block { padding: 1.5rem; border-radius: var(--radius); background: var(--dark-2); }
.side-block h4 { color: var(--faded); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.75rem; }
.side-block p { color: var(--faded); margin-bottom: 0.5rem; }
.side-block a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); word-break: break-all; transition: color .2s; }
.side-block a:last-child { border-bottom: 0; padding-bottom: 0; }
.side-block a:hover { color: var(--brand); }

/* ============ Legal pages ============ */
.legal { padding-top: 2.5rem; padding-bottom: 7rem; }
.legal__header { margin: 3rem 0 4rem; max-width: 60rem; }
.legal__header .app-icon { margin-bottom: 1.75rem; }
.legal__updated { margin-top: 1.25rem; color: var(--faded); }
.legal__layout { display: grid; grid-template-columns: 18rem minmax(0, 46rem); gap: 5rem; align-items: start; }
.legal__toc { position: sticky; top: 6rem; font-size: 0.925rem; }
.legal__toc h4 { color: var(--faded); font-weight: 500; margin-bottom: 1rem; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal__toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; color: var(--faded); transition: color .2s; }
.legal__toc a:hover { color: var(--light); }
.legal__intro { font-size: 1.3rem; line-height: 1.45; }
.legal section { scroll-margin-top: 6rem; }
.legal h2 { display: flex; gap: 1rem; align-items: baseline; font-size: 1.35rem; font-weight: 600; margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal__num { color: var(--brand); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.legal__body p, .legal__body li { color: rgba(241, 240, 250, 0.78); font-weight: 400; line-height: 1.65; }
.legal__body p + p, .legal__body ul + p, .legal__body p + ul { margin-top: 0.85rem; }
.legal__body ul { margin: 0; padding-left: 1.25rem; }
.legal__body li { padding: 0.25rem 0; }
.legal__body li::marker { color: var(--brand); }
.legal__body li a { color: var(--brand); font-size: 0.9rem; word-break: break-all; }
.legal__body li a:hover { text-decoration: underline; }

/* ============ 404 ============ */
.not-found { padding-top: 5rem; padding-bottom: 7rem; }
.not-found .display { color: var(--brand); font-size: clamp(6rem, 22vw, 18rem); }
.not-found__langs { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.not-found__langs p { margin: 0.75rem 0 2rem; color: var(--faded); }

/* ============ Footer ============ */
.site-footer { padding-top: 5rem; border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2.5rem; }
.site-footer h4 { font-weight: 500; color: var(--faded); font-size: 0.9rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 0.3rem 0; transition: color .2s; }
.site-footer li a:hover { color: var(--brand); }
.site-footer__giant {
  margin-top: 5rem; font-weight: 900; line-height: 0.8; white-space: nowrap;
  font-size: 13.4vw; letter-spacing: -0.04em; color: var(--dark-3);
  margin-left: -0.04em; user-select: none;
}
.site-footer__bottom { padding: 1.5rem 0 2rem; color: var(--faded); font-size: 0.875rem; }

/* ============ Responsive ============ */
@media (max-width: 991px) {
  .app-body, .legal__layout, .app-hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .app-body__side, .legal__toc { position: static; }
  .app-hero__visual { aspect-ratio: 16 / 10; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero .display { font-size: clamp(2rem, 9.6vw, 11rem); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 1.5rem; }
}
/* Tablet: wide visual, so size the tile against its height. */
@media (min-width: 768px) and (max-width: 991px) {
  .hero__visual { aspect-ratio: 16 / 10; --u: 0.625cqw; }
}
@media (max-width: 767px) {
  :root { --gutter: 1rem; }
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .hero { padding: 2.5rem 0 3.5rem; }
  /* Long Turkish words (e.g. KULLANILMAK, UYGULAMALARIMIZ) must fit a 360px screen. */
  .display, .hero .display { font-size: 8.4vw; }
  .steps { grid-template-columns: 1fr; }
  .step__title { margin-top: 2rem; }
  .display--md { font-size: 9vw; }
  .h2 { font-size: 6.4vw; }
  .hero__bottom { margin-top: 2.5rem; }
  .section { padding: 4.5rem 0; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { padding: 2.25rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .feature-list li { grid-template-columns: 2.5rem 1fr; }
  .feature-list p { grid-column: 2; }
  .not-found__langs { grid-template-columns: 1fr; }
  .contact { padding: 4.5rem 0 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__tile:first-child { opacity: 1; }
}
