:root {
  --site-bg: #f4f7fb;
  --site-text: #122033;
  --site-muted: #4a5a71;
  --site-primary: #0d69f2;
  --site-secondary: #0aa5a5;
  --site-accent: #ff7d00;
  --site-border: #cfdaea;
  --site-card: #ffffff;
  --site-shadow: 0 16px 38px rgba(20, 44, 78, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--site-text);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, #d8edff 0%, transparent 30%),
    radial-gradient(circle at 88% 0%, #d9fff3 0%, transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 58%, #f8fbff 100%);
}

.wrap {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--site-border);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: lowercase;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 20px rgba(12, 89, 198, 0.35);
}

.top-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.top-nav a,
.site-footer a {
  color: var(--site-muted);
  text-decoration: none;
}

.top-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 160ms ease;
}

.top-nav a:hover {
  border-color: #bfd2ef;
  color: var(--site-primary);
  background: #ffffffb3;
}

.site-footer a:hover {
  color: var(--site-primary);
}

.hero {
  padding: 58px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b9cbeb;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  color: #1a5fc9;
  background: #eaf2ff;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.1;
  margin: 12px 0;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin: 0 0 12px;
}

h3 {
  margin: 0 0 8px;
}

.hero-copy {
  max-width: 58ch;
  color: var(--site-muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 150ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  box-shadow: 0 14px 24px rgba(13, 105, 242, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(13, 105, 242, 0.36);
}

.btn-ghost {
  color: var(--site-text);
  border-color: var(--site-border);
  background: #ffffffd4;
}

.feature-card,
.legal-card,
.post-card {
  border: 1px solid var(--site-border);
  border-radius: 16px;
  background: var(--site-card);
  box-shadow: var(--site-shadow);
}

.feature-card,
.legal-card,
.post-card,
.steps article,
.faq-grid article,
.blog-card {
  animation: cardIn 440ms ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.legal-card {
  padding: 18px;
}

.feature-card ul {
  margin: 0;
  padding-left: 18px;
}

.feature-card li,
.steps p,
.faq-grid p,
.legal-card p,
.legal-card li,
.post-card p,
.post-card li {
  color: var(--site-muted);
}

.ad-wrap {
  margin: 20px auto;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed #b8cdea;
  background: #ffffffd8;
}

.ad-label {
  margin: 0 0 8px;
  color: #5f7390;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.content-section {
  padding: 30px 0;
}

.content-section.muted {
  background: linear-gradient(180deg, #eef5ff 0%, #edf8f7 100%);
  border-top: 1px solid #d7e5f8;
  border-bottom: 1px solid #d7e5f8;
}

.steps,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.steps article,
.faq-grid article,
.legal-card section {
  border: 1px solid var(--site-border);
  border-radius: 13px;
  background: #fff;
  padding: 14px;
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--site-border);
  background: #ffffffd9;
}

.footer-grid {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-main {
  padding: 36px 0 18px;
}

.legal-card h1 {
  margin-top: 0;
}

.legal-card ul,
.post-card ul {
  padding-left: 18px;
}

.legal-card a,
.post-card a,
.blog-card a {
  color: var(--site-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.blog-grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.blog-card {
  border: 1px solid var(--site-border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #fff;
  box-shadow: var(--site-shadow);
}

.blog-card img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.blog-card > div {
  padding: 14px;
}

.blog-card .meta,
.post-card .meta {
  color: #60728c;
  font-size: 0.9rem;
}

.blog-card h2 {
  margin: 6px 0 8px;
  font-size: 1.35rem;
}

.blog-card p {
  color: var(--site-muted);
}

.blog-card a {
  text-decoration: none;
  font-weight: 700;
}

.post-card {
  padding: 16px;
}

.post-cover {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--site-border);
  margin-bottom: 10px;
}

.post-card h1 {
  margin-top: 6px;
}

.post-card h2 {
  margin-top: 18px;
}

.app-page .app-shell {
  max-width: 1480px;
  width: min(1480px, calc(100% - 2rem));
  margin: 10px auto 16px;
}

.app-ad-top {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .hero-grid,
  .steps,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    padding: 8px 0;
  }
}
