/* ===== Thulo Technology — base ===== */
:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --tint: #f8fafc;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --accent: #f97316;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.grad {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light { color: #c7d2fe; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff;
  font: 600 1rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn--small { padding: .6rem 1.15rem; font-size: .92rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--tint); }
.btn--white { background: #fff; color: var(--brand-dark); box-shadow: none; }
.btn--white:hover { background: #eef2ff; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font: 600 1.2rem var(--font-head); color: var(--ink); }
.logo b { font-weight: 800; color: var(--brand); margin-left: .2rem; }
.logo--light { color: #fff; }
.logo--light b { color: #a5b4fc; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-weight: 500; color: var(--text); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(99, 102, 241, .14), transparent 70%),
    radial-gradient(500px 360px at 70% 90%, rgba(249, 115, 22, .12), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 440px; }
.phone {
  width: 230px; height: 440px; padding: 12px;
  border-radius: 40px; background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .55);
  transform: rotate(6deg);
  animation: bob 6s ease-in-out infinite;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #818cf8, #c4b5fd 55%, #fed7aa);
}
.phone__mountain {
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: #4338ca;
  clip-path: polygon(0 60%, 25% 20%, 45% 50%, 70% 0, 100% 45%, 100% 100%, 0 100%);
}
.phone__score {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  padding: .35rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  font: 700 .85rem var(--font-head);
}
.blob { position: absolute; border-radius: 50%; animation: bob 4s ease-in-out infinite; }
.b1 { width: 54px; height: 54px; top: 32%; left: 22%; background: #facc15; }
.b2 { width: 34px; height: 34px; top: 22%; right: 20%; background: #fb7185; animation-delay: -1.5s; }
.b3 { width: 24px; height: 24px; top: 45%; right: 34%; background: #34d399; animation-delay: -3s; }
.float {
  position: absolute; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow); font-size: 1.8rem;
  animation: bob 5s ease-in-out infinite;
}
.f1 { top: 12%; left: 6%; }
.f2 { top: 8%; right: 10%; animation-delay: -2s; }
.f3 { bottom: 10%; left: 14%; animation-delay: -3.5s; }
@keyframes bob { 50% { translate: 0 -12px; } }

/* ===== Sections ===== */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }

/* ===== Games ===== */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.game {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.game:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.game__icon {
  width: 84px; height: 84px; border-radius: 22px; object-fit: cover;
  background: var(--tint);
  box-shadow: 0 12px 24px -14px rgba(15, 23, 42, .45);
}
.game.hidden { display: none; }
.games__more { text-align: center; margin-top: 2.5rem; }
.games__more .btn--ghost { border: 1px solid var(--line); }

/* ===== Filter chips ===== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: -1.5rem 0 2.5rem; }
.chip {
  padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--text); font: 500 .92rem var(--font-body); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.game__body h3 { margin: .5rem 0 .3rem; }
.game__body p { color: var(--muted); margin: 0; }
.tag {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px;
  background: #eef2ff; color: var(--brand); font-size: .78rem; font-weight: 600;
}
.game__stores { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.store {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: .85rem; font-weight: 500;
  transition: background .2s;
}
.store:hover { background: #1e293b; }
.store svg { width: 16px; height: 16px; fill: currentColor; }
.store--soon { background: var(--tint); color: var(--muted); border: 1px dashed var(--line); }
.store--soon:hover { background: var(--tint); }

/* ===== Stats ===== */
.stats { background: var(--ink); color: #cbd5e1; padding: 3.2rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-head); color: #fff; }
.stat span { font-size: .95rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.mountains { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(67, 56, 202, .18)); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--ink); font-weight: 500; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: .1rem;
  display: grid; place-items: center; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: #dcfce7; color: #15803d; font-size: .75rem; font-weight: 700;
}

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  padding: 2rem; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.2rem;
  border-radius: 16px; background: #eef2ff; font-size: 1.6rem;
}
.card p { color: var(--muted); margin: 0; }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { padding-top: 1.4rem; border-top: 2px solid var(--line); }
.steps span { font: 800 .9rem var(--font-head); color: var(--accent); }
.steps h3 { margin-top: .4rem; }
.steps p { color: var(--muted); margin: 0; }

/* ===== Careers ===== */
.careers {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, #7c3aed);
  color: #e0e7ff;
}
.careers h2 { color: #fff; }
.careers p { max-width: 52ch; margin: 0; }
.careers .btn { flex-shrink: 0; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; flex-direction: column; color: var(--ink); font-weight: 500; }
.contact__list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact__list a { color: var(--brand); }
.contact__list a:hover { text-decoration: underline; }
.form {
  display: grid; gap: 1rem; padding: 2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-weight: 400; color: var(--ink); background: var(--tint);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.form__note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #94a3b8; padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__grid a:not(.logo) { display: block; margin-bottom: .55rem; transition: color .2s; }
.footer__grid a:not(.logo):hover { color: #fff; }
.footer__tag { margin-top: 1rem; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1e293b; font-size: .88rem;
}
.footer__bottom a:hover { color: #fff; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .blob, .float { animation: none; }
}

/* ===== Legal page ===== */
.legal { max-width: 760px; padding: clamp(3rem, 8vw, 5rem) 0; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal a { color: var(--brand); text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .hero__art { min-height: 380px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .careers { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1.5rem; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}
