:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #14142b;
  --muted: #5b5b76;
  --line: #e6e6f0;
  --brand: #5b4bff;
  --brand-2: #00c2a8;
  --mutuo: #5b4bff;
  --resta: #00a98f;
  --shadow: 0 20px 50px -20px rgba(40, 30, 120, .25);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d18;
    --surface: #161627;
    --text: #f1f1fa;
    --muted: #a3a3bf;
    --line: #262640;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: -.5px;
}
nav.links { display: flex; gap: 26px; }
nav.links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
nav.links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { nav.links { gap: 16px; } nav.links a.hide-sm { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; text-align: center; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: var(--brand); top: -200px; left: -120px; }
.hero::after { width: 460px; height: 460px; background: var(--brand-2); bottom: -220px; right: -100px; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -1.5px; font-weight: 800; max-width: 820px; margin: 0 auto; }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 22px auto 34px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

/* Apps */
section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.8px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; }
.app {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px;
  padding: 50px; box-shadow: var(--shadow); margin-bottom: 36px;
}
.app.reverse .app-text { order: 2; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; padding: 32px 22px; gap: 34px; }
  .app.reverse .app-text { order: 0; }
}
.app-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.9rem; margin-bottom: 18px; color: #fff;
}
.mutuo .app-icon { background: linear-gradient(135deg, #5b4bff, #8f7bff); }
.resta .app-icon { background: linear-gradient(135deg, #00a98f, #3fe0c5); }
.app h3 { font-size: 2rem; letter-spacing: -.6px; font-weight: 800; }
.app .tagline { font-size: 1.1rem; color: var(--muted); margin: 6px 0 22px; }
.features { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: 2px;
}
.mutuo .features li::before { background: color-mix(in srgb, var(--mutuo) 15%, transparent); color: var(--mutuo); }
.resta .features li::before { background: color-mix(in srgb, var(--resta) 15%, transparent); color: var(--resta); }
.app-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.play {
  display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; line-height: 1.15;
}
.play:hover { text-decoration: none; opacity: .9; }
.play small { display: block; font-size: .68rem; font-weight: 500; opacity: .8; }
.play svg { width: 22px; height: 22px; }
.soon { font-size: .85rem; color: var(--muted); }

/* Phone mockup */
.phone {
  width: 260px; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 18.5;
  background: #0b0b14; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; background: #0b0b14; border-radius: 10px; z-index: 2;
}
.screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden; color: #fff;
  padding: 50px 18px 18px; display: flex; flex-direction: column; gap: 12px;
}
.mutuo .screen { background: linear-gradient(170deg, #2b1fa8, #5b4bff 60%, #8f7bff); }
.resta .screen { background: linear-gradient(170deg, #00594c, #00a98f 60%, #3fe0c5); }
.screen .s-label { font-size: .72rem; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }
.screen .s-big { font-size: 2.1rem; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.s-card { background: rgba(255,255,255,.16); border-radius: 16px; padding: 12px 14px; font-size: .8rem; }
.s-row { display: flex; justify-content: space-between; margin: 3px 0; }
.s-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; margin-top: 8px; }
.s-bar span { display: block; height: 100%; background: #fff; border-radius: 99px; }
.s-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.s-chip { background: rgba(255,255,255,.2); border-radius: 99px; padding: 4px 10px; font-size: .7rem; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value .v-ico { font-size: 1.6rem; margin-bottom: 12px; }
.value h4 { font-size: 1.15rem; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact {
  text-align: center; border-radius: 32px; padding: 56px 24px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.contact h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.6px; }
.contact p { opacity: .9; margin: 10px 0 26px; }
.contact .btn { background: #fff; color: #14142b; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 70px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 60px 20px 20px; }
.legal .crumb { font-size: .9rem; margin-bottom: 18px; display: inline-block; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.7rem); letter-spacing: -1px; font-weight: 800; line-height: 1.15; }
.legal .updated { color: var(--muted); margin: 10px 0 30px; }
.legal .summary {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: 16px; padding: 20px 22px; margin-bottom: 34px;
}
.legal.resta-page .summary { border-left-color: var(--resta); }
.legal .summary ul { margin: 8px 0 0 20px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; letter-spacing: -.3px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 10px 0 10px 22px; }
.legal li { margin: 5px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--surface); }
.table-scroll { overflow-x: auto; }

/* Generic studio blocks */
.icon-cloud { display: flex; justify-content: center; gap: 18px; margin-top: 56px; flex-wrap: wrap; }
.icon-cloud span {
  width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center;
  font-size: 2rem; box-shadow: var(--shadow); color: #fff;
  animation: float 5s ease-in-out infinite;
}
.icon-cloud span:nth-child(1) { background: linear-gradient(135deg, #5b4bff, #8f7bff); }
.icon-cloud span:nth-child(2) { background: linear-gradient(135deg, #00a98f, #3fe0c5); animation-delay: .6s; transform: translateY(-14px); }
.icon-cloud span:nth-child(3) { background: linear-gradient(135deg, #ff6b6b, #ffa86b); animation-delay: 1.2s; }
.icon-cloud span:nth-child(4) { background: linear-gradient(135deg, #f7b500, #ffd65c); animation-delay: 1.8s; transform: translateY(-14px); }
.icon-cloud span:nth-child(5) { background: linear-gradient(135deg, #2b8cff, #6bc1ff); animation-delay: 2.4s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .icon-cloud span { animation: none; } }
@media (max-width: 480px) { .icon-cloud span { width: 58px; height: 58px; font-size: 1.6rem; border-radius: 18px; } }

.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 50px; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; padding: 32px 22px; } }
.about h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.6px; font-weight: 800; line-height: 1.15; }
.about p { color: var(--muted); margin-top: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: .9rem; }
.store-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
