/* DMS Complete – Parts & Service site styles */
:root {
  --bg: #071221;
  --bg-deep: #050e18;
  --card: #0c1e33;
  --card-alt: #0e2438;
  --accent: #0088e8;
  --accent-hover: #0070c4;
  --accent-soft: rgba(0, 136, 232, 0.16);
  --muted: #8fa8c0;
  --muted-light: #a8bdd0;
  --light: #eef2f6;
  --text: #ffffff;
  --text-dark: #0a1a2e;
  --border: rgba(0, 150, 224, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== Header ========== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
}

/* Homepage: header sits in the dark top band, not floating absolute */
.home-header {
  position: relative;
  padding: 20px 0 0;
}

.site-header.solid {
  position: sticky;
  top: 0;
  background: rgba(7, 18, 33, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Logo + nav left-aligned (matches template) */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
}

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

.logo img {
  height: 78px;
  width: auto;
  object-fit: contain;
}

.site-header.solid .logo img {
  height: 56px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #c8d8e8;
}

nav.main-nav a {
  transition: color 0.15s;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* Outline button on light content backgrounds */
.btn-outline-dark {
  background: transparent;
  border: 1.5px solid #94a3b8;
  color: #0f2744;
}

.btn-outline-dark:hover {
  background: #f1f5f9;
  border-color: #64748b;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

/* ========== HOMEPAGE TEMPLATE LAYOUT (matches template.jpg) ========== */
/*
  2×2 grid:
  top-left  | top-right   (dark)
  bot-left  | bot-right   (light | dark)
  Footer full-width black
*/
body.home {
  background: #050e1a;
}

.tpl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top-left  top-right"
    "bot-left  bot-right";
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* ---- TOP LEFT ---- */
.tpl-top-left {
  grid-area: top-left;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #050e1a;
  min-width: 0;
  padding-bottom: 0;
  z-index: 1;
}

/* Keep logo, nav, and headline above the mid-gap feather */
.tpl-header,
.tpl-hero {
  position: relative;
  z-index: 3;
}

.tpl-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 16px 28px 0 40px;
}

.tpl-header .logo img {
  height: 120px;
  width: auto;
}

.tpl-header .main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #c8d8e8;
}

.tpl-header .main-nav a:hover {
  color: #fff;
}

.tpl-hero {
  /* ~100px from logo/nav block to headline */
  padding: 100px 40px 0;
  text-align: left;
  margin: 0;
}

.tpl-hero h1 {
  font-size: clamp(2.5rem, 4.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: #fff;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-btns .btn {
  min-width: 140px;
}

/* ---- TOP RIGHT: disc ---- */
.tpl-top-right {
  grid-area: top-right;
  position: relative;
  overflow: hidden;
  /* Match tighter left column instead of forcing a tall hero band */
  min-height: 0;
  background:
    radial-gradient(ellipse 75% 75% at 40% 50%, rgba(0, 130, 230, 0.4) 0%, transparent 58%),
    #050e1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-top-right img {
  /* banner-bg has empty dark left; zoom into the disc on the right */
  width: 155%;
  max-width: none;
  height: 125%;
  object-fit: cover;
  object-position: 82% 42%;
  /* Shift disc ~300px left toward the hero text */
  transform: translateX(-300px);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 50px rgba(0, 160, 255, 0.4));
  /* Fade into dark blue on the right side */
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.65) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.65) 78%,
    transparent 100%
  );
}

/*
  Dark-blue feather sits mid-gap between hero text and brake disc.
  Left column fades out on its right edge; right column fades in on
  its left edge — the soft band meets halfway between the two.
*/
.tpl-top-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(5, 14, 26, 0.25) 40%,
    rgba(5, 14, 26, 0.7) 75%,
    #050e1a 100%
  );
}

.tpl-top-right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #050e1a 0%,
    rgba(5, 14, 26, 0.85) 14%,
    rgba(5, 14, 26, 0.4) 28%,
    transparent 44%,
    transparent 62%,
    rgba(5, 14, 26, 0.55) 82%,
    #050e1a 100%
  );
  pointer-events: none;
}

.tpl-top-right::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  z-index: 1;
  background: linear-gradient(to top, #050e1a 0%, transparent 100%);
  pointer-events: none;
}

/* ---- BOTTOM LEFT: Features ---- */
.tpl-bot-left {
  grid-area: bot-left;
  background: #eef2f6;
  color: var(--text-dark);
  padding: 28px 28px 40px 40px;
  min-width: 0;
  /* Pull white Features panel up over the hero/disc band */
  margin-top: -110px;
  position: relative;
  z-index: 5;
}

.tpl-bot-left h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.tpl-bot-left .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ---- BOTTOM RIGHT: AI / Solutions / Pricing ---- */
.tpl-bot-right {
  grid-area: bot-right;
  /* No solid blue panel — let hero/disc show through */
  background: transparent;
  padding: 28px 28px 40px 24px;
  min-width: 0;
  /* Pull AI / Solutions / Pricing up with Features (ok to overlap disc) */
  margin-top: -110px;
  position: relative;
  z-index: 5;
}

.tpl-bot-right h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.tpl-bot-right .section-block {
  margin-bottom: 26px;
}

.tpl-bot-right .section-block:last-child {
  margin-bottom: 0;
}

.tpl-bot-right .ai-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.tpl-bot-right .ai-item {
  padding: 12px 6px;
  font-size: 0.7rem;
}

.tpl-bot-right .ai-item strong {
  font-size: 0.76rem;
  margin-bottom: 2px;
  line-height: 1.25;
}

.tpl-bot-right .industry-row {
  gap: 8px;
}

.tpl-bot-right .ind {
  min-width: 0;
  padding: 10px 8px;
  font-size: 0.76rem;
  flex: 1 1 0;
}

.tpl-bot-right .ind .ind-ico svg {
  width: 22px;
  height: 22px;
}

.tpl-bot-right .price-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tpl-bot-right .p-card {
  padding: 14px 10px;
}

.tpl-bot-right .p-card h3 {
  font-size: 0.9rem;
}

.tpl-bot-right .p-card .amount {
  font-size: 1.3rem;
  margin: 6px 0 4px;
}

.tpl-bot-right .p-card > p {
  font-size: 0.76rem;
  margin-bottom: 12px;
}

.tpl-bot-right .p-card .btn {
  padding: 9px 10px;
  font-size: 0.84rem;
}

.tpl-bot-right .price-lead {
  font-size: 0.82rem;
  margin-bottom: 12px;
}

/* Homepage footer */
body.home .footer {
  background: #000;
  max-width: 1440px;
  margin: 0 auto;
}

body.home .footer .container {
  max-width: none;
  padding: 0 40px;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #071221 0%, #0c1e33 55%, #0a2744 100%);
  padding: 130px 0 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero.with-banner {
  background-image: url('../images/banner-bg.jpg');
  background-size: cover;
  background-position: right center;
}

.page-hero.with-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 18, 33, 0.94) 0%, rgba(7, 18, 33, 0.78) 55%, rgba(7, 18, 33, 0.55) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; color: #4a5c70; }

.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted-light);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ========== Features (cards used on home + elsewhere) ========== */
.features {
  background: var(--light);
  color: var(--text-dark);
  padding: 72px 0 80px;
}

.features h2,
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.f-card {
  background: #0a1e33;
  border-radius: 12px;
  padding: 18px 16px 16px;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 136, 232, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.f-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 136, 232, 0.28);
}

.f-icon {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #3db4ff;
  padding: 0;
}

.f-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  color: #fff;
}

.f-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
  flex: 1;
  line-height: 1.4;
}

.f-card .learn {
  font-size: 0.84rem;
  color: #3db4ff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.f-card .learn:hover {
  color: #7fd0ff;
}

/* ========== Lower dark sections ========== */
.lower {
  background: var(--bg);
  padding: 64px 0 56px;
}

.lower h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: #fff;
}

.section-block {
  margin-bottom: 52px;
}

.section-block:last-child {
  margin-bottom: 0;
}

/* AI Integrations */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.ai-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  transition: border-color 0.2s, transform 0.2s;
}

.ai-item:hover {
  border-color: rgba(0, 136, 232, 0.4);
  transform: translateY(-2px);
}

.ai-item strong {
  display: block;
  color: #fff;
  font-size: 0.86rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

.ai-item a {
  display: block;
  color: inherit;
  height: 100%;
}

/* Industry */
.industry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ind {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #c0d4e8;
  text-align: center;
  min-width: 100px;
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.ind:hover {
  border-color: rgba(0, 136, 232, 0.35);
  transform: translateY(-2px);
}

.ind span {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.ind .ind-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: #c8d8e8;
}

.ind .ind-ico svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pricing */
.price-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.p-card {
  background: var(--card);
  border: 1px solid rgba(0, 150, 224, 0.18);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.p-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 136, 232, 0.25);
}

.p-card h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.p-card .amount {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 10px 0 6px;
  color: #1a9dff;
}

.p-card .amount span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.p-card > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
  flex: 1;
}

.p-card .features-list {
  text-align: left;
  margin: 0 0 20px;
  font-size: 0.86rem;
  color: var(--muted-light);
}

.p-card .features-list li {
  padding: 5px 0 5px 18px;
  position: relative;
}

.p-card .features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ========== Content pages ========== */
.content-wrap {
  background: var(--light);
  color: var(--text-dark);
  padding: 56px 0 72px;
}

.content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 90px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.side-nav h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 12px;
  padding: 0 8px;
}

.side-nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}

.side-nav a:hover,
.side-nav a.active {
  background: #e8f4fc;
  color: var(--accent);
  font-weight: 600;
}

.side-nav .group {
  margin-bottom: 18px;
}

.side-nav .group:last-child {
  margin-bottom: 0;
}

.article {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 42px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.article h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 36px 0 14px;
  padding-top: 8px;
}

.article h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.article h3 {
  font-size: 1.12rem;
  font-weight: 650;
  color: #0f2744;
  margin: 26px 0 10px;
}

.article p {
  font-size: 0.98rem;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.65;
}

.article ul,
.article ol {
  margin: 0 0 18px 0;
  padding-left: 0;
}

.article ul li,
.article ol li {
  font-size: 0.96rem;
  color: #334155;
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.article ol {
  counter-reset: step;
  list-style: none;
}

.article ol li {
  counter-increment: step;
  padding-left: 36px;
}

.article ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 24px;
  text-align: center;
}

.article .callout {
  background: #eef7fd;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 0.94rem;
  color: #1e3a5f;
}

.article .callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.article .tip {
  background: #f0fdf4;
  border-left-color: #22c55e;
}

.article .next-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

/* Full-width content without sidebar */
.article-wide {
  max-width: 820px;
  margin: 0 auto;
}

/* Card grids on content pages */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 28px;
}

.info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 18px 18px;
}

.info-card h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.info-card p {
  font-size: 0.9rem;
  color: #475569;
  margin: 0;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-deep);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer .footer-links a {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.15s;
}

.footer .footer-links a:hover {
  color: var(--accent);
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 10px;
  border: 1px solid #1a2a3c;
  border-radius: 6px;
  background: var(--card);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
}

.contact textarea {
  min-height: 80px;
  resize: vertical;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #5a7088;
}

.copy {
  border-top: 1px solid #152536;
  padding-top: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: #4a5c70;
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .tpl {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "top-left"
      "top-right"
      "bot-left"
      "bot-right";
  }

  .tpl-top-right {
    min-height: 280px;
  }

  .tpl-top-right img {
    width: 100%;
    height: 100%;
    object-position: 70% center;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tpl-top-right::before {
    background: linear-gradient(180deg, transparent 50%, #050e1a 100%);
  }

  .tpl-bot-left .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .tpl-bot-right .ai-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .feature-grid,
  .tpl-bot-left .feature-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid,
  .tpl-bot-right .ai-grid { grid-template-columns: 1fr 1fr; }
  .price-grid,
  .tpl-bot-right .price-grid { grid-template-columns: 1fr; max-width: 360px; }
  .content-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .side-nav .group { margin-bottom: 0; }
  .card-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .tpl-header {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px 20px 8px;
  }
  .tpl-header .logo img { height: 56px; }
  .tpl-header .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .tpl-hero {
    padding: 16px 20px 32px;
    margin: 0;
  }
  .tpl-hero h1 {
    font-size: 2.15rem;
  }
  .tpl-bot-left {
    padding: 28px 18px 36px;
  }
  .tpl-bot-right {
    padding: 28px 18px 36px;
  }
  .feature-grid,
  .tpl-bot-left .feature-grid { grid-template-columns: 1fr; }
  .ai-grid,
  .tpl-bot-right .ai-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article { padding: 28px 22px; }
  .side-nav { grid-template-columns: 1fr; }
  body.home .footer .container { padding: 0 20px; }
  .logo img { height: 56px; }
}
