/* MobileUps home page — light design (2026-10-22). Only index.html uses this file;
   the inner pages still use styles.css. */
:root {
  --blue: #1668ff;
  --blue-600: #0f56e0;
  --blue-50: #eef4ff;
  --blue-100: #dce8ff;
  --ink: #0b1a3a;
  --ink-2: #33415c;
  --muted: #5b6982;   /* 4.5:1 on white and on --bg-soft */
  --line: #e6ecf5;
  --bg: #ffffff;
  --bg-soft: #f6f9ff;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(17, 52, 120, .08);
  --shadow-lg: 0 24px 60px rgba(17, 52, 120, .14);
  --radius: 18px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: .28em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; }
.accent { color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: 600 15px/1 var(--font-body); border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(22, 104, 255, .28); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-50); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 26px/1 var(--font-head); color: var(--ink); letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { color: var(--blue); font-weight: 700; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.nav-cta { padding: 12px 20px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #f3f8ff url("img/home/hero-bg.webp") center right / cover no-repeat; border-radius: 0 0 36px 36px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 88px 0 96px; min-height: 560px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 26px; }
.hero h1 .accent { display: block; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.hero-stats strong { color: var(--ink); font-weight: 700; }

/* Device mockups (drawn in CSS so the Document Reader screen stays sharp) */
.devices { position: relative; height: 470px; }
.tablet { position: absolute; right: -10px; top: 70px; width: 380px; height: 290px; background: #121a2b; border-radius: 22px; padding: 12px; box-shadow: var(--shadow-lg); transform: rotate(1deg); }
.tablet-screen { width: 100%; height: 100%; background: #fff; border-radius: 12px; overflow: hidden; padding: 16px 18px; }
.doc-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.doc-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-100); }
.doc-title { font: 600 13px/1.2 var(--font-head); color: var(--ink); margin-bottom: 8px; }
.doc-line { height: 6px; border-radius: 3px; background: #edf1f7; margin: 7px 0; }
.doc-line.w80 { width: 80%; } .doc-line.w60 { width: 60%; } .doc-line.w90 { width: 90%; }
.doc-img { float: right; width: 120px; height: 78px; margin: 4px 0 6px 12px; border-radius: 6px; background: linear-gradient(160deg, #8fb6ff, #2f6fe0 55%, #e9f0ff 56%, #c4d6f7); }
.phone { position: absolute; left: 6%; top: 0; width: 236px; height: 470px; background: #0d1424; border-radius: 40px; padding: 11px; box-shadow: var(--shadow-lg); z-index: 2; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 10px; background: #0d1424; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #f7f9fc; display: flex; flex-direction: column; }
.app-head { background: linear-gradient(160deg, #1668ff, #0f3fb8); color: #fff; padding: 46px 16px 18px; }
.app-head-row { display: flex; align-items: center; gap: 10px; }
.app-head img { width: 34px; height: 34px; border-radius: 9px; background: #fff; }
.app-head strong { font: 700 16px/1.1 var(--font-head); display: block; }
.app-head span { font-size: 10.5px; opacity: .85; }
.app-menu { list-style: none; margin: 0; padding: 12px 12px 0; display: grid; gap: 8px; flex: 1; }
.app-menu li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 10px; font-size: 12px; font-weight: 600; color: var(--ink); box-shadow: 0 2px 6px rgba(17, 52, 120, .06); }
.app-menu .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 12px; flex: none; }
.ic.red { background: #ef5350; } .ic.blue { background: #1e88e5; } .ic.green { background: #26a69a; } .ic.orange { background: #fb8c00; } .ic.violet { background: #7e57c2; } .ic.teal { background: #00acc1; }
.app-tabs { display: flex; justify-content: space-around; padding: 10px 6px 14px; border-top: 1px solid var(--line); background: #fff; }
.app-tabs span { width: 22px; height: 4px; border-radius: 2px; background: var(--line); }
.app-tabs span:first-child { background: var(--blue); }

/* Sections */
section { scroll-margin-top: 90px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -.015em; margin-bottom: 18px; }
.section p.intro { color: var(--muted); max-width: 440px; margin: 0 0 28px; }

/* Featured apps */
.apps-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.carousel { position: relative; min-width: 0; }
.apps-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 18px 4px 26px; scrollbar-width: none; }
.apps-track::-webkit-scrollbar { display: none; }
.app-card { flex: 0 0 236px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.app-card .app-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px; }
.app-card h3 { font-size: 18px; line-height: 1.25; margin-bottom: 4px; }
.app-card h3 a { color: var(--ink); }
.app-card h3 a:hover { color: var(--blue); }
.app-card .tag { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; }
.app-card .desc { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.app-card .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.app-card .meta .star { color: #f5a524; }
.gp-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: #000; color: #fff; border-radius: 8px; padding: 6px 12px 6px 9px; line-height: 1.05; }
.gp-badge small { display: block; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.gp-badge b { font: 600 15px/1.1 var(--font-body); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn.prev { left: -18px; } .carousel-btn.next { right: -18px; }

/* Services */
.services-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 0; }
.service { padding: 6px 26px; border-left: 1px solid var(--line); }
.service .s-ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--blue); margin-bottom: 18px; }
.service h3 { font: 600 16px/1.3 var(--font-head); margin-bottom: 8px; }
.service p { font-size: 14px; color: var(--muted); margin: 0; }

/* Project CTA */
.project { position: relative; overflow: hidden; background: #f7faff url("img/home/project-desk.webp") right center / cover no-repeat; }
.project .wrap { padding-top: 110px; padding-bottom: 110px; }
.project h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 18px; }
.project p { color: var(--ink-2); max-width: 380px; margin: 0 0 30px; }
.project-copy { max-width: 470px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 30px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.footer-links a:hover { color: var(--blue); }
.footer-social { display: flex; gap: 14px; align-items: center; padding-right: 22px; border-right: 1px solid var(--line); }
.footer-social a { color: var(--ink); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; }
.footer-social a:hover { color: var(--blue); background: var(--blue-50); }
.footer-end { display: flex; align-items: center; gap: 22px; }
.copy { font-size: 13px; color: var(--muted); line-height: 1.5; }
.footer-sub { border-top: 1px solid var(--line); padding: 16px 0 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
.footer-sub a { color: var(--muted); }
.footer-sub a:hover { color: var(--blue); }

/* Reveal on scroll (content is visible without JS; JS only adds the animation) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .apps-grid, .services-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 56px 0 64px; }
  .devices { height: 430px; max-width: 520px; width: 100%; margin: 0 auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .carousel-btn.prev { left: 4px; } .carousel-btn.next { right: 4px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--shadow); }
  .site-header.open .nav-links a { display: block; padding: 12px 0; border: 0; }
  .hero { background-image: linear-gradient(180deg, rgba(243, 248, 255, .92), rgba(243, 248, 255, .78) 55%, rgba(243, 248, 255, .55)), url("img/home/hero-bg.webp"); background-position: center, 85% center; }
  .project { background-position: 70% center; }
  .project .wrap { background: linear-gradient(90deg, rgba(247, 250, 255, .95) 0, rgba(247, 250, 255, .85) 70%, rgba(247, 250, 255, .2)); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .services { grid-template-columns: 1fr; }
  .carousel-btn { display: none; }   /* swipe on phones; the arrows covered the next card */
  .service { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .tablet { width: 260px; height: 200px; right: 0; top: 120px; }
  .phone { left: 0; width: 200px; height: 400px; }
  .devices { height: 410px; }
  .footer-end { flex-direction: column; align-items: flex-start; }
  .footer-social { border-right: 0; padding-right: 0; }
}

/* ===== Contact page (/contact/) ===== */
.page-head { background: linear-gradient(180deg, #f3f8ff, #ffffff); padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
.page-head .lead { font-size: 17px; color: var(--ink-2); max-width: 620px; margin: 0; }
.contact-section { padding-top: 40px; }
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 2px 10px rgba(17, 52, 120, .04); transition: border-color .15s, transform .15s; }
a.contact-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.contact-card .c-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-card strong { display: block; font: 600 15px/1.3 var(--font-head); }
.contact-card small { display: block; font-size: 13.5px; color: var(--muted); word-break: break-word; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.contact-form h2 { font-size: 24px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 16px; font: 400 15px/1.5 var(--font-body); color: var(--ink); background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(22, 104, 255, .12); }
.contact-form.tried .field :invalid { border-color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-send { width: 100%; justify-content: center; margin-top: 4px; }
.btn-send:disabled { opacity: .7; cursor: default; transform: none; }
.form-status { margin: 14px 0 0; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: #047857; }
.form-status.error { color: #b91c1c; }
@media (max-width: 1020px) { .contact-grid { grid-template-columns: 1fr; } .contact-form { order: -1; } .contact-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } .contact-form { padding: 22px 18px; } .page-head { padding: 44px 0 8px; } }
