:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-blue: #eef3ff;
  --text: #0f172a;
  --text-muted: #5b6475;
  --border: #e5e9f2;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbe6ff;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent); background: var(--bg-blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
.lead { font-size: 18px; color: var(--text-muted); margin-top: 16px; }
.accent { color: var(--accent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 80px 0 64px; background: linear-gradient(180deg, var(--bg-blue), #fff);
  border-bottom: 1px solid var(--border);
}
.page-hero .lead { max-width: 620px; }

/* ---------- Home hero ---------- */
.hero { padding: 80px 0 96px; background: linear-gradient(180deg, var(--bg-blue) 0%, #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); font-size: 14px; font-weight: 500; margin-bottom: 24px;
}
.badge-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.phone {
  width: 290px; margin: 0 auto; aspect-ratio: 9 / 19; border-radius: 44px;
  background: #0f172a; padding: 12px; box-shadow: 0 40px 80px -30px rgba(37, 99, 235, .45);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(160deg, #dbe6ff, #f8faff 60%); padding: 56px 20px 20px;
  position: relative;
}
.phone-screen::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 20px; background: #0f172a;
}
.phone-time { position: absolute; top: 14px; left: 26px; font-size: 13px; font-weight: 600; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
.phone-app { text-align: center; font-size: 10.5px; font-weight: 500; color: var(--text); }
.phone-app .app-icon { width: 58px; height: 58px; border-radius: 15px; margin: 0 auto 6px; }
.phone-app .app-icon svg { width: 28px; height: 28px; }
.phone-card {
  margin-top: 26px; background: #fff; border-radius: 18px; padding: 14px;
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .25); font-size: 12px;
}
.phone-card strong { display: block; font-size: 20px; }
.phone-card span { color: var(--text-muted); }

/* ---------- Stats ---------- */
.stats { padding: 0; margin-top: -48px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
}
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-value { font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ---------- App cards ---------- */
.app-icon {
  display: grid; place-items: center; color: #fff;
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .12);
}
.app-icon svg { width: 32px; height: 32px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.app-top { display: flex; gap: 16px; align-items: center; }
.app-category {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--bg-blue); padding: 3px 10px; border-radius: 999px; margin-top: 6px;
}
.app-desc { color: var(--text-muted); font-size: 15px; flex: 1; }
.app-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px;
}
.rating { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.rating svg { width: 16px; height: 16px; color: #f59e0b; }
.downloads { color: var(--text-muted); }
.app-features { list-style: none; display: grid; gap: 6px; font-size: 14px; }
.app-features li { display: flex; gap: 8px; align-items: flex-start; }
.app-features svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; flex-shrink: 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text-muted);
}
.filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg-blue); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card p { color: var(--text-muted); font-size: 15px; margin-top: 8px; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.step p { color: var(--text-muted); font-size: 15px; margin-top: 6px; }

.tech { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech span {
  padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
}

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick {
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg-blue); color: var(--accent);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}
.check-list .tick svg { width: 14px; height: 14px; }
.about-panel {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 24px; padding: 32px;
}
.about-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.about-row:last-child { border-bottom: none; }
.about-row .service-icon { margin: 0; flex-shrink: 0; background: #fff; }
.about-row small { display: block; color: var(--text-muted); font-size: 13px; }
.about-row strong { font-size: 15px; word-break: break-word; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; text-align: center;
}
.member.featured { border-color: var(--accent); box-shadow: 0 20px 40px -24px rgba(37, 99, 235, .5); }
.avatar {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff;
}
.member .role { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 4px; }
.member p { color: var(--text-muted); font-size: 15px; margin-top: 14px; }
.member .tag-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.member .tag-row span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); }
.owner-pill {
  display: inline-block; font-size: 12px; font-weight: 600; background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.testimonial .stars { display: flex; gap: 2px; color: #f59e0b; }
.testimonial .stars svg { width: 18px; height: 18px; }
.testimonial blockquote { font-size: 16.5px; line-height: 1.65; flex: 1; }
.person { display: flex; align-items: center; gap: 12px; }
.person .avatar { width: 44px; height: 44px; font-size: 15px; margin: 0; }
.person small { display: block; color: var(--text-muted); font-size: 13px; }
.person strong { font-size: 15px; }
.t-type {
  margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-blue); color: var(--accent); white-space: nowrap;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--accent), #1e40af); color: #fff; border-radius: 28px;
  padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta p { color: rgba(255, 255, 255, .85); font-size: 18px; margin: 14px auto 0; max-width: 560px; }
.cta .btn { background: #fff; color: var(--accent); margin-top: 32px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  transition: border-color .2s;
}
a.contact-card:hover { border-color: var(--accent); }
.contact-card .service-icon { margin: 0; flex-shrink: 0; }
.contact-card small { display: block; color: var(--text-muted); font-size: 13px; }
.contact-card strong { font-size: 16px; word-break: break-word; }
.form {
  background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 36px;
  box-shadow: var(--shadow); display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-muted); }
.form .btn { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 16px; }
.site-footer p, .site-footer li { font-size: 15px; color: var(--text-muted); }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .apps-grid, .services-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  section { padding: 72px 0; }
  .nav { justify-content: flex-end; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--border); gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; }
  .apps-grid, .services-grid, .team-grid, .testimonials-grid, .process, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .cta { padding: 48px 24px; }
  .form { padding: 24px; }
}

/* ---------- App logos ---------- */
.app-icon.app-logo { overflow: hidden; box-shadow: 0 6px 14px -6px rgba(15, 23, 42, .35); }
.app-icon.app-logo svg { width: 100%; height: 100%; }
