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

:root {
  --navy: #0A0F1E;
  --navy2: #111827;
  --card: #151D2E;
  --card2: #1A2540;
  --accent: #4F8EF7;
  --accent2: #6EA8FF;
  --text: #E8EDF8;
  --muted: #8A97B8;
  --border: rgba(79,142,247,0.18);
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(10,15,30,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; }
nav ul { display: flex; gap: 32px; list-style: none; }
nav a.navlink { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
nav a.navlink:hover, nav a.navlink.active { color: var(--accent2); }
.nav-cta {
  background: var(--accent); color: var(--white) !important; padding: 8px 20px;
  border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); }
.navwrap { display: flex; gap: 32px; align-items: center; }
@media (max-width: 900px) { nav ul { display: none; } }

/* ── PAGE HEADER (non-home pages) ── */
.page-hero {
  padding: 150px 5% 70px;
  background: radial-gradient(circle at 80% 0%, rgba(79,142,247,0.12) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent2); }
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; color: var(--white);
}
.page-hero p { color: var(--muted); font-size: 17px; max-width: 640px; }

/* ── GENERIC SECTIONS ── */
section { padding: 90px 5%; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 4vw, 40px); font-weight: 700; line-height: 1.15;
  letter-spacing: -.5px; color: var(--white); margin-bottom: 16px;
}
h3 { font-family: 'Space Grotesk', sans-serif; color: var(--white); font-weight: 600; }
.section-sub { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 50px; }

/* ── ARTICLE / CONTENT TYPOGRAPHY ── */
.article-wrap, .content-wrap {
  max-width: 760px; margin: 0 auto; padding: 60px 5% 100px;
}
.article-wrap h2, .content-wrap h2 { margin-top: 42px; }
.article-wrap h3, .content-wrap h3 { margin-top: 30px; margin-bottom: 12px; font-size: 20px; }
.article-wrap p, .content-wrap p { color: var(--muted); margin-bottom: 18px; font-size: 16px; }
.article-wrap ul, .content-wrap ul, .article-wrap ol, .content-wrap ol { color: var(--muted); margin: 0 0 20px 22px; }
.article-wrap li, .content-wrap li { margin-bottom: 8px; }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 30px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.faq-item { border-top: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { margin-top: 0; margin-bottom: 8px; font-size: 16px; }
.faq-item p { margin-bottom: 0; }

/* ── CARDS / GRIDS ── */
.services-grid, .apps-grid, .blog-grid, .grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 26px; transition: border-color .25s, transform .25s; text-decoration: none;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card .icon {
  width: 50px; height: 50px; background: rgba(79,142,247,0.1); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  margin-bottom: 18px; border: 1px solid var(--border);
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }

.app-banner { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 56px; border-radius: 16px 16px 0 0; }
.banner-blue { background: linear-gradient(135deg, #1A2F5E, #2A4BAE); }
.banner-purple { background: linear-gradient(135deg, #2A1A5E, #6B3AAE); }
.banner-teal { background: linear-gradient(135deg, #0D3535, #0A7A6A); }
.tag { background: rgba(79,142,247,0.1); border: 1px solid var(--border); color: var(--accent2); font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 100px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }

.blog-card { padding: 0; overflow: hidden; }
.blog-card .bc-body { padding: 22px 24px; }
.blog-card .bc-date { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 17px; margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: var(--muted); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: white; font-weight: 600; font-size: 15px;
  padding: 14px 30px; border-radius: 10px; text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 8px 32px rgba(79,142,247,0.3);
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: 15px;
  padding: 14px 30px; border-radius: 10px; text-decoration: none; display: inline-block;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 40px 5%;
  color: var(--muted); font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-top: 20px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 768px) {
  .grid-3, .services-grid, .apps-grid, .blog-grid { grid-template-columns: 1fr; }
}
