:root {
  --bg: #f7f8fb;
  --bg-deep: #e9edf6;
  --ink: #101216;
  --muted: #4b5565;
  --accent: #0f3d7a;
  --accent-bright: #1a6bff;
  --accent-soft: rgba(26, 107, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.7);
  --card-border: rgba(16, 18, 22, 0.08);
  --shadow: 0 24px 60px rgba(15, 25, 40, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #d7e7ff, transparent 50%),
    radial-gradient(circle at 20% 20%, #ffffff, transparent 45%),
    linear-gradient(180deg, #f4f7ff 0%, #eef1f7 35%, #f7f8fb 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(16, 18, 22, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
  flex-wrap: nowrap;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-bright);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 61, 122, 0.15);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--accent);
  display: block;
  border-radius: 999px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0f3d7a, #1a6bff);
  color: #fff;
  box-shadow: 0 12px 30px rgba(26, 107, 255, 0.35);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: rgba(15, 61, 122, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 107, 255, 0.24), transparent 70%);
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 56px 0;
}

.page-managed-it .section {
  padding: 48px 0;
}

.page-contact .page-hero {
  padding-bottom: 36px;
}

.page-contact .page-hero + .section {
  padding-top: 36px;
}

.section h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  margin-bottom: 16px;
}

.section p.lead {
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  min-height: 180px;
}

.app-card {
  background: var(--app-card-bg, #f2f5fa);
}

.card-grid .app-card:nth-child(6n + 1) { --app-card-bg: #f5f0ea; }
.card-grid .app-card:nth-child(6n + 2) { --app-card-bg: #edf6f2; }
.card-grid .app-card:nth-child(6n + 3) { --app-card-bg: #eef2f8; }
.card-grid .app-card:nth-child(6n + 4) { --app-card-bg: #f7efe9; }
.card-grid .app-card:nth-child(6n + 5) { --app-card-bg: #eef6f7; }
.card-grid .app-card:nth-child(6n + 6) { --app-card-bg: #f3f4ef; }

.app-card .app-shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #fff;
  margin-bottom: 16px;
}

.app-card .app-shot.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #fff7e6;
  color: #7a5a2b;
  font-weight: 600;
}

.app-card img {
  width: 100%;
  height: auto;
  display: block;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 107, 255, 0.2), rgba(15, 61, 122, 0.25));
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.card .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.step {
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(15, 61, 122, 0.08);
}

.tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(16, 18, 22, 0.08);
}

.faq {
  margin-top: 32px;
}

.faq details {
  background: #fff;
  border: 1px solid rgba(16, 18, 22, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.cta-strip {
  padding: 48px 0;
  background: linear-gradient(135deg, #0f3d7a, #1a6bff);
  color: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.cta-strip .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}

.footer {
  padding: 48px 0 60px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.footer a {
  color: var(--muted);
}

.hero-image {
  margin-top: 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 238, 255, 0.9));
}

.hero-image .hero-panel {
  padding: 32px;
}

.hero-image h3 {
  margin-top: 0;
}

.page-hero {
  padding: 72px 0 48px;
}

.page-hero p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #fff;
  border-radius: 999px;
  padding: 10px;
  display: flex;
  gap: 10px;
  box-shadow: var(--shadow);
  z-index: 200;
}

.sticky-cta a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .sticky-cta {
    left: 16px;
    right: 16px;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 72px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
