/* ==========================================================================
   DeltaExecutorAPK — Global Stylesheet
   Mobile-first, modern, accessible, fast-loading
   ========================================================================== */

:root {
  /* Color tokens */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-soft: #f1f5f9;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-border-strong: #cbd5e1;
  --color-text: #0f172a;
  --color-text-soft: #475569;
  --color-text-muted: #64748b;

  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-soft: #eef2ff;
  --color-accent: #10b981;
  --color-accent-dark: #059669;
  --color-accent-soft: #ecfdf5;
  --color-warn: #f59e0b;
  --color-warn-soft: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-soft: #fef2f2;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 40px rgba(15, 23, 42, 0.12);

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container-max: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-4); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Section spacing */
.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-7) 0; }

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-4);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.site-brand:hover { color: var(--color-text); }
.site-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.site-brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-brand__name strong { font-size: 1.05rem; }
.site-brand__name span { font-size: 0.75rem; color: var(--color-text-muted); font-weight: 500; }

.site-nav {
  display: none;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--color-text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}
.site-nav a:hover, .site-nav a.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle__icon { width: 22px; height: 22px; position: relative; }
.menu-toggle__icon::before,
.menu-toggle__icon::after,
.menu-toggle__icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle__icon::before { top: 4px; }
.menu-toggle__icon span { top: 10px; }
.menu-toggle__icon::after { top: 16px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  background: #fff;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0;
}
.mobile-menu a {
  display: block;
  padding: 12px var(--space-5);
  color: var(--color-text);
  font-weight: 600;
}
.mobile-menu a:hover, .mobile-menu a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
.btn--primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.32);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.4);
}
.btn--accent {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
}
.btn--accent:hover {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #fff;
  transform: translateY(-1px);
}
.btn--ghost {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-7);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(16, 185, 129, 0.10), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.hero h1 {
  margin-bottom: var(--space-4);
}
.hero__lede {
  font-size: 1.125rem;
  color: var(--color-text-soft);
  max-width: 36em;
  margin-bottom: var(--space-5);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.hero__quick span { display: inline-flex; align-items: center; gap: 6px; }
.hero__quick span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  display: inline-block;
  position: relative;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__visual svg {
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.18));
}

/* ===== Cards ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--color-border-strong);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.feature-card__icon--accent { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.feature-card__icon--warn { background: var(--color-warn-soft); color: #b45309; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.feature-card p { color: var(--color-text-soft); margin: 0; font-size: 0.95rem; }

/* ===== Download card ===== */
.download-card {
  position: relative;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-lg);
}
.download-card h2 { color: #fff; }
.download-card__sub {
  color: #cbd5e1;
  max-width: 36em;
}
.download-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.download-card__row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.download-card__row:last-child { border-bottom: 0; }
.download-card__row dt { color: #94a3b8; font-weight: 500; }
.download-card__row dd { margin: 0; color: #f8fafc; font-weight: 600; text-align: right; }
.download-card__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.download-card__notice {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
  color: #fde68a;
  font-size: 0.9rem;
}

/* ===== Tables ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
th {
  background: var(--color-bg-soft);
  font-weight: 700;
}
tr:last-child td { border-bottom: 0; }

/* ===== Notice / callout ===== */
.notice {
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-soft);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  margin: var(--space-5) 0;
}
.notice--warn { border-left-color: var(--color-warn); background: var(--color-warn-soft); }
.notice--danger { border-left-color: var(--color-danger); background: var(--color-danger-soft); }
.notice--accent { border-left-color: var(--color-accent); background: var(--color-accent-soft); }
.notice p:last-child { margin-bottom: 0; }

/* ===== Accordion (FAQ) ===== */
.accordion { display: grid; gap: var(--space-3); }
.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.accordion__item:hover { border-color: var(--color-border-strong); }
.accordion__item.is-open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: 18px 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  border-radius: var(--radius);
}
.accordion__trigger:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: -3px;
}
.accordion__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.accordion__item.is-open .accordion__icon {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}
.accordion__panel {
  display: none;
  padding: 0 22px 20px;
  color: var(--color-text-soft);
}
.accordion__item.is-open .accordion__panel { display: block; }

/* ===== Lists — steps ===== */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-3);
}
.steps li {
  position: relative;
  padding: 16px 20px 16px 64px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #10b981);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { display: block; margin-bottom: 4px; }

/* ===== Page header ===== */
.page-header {
  padding: var(--space-7) 0 var(--space-5);
  background:
    radial-gradient(1000px 500px at 90% 0%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(16, 185, 129, 0.08), transparent 60%),
    #f8fafc;
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 { margin-bottom: var(--space-3); }
.page-header p {
  color: var(--color-text-soft);
  max-width: 42em;
  font-size: 1.05rem;
  margin: 0;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--color-border-strong); margin-right: 4px; }
.breadcrumbs a { color: var(--color-text-soft); }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ===== Footer ===== */
.site-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-8);
}
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.footer__brand p { color: #94a3b8; max-width: 32em; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.footer__cols h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: var(--space-3);
}
.footer__cols ul { list-style: none; padding: 0; margin: 0; }
.footer__cols li { margin: 6px 0; }

.footer__cta {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(99, 102, 241, 0.20), transparent 60%),
    linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  display: grid;
  gap: var(--space-4);
  align-items: center;
  text-align: left;
}
.footer__cta h3 { color: #fff; margin-bottom: 0; }
.footer__cta p { color: #cbd5e1; margin: 0; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ===== Article / blog ===== */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article__hero {
  margin: 0 0 var(--space-5);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}
.article__hero svg, .article__hero img { width: 100%; height: auto; }
.article p, .article li { font-size: 1.025rem; line-height: 1.75; color: var(--color-text); }
.article h2 { margin-top: var(--space-7); }
.article h3 { margin-top: var(--space-5); }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}
.blog-card__media {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-soft);
  overflow: hidden;
}
.blog-card__media svg, .blog-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.blog-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.blog-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.blog-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text);
}
.blog-card__excerpt {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin: 0;
}
.blog-card__cta { margin-top: auto; font-weight: 700; }

/* ===== Forms ===== */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-2); }
.form__row label { font-weight: 600; font-size: 0.9rem; color: var(--color-text); }
.form__row input,
.form__row textarea,
.form__row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form__row input:focus,
.form__row textarea:focus,
.form__row select:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}
.form__row textarea { min-height: 140px; resize: vertical; }
.form__help { font-size: 0.85rem; color: var(--color-text-muted); }
.form__error { color: var(--color-danger); font-size: 0.85rem; }

/* ===== Two column layouts ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.soft { color: var(--color-text-soft); }
.lead { font-size: 1.125rem; color: var(--color-text-soft); }
.divider { height: 1px; background: var(--color-border); margin: var(--space-6) 0; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 12px 18px;
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius);
  z-index: 200;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ===== Breakpoints ===== */
@media (min-width: 768px) {
  .site-nav { display: block; }
  .menu-toggle { display: none; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .download-card__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.4fr 2fr; }
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__cta { grid-template-columns: 1.5fr 1fr; text-align: left; }
  .two-col { grid-template-columns: 1.4fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: var(--space-9) 0 var(--space-8); }
}

/* ===== Print ===== */
@media print {
  .site-header, .site-footer, .menu-toggle, .mobile-menu { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   DeltaExecutorAPK — Homepage visual refresh
   Keeps the original indigo/white theme while giving the homepage content
   stronger hierarchy, softer cards, and cleaner reading blocks.
   ========================================================================== */

.home-page .site-brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.home-page .hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 85% 10%, rgba(79, 70, 229, 0.12), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-page .hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -130px;
  bottom: -160px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  pointer-events: none;
}

.home-page .hero__visual img {
  width: 100%;
  max-width: 520px;
  max-height: 440px;
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 24px 45px rgba(15, 23, 42, 0.16));
}

.home-page main > .section:not(.hero) {
  position: relative;
}

.home-page main > .section:not(.hero) .container > h2:first-child {
  position: relative;
  padding: 18px 22px 18px 24px;
  margin-bottom: 22px;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.055);
}

.home-page main > .section:nth-of-type(odd):not(.hero) {
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.home-page .two-col > div,
.home-page .two-col > aside {
  border-radius: 20px;
}

.home-page .two-col > div {
  padding: 28px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
}

.home-page .two-col > aside {
  padding: 26px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.home-page .two-col > div > h3,
.home-page .two-col > aside > h3 {
  color: var(--color-primary-dark);
}

.home-page .section > .container > p {
  max-width: 920px;
}

.home-page .card-grid {
  gap: 20px;
}

.home-page .card {
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.055);
}

.home-page .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.home-page .feature-card__icon {
  box-shadow: inset 0 0 0 1px rgba(79,70,229,0.08);
}

.home-page .download-card {
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
}

.home-page .article__hero,
.home-page .content-panel {
  border-radius: 20px;
}

@media (max-width: 700px) {
  .home-page .site-brand__logo {
    width: 42px;
    height: 42px;
  }
  .home-page .hero__visual img {
    max-height: 340px;
  }
  .home-page .two-col > div,
  .home-page .two-col > aside {
    padding: 22px;
  }
  .home-page main > .section:not(.hero) .container > h2:first-child {
    padding: 15px 17px 15px 19px;
  }
}


/* Final hero background */
.home-page .hero {
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,16,31,.92) 0%, rgba(7,16,31,.72) 45%, rgba(7,16,31,.30) 100%);
  pointer-events: none;
}
.home-page .hero .container,
.home-page .hero__content,
.home-page .hero__visual {
  position: relative;
  z-index: 1;
}
.home-page .hero__visual img {
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.48));
}


/* Best cinematic hero background */
.home-page .hero {
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home-page .hero::before {
  background: linear-gradient(90deg, rgba(7,16,31,.94) 0%, rgba(7,16,31,.72) 48%, rgba(7,16,31,.34) 100%);
}


/* Mobile hero visual — no background image */
.home-page .hero {
  background-image: none !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}
.home-page .hero::before {
  display: none !important;
}
.home-page .hero__visual img {
  width: auto;
  max-width: 420px;
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 24px 35px rgba(15, 23, 42, 0.22));
}
@media (max-width: 700px) {
  .home-page .hero__visual img {
    max-width: 330px;
    max-height: 500px;
  }
}


/* =========================================================
   Custom Delta Executor Mobile UI — built with HTML/CSS
   No mobile screenshot image is used.
   ========================================================= */
.home-page .hero {
  background-image: none !important;
  background:
    radial-gradient(650px 420px at 82% 45%, rgba(99,102,241,.13), transparent 68%),
    radial-gradient(500px 360px at 8% 20%, rgba(16,185,129,.07), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

.home-page .hero__visual {
  min-height: 600px;
  perspective: 1200px;
}

.delta-phone {
  position: relative;
  width: 330px;
  height: 620px;
  transform: rotate(4deg) translateY(4px);
  transform-style: preserve-3d;
}

.delta-phone__frame {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(145deg, #475569 0%, #111827 20%, #020617 65%, #334155 100%);
  box-shadow:
    22px 30px 60px rgba(15,23,42,.28),
    inset 1px 1px 2px rgba(255,255,255,.38),
    inset -2px -2px 5px rgba(0,0,0,.65);
}

.delta-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background:
    radial-gradient(250px 210px at 80% 10%, rgba(99,102,241,.25), transparent 70%),
    linear-gradient(160deg, #111827 0%, #050b17 55%, #0f172a 100%);
  color: #f8fafc;
  padding: 22px 17px 18px;
}

.delta-phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,.08), transparent 18%, transparent 70%, rgba(255,255,255,.035));
  pointer-events: none;
}

.delta-phone__status {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 10px;
  color: #cbd5e1;
  position: relative;
  z-index: 2;
}

.delta-phone__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 0 0 15px 15px;
  background: #020617;
  z-index: 5;
}

.delta-app__top {
  position: relative;
  z-index: 2;
  margin-top: 25px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 11px;
  align-items: center;
}

.delta-app__logo {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 15px;
  background: linear-gradient(145deg, #1e293b, #020617);
  border: 1px solid rgba(129,140,248,.45);
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

.delta-app__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}

.delta-app__top strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.delta-app__top small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #94a3b8;
}

.delta-app__dots {
  color: #94a3b8;
  letter-spacing: 2px;
}

.delta-app__welcome {
  position: relative;
  z-index: 2;
  margin: 28px 2px 18px;
}

.delta-app__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(16,185,129,.11);
  border: 1px solid rgba(52,211,153,.25);
  color: #6ee7b7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}

.delta-app__welcome h3 {
  margin: 11px 0 4px;
  color: #fff;
  font-size: 23px;
  line-height: 1.1;
}

.delta-app__welcome p {
  margin: 0;
  color: #94a3b8;
  font-size: 10px;
}

.delta-app__cards {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
}

.delta-app__card {
  display: grid;
  grid-template-columns: 34px 1fr 15px;
  align-items: center;
  gap: 9px;
  min-height: 61px;
  padding: 8px 11px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(30,41,59,.88), rgba(15,23,42,.72));
  border: 1px solid rgba(148,163,184,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}

.delta-app__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(79,70,229,.18);
  border: 1px solid rgba(99,102,241,.28);
  color: #a5b4fc;
  font-size: 13px;
}

.delta-app__card b {
  display: block;
  font-size: 11px;
  color: #f8fafc;
}

.delta-app__card small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 8px;
}

.delta-app__card i {
  color: #64748b;
  font-size: 18px;
  font-style: normal;
}

.delta-app__bottom {
  position: absolute;
  z-index: 3;
  left: 17px;
  right: 17px;
  bottom: 17px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 15px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 10px 24px rgba(79,70,229,.28);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.delta-app__online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52,211,153,.13);
}

.delta-phone__glow {
  position: absolute;
  z-index: 1;
  width: 280px;
  height: 560px;
  top: 35px;
  left: 30px;
  border-radius: 50%;
  background: rgba(79,70,229,.22);
  filter: blur(55px);
}

.delta-phone__decor {
  position: absolute;
  z-index: 0;
  display: block;
  border: 1px solid rgba(99,102,241,.32);
  border-radius: 50%;
}

.delta-phone__decor--1 {
  width: 470px;
  height: 470px;
  top: 75px;
  left: -70px;
}

.delta-phone__decor--2 {
  width: 380px;
  height: 380px;
  top: 120px;
  left: -25px;
  border-color: rgba(16,185,129,.15);
}

@media (max-width: 700px) {
  .home-page .hero__visual {
    min-height: 560px;
  }
  .delta-phone {
    width: 285px;
    height: 535px;
    transform: rotate(2deg);
  }
  .delta-phone__decor--1 {
    width: 400px;
    height: 400px;
  }
  .delta-phone__decor--2 {
    width: 320px;
    height: 320px;
  }
}


/* =========================================================
   MOBILE-FIRST OPTIMIZATION + INTERNAL LINKING UI
   ========================================================= */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 1180px);
    margin-inline: auto;
  }

  .hero,
  .home-page .hero {
    padding: 48px 0 54px;
  }

  .home-page .hero__grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .home-page .hero__grid > * {
    width: 100%;
    min-width: 0;
  }

  .home-page .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .home-page .hero__lede {
    font-size: .98rem;
    line-height: 1.72;
  }

  .home-page .hero__quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .hero__quick span {
    text-align: center;
    min-width: 0;
    font-size: .74rem;
    padding: 9px 7px;
  }

  .home-page .hero__visual {
    min-height: 0;
    width: 100%;
  }

  .home-page .delta-phone {
    width: min(285px, 78vw);
  }

  .home-page .delta-phone__screen {
    min-height: 535px;
  }

  .home-page main > .section {
    padding: 52px 0;
  }

  .home-page .section__heading {
    margin-bottom: 24px;
  }

  .home-page .section__heading h2 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .home-page .section__heading p {
    font-size: .94rem;
    line-height: 1.65;
  }

  .home-page .two-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .home-page .two-col > div,
  .home-page .two-col > aside,
  .home-page .content-panel,
  .home-page .download-card {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 17px;
  }

  .home-page .card-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .home-page .card {
    padding: 20px;
    border-radius: 17px;
  }

  .home-page .download-card {
    padding: 24px 20px;
  }

  .home-page .download-card .btn,
  .home-page .btn--lg {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .home-page .accordion summary {
    padding: 17px 16px;
    line-height: 1.45;
    font-size: .94rem;
  }

  .home-page .accordion {
    margin-bottom: 10px;
  }

  .home-page table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .home-page img,
  .home-page video,
  .home-page iframe {
    max-width: 100%;
    height: auto;
  }

  .home-page .article-card img,
  .home-page .post-card img {
    height: 150px;
  }

  .home-page footer {
    text-align: center;
  }

  .home-page footer .container {
    padding-bottom: 20px;
  }

  /* Make long article text easier to read */
  .home-page p,
  .home-page li {
    overflow-wrap: anywhere;
  }

  .home-page .delta-app__card {
    min-width: 0;
  }
}

/* Touch-friendly links */
.home-page a {
  -webkit-tap-highlight-color: transparent;
}
.home-page a.btn,
.home-page nav a {
  min-height: 44px;
}
@media (max-width: 480px) {
  .home-page .hero__quick {
    grid-template-columns: 1fr;
  }
  .home-page .delta-phone {
    width: min(270px, 84vw);
  }
  .home-page .delta-phone__screen {
    min-height: 510px;
  }
}

/* Internal links hub */
.internal-links {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #e1e6f0;
  border-radius: 20px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 36px rgba(31,41,55,.05);
}
.internal-links h3 {
  margin: 0 0 14px;
  font-size: 1.12rem;
}
.internal-links__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.internal-links a {
  display: block;
  padding: 12px 13px;
  border: 1px solid #e4e8f1;
  border-radius: 12px;
  background: #fff;
  color: #3730a3;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.internal-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(79,70,229,.25);
  box-shadow: 0 8px 22px rgba(79,70,229,.08);
}
@media (max-width: 640px) {
  .internal-links {
    padding: 18px;
    border-radius: 16px;
  }
  .internal-links__grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FINAL MOBILE FOOTER OPTIMIZATION
   ========================================================= */

.home-page footer {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.home-page footer .container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.home-page footer .footer__grid,
.home-page footer .footer-grid {
  display: grid;
  gap: 28px;
}

.home-page footer a {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .home-page footer {
    padding: 38px 0 24px;
    text-align: left;
  }

  .home-page footer .container {
    width: calc(100% - 32px);
    max-width: none;
    padding: 0;
  }

  .home-page footer .footer__grid,
  .home-page footer .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 22px;
  }

  .home-page footer .footer__brand,
  .home-page footer .footer-brand {
    width: 100%;
    max-width: 100%;
  }

  .home-page footer .footer__nav,
  .home-page footer .footer-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .home-page footer .footer__nav a,
  .home-page footer .footer-nav a {
    display: block;
    min-height: 44px;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(99,102,241,.12);
    border-radius: 10px;
    background: rgba(248,250,252,.9);
    text-decoration: none;
  }

  .home-page footer .footer__links,
  .home-page footer .footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-page footer .footer__bottom,
  .home-page footer .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    text-align: left;
  }

  .home-page footer p {
    font-size: .86rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .home-page footer h3,
  .home-page footer h4 {
    margin-bottom: 10px;
  }
}

@media (max-width: 430px) {
  .home-page footer .container {
    width: calc(100% - 24px);
  }

  .home-page footer .footer__nav,
  .home-page footer .footer-nav,
  .home-page footer .footer__links,
  .home-page footer .footer-links {
    grid-template-columns: 1fr !important;
  }

  .home-page footer .footer__nav a,
  .home-page footer .footer-nav a {
    width: 100%;
  }

  .home-page footer .footer__bottom,
  .home-page footer .footer-bottom {
    align-items: center !important;
    text-align: center;
  }
}


.site-footer-mobile-safe { width:100%; box-sizing:border-box; overflow:hidden; }
@media(max-width:768px){
  .site-footer-mobile-safe .container{max-width:none;}
}

/* Final download CTA */
.home-page a[href="https://deltaexecutors.pro"] {
  text-decoration: none;
}


/* =========================================================
   BLOG + LEGAL PAGES — FULL MOBILE OPTIMIZATION
   ========================================================= */

/* Prevent accidental horizontal scrolling on inner pages */
body:not(.home-page) {
  overflow-x: hidden;
  background: #f7f8fc;
}
body:not(.home-page) *,
body:not(.home-page) *::before,
body:not(.home-page) *::after {
  box-sizing: border-box;
}
body:not(.home-page) img,
body:not(.home-page) svg,
body:not(.home-page) video,
body:not(.home-page) iframe {
  max-width: 100%;
}

/* Page header */
body:not(.home-page) .page-header {
  padding: 52px 0 34px;
}
body:not(.home-page) .page-header h1 {
  max-width: 900px;
  overflow-wrap: anywhere;
}
body:not(.home-page) .page-header p {
  max-width: 820px;
  line-height: 1.7;
}

/* Blog index cards */
body:not(.home-page) .post-grid,
body:not(.home-page) .article-grid,
body:not(.home-page) .card-grid {
  min-width: 0;
}
body:not(.home-page) .post-card,
body:not(.home-page) .article-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
}
body:not(.home-page) .post-card img,
body:not(.home-page) .article-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* Blog article */
body:not(.home-page) .article,
body:not(.home-page) .article__body,
body:not(.home-page) .article__content,
body:not(.home-page) .prose {
  min-width: 0;
}
body:not(.home-page) .article {
  max-width: 900px;
  margin-inline: auto;
}
body:not(.home-page) .article__hero {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}
body:not(.home-page) .article__hero img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}
body:not(.home-page) .article__body,
body:not(.home-page) .article__content,
body:not(.home-page) .prose {
  font-size: 1rem;
  line-height: 1.78;
}
body:not(.home-page) .article__body h2,
body:not(.home-page) .article__content h2,
body:not(.home-page) .prose h2 {
  line-height: 1.2;
  margin-top: 2em;
}
body:not(.home-page) .article__body h3,
body:not(.home-page) .article__content h3,
body:not(.home-page) .prose h3 {
  line-height: 1.3;
  margin-top: 1.6em;
}
body:not(.home-page) .article__body p,
body:not(.home-page) .article__content p,
body:not(.home-page) .prose p {
  overflow-wrap: anywhere;
}
body:not(.home-page) blockquote {
  margin-left: 0;
  margin-right: 0;
  border-radius: 14px;
}
body:not(.home-page) pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body:not(.home-page) code {
  overflow-wrap: anywhere;
}

/* Breadcrumbs */
body:not(.home-page) .breadcrumbs {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body:not(.home-page) .breadcrumbs ol {
  min-width: max-content;
}

/* Tables: keep the page from breaking */
body:not(.home-page) table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}
body:not(.home-page) .table-wrap,
body:not(.home-page) .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Forms / contact page */
body:not(.home-page) input,
body:not(.home-page) textarea,
body:not(.home-page) select,
body:not(.home-page) button {
  max-width: 100%;
}
body:not(.home-page) input,
body:not(.home-page) textarea,
body:not(.home-page) select {
  font-size: 16px; /* prevents iOS zoom */
}
body:not(.home-page) textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer on all inner pages */
body:not(.home-page) footer {
  width: 100%;
  overflow: hidden;
}
body:not(.home-page) footer a {
  overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 768px) {
  body:not(.home-page) .container {
    width: calc(100% - 28px);
    max-width: none;
    margin-inline: auto;
  }

  body:not(.home-page) .page-header {
    padding: 40px 0 26px;
  }

  body:not(.home-page) .page-header h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.06;
  }

  body:not(.home-page) .page-header p {
    font-size: .95rem;
  }

  body:not(.home-page) .post-grid,
  body:not(.home-page) .article-grid,
  body:not(.home-page) .card-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  body:not(.home-page) .post-card img,
  body:not(.home-page) .article-card img {
    height: 160px;
  }

  body:not(.home-page) .article__hero {
    border-radius: 16px;
  }

  body:not(.home-page) .article__hero img {
    max-height: 300px;
  }

  body:not(.home-page) .article__body,
  body:not(.home-page) .article__content,
  body:not(.home-page) .prose {
    font-size: .97rem;
    line-height: 1.72;
  }

  body:not(.home-page) .article__body h2,
  body:not(.home-page) .article__content h2,
  body:not(.home-page) .prose h2 {
    font-size: 1.55rem;
  }

  body:not(.home-page) .article__body h3,
  body:not(.home-page) .article__content h3,
  body:not(.home-page) .prose h3 {
    font-size: 1.18rem;
  }

  body:not(.home-page) .two-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
  }

  body:not(.home-page) .two-col > * {
    width: 100%;
    min-width: 0;
  }

  body:not(.home-page) .content-panel,
  body:not(.home-page) .article__body,
  body:not(.home-page) .article__content {
    padding: 20px;
    border-radius: 17px;
  }

  body:not(.home-page) .download-card {
    padding: 22px;
    border-radius: 18px;
  }

  body:not(.home-page) .btn,
  body:not(.home-page) button,
  body:not(.home-page) input[type="submit"] {
    min-height: 46px;
  }
}

/* Phones */
@media (max-width: 480px) {
  body:not(.home-page) .container {
    width: calc(100% - 22px);
  }

  body:not(.home-page) .page-header {
    padding: 32px 0 22px;
  }

  body:not(.home-page) .page-header h1 {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
    letter-spacing: -.025em;
  }

  body:not(.home-page) .page-header p {
    font-size: .9rem;
    line-height: 1.62;
  }

  body:not(.home-page) .article__hero img {
    max-height: 230px;
  }

  body:not(.home-page) .article__body,
  body:not(.home-page) .article__content,
  body:not(.home-page) .prose {
    padding: 17px;
    font-size: .94rem;
    line-height: 1.68;
  }

  body:not(.home-page) .article__body h2,
  body:not(.home-page) .article__content h2,
  body:not(.home-page) .prose h2 {
    font-size: 1.38rem;
  }

  body:not(.home-page) .post-card,
  body:not(.home-page) .article-card {
    border-radius: 15px;
  }

  body:not(.home-page) .post-card img,
  body:not(.home-page) .article-card img {
    height: 145px;
  }

  body:not(.home-page) footer .container {
    width: calc(100% - 22px);
  }
}

/* Very small phones */
@media (max-width: 360px) {
  body:not(.home-page) .page-header h1 {
    font-size: 1.72rem;
  }
  body:not(.home-page) .article__body,
  body:not(.home-page) .article__content,
  body:not(.home-page) .prose {
    padding: 14px;
    font-size: .92rem;
  }
}

.legal-mobile-nav {
  padding: 0 0 44px;
}
.legal-mobile-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.legal-mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #e1e6f0;
  border-radius: 10px;
  background: #fff;
  color: #3730a3;
  text-decoration: none;
  font-weight: 750;
}
@media(max-width:480px){
  .legal-mobile-nav .container { display:grid; grid-template-columns:1fr; }
  .legal-mobile-nav a { width:100%; }
}

/* ===== FINAL MOBILE FIX ===== */
@media (max-width: 768px) {
  html, body { max-width:100%; overflow-x:hidden; }
  .container { width:calc(100% - 24px); max-width:100%; }
  .site-header__inner { min-height:64px; }
  .site-brand__logo { width:30px !important; height:30px !important; }
  .site-brand__name strong { font-size:14px; }
  .site-brand__name span { font-size:9px; }

  .home-page .hero { padding:32px 0 36px !important; }
  .home-page .hero__grid { gap:24px !important; }
  .home-page .hero h1 { font-size:clamp(1.8rem,9vw,2.5rem) !important; line-height:1.08 !important; }
  .home-page .hero__lede { font-size:.9rem !important; line-height:1.55 !important; }
  .home-page .hero__cta { flex-direction:column; }
  .home-page .hero__cta .btn { width:100%; box-sizing:border-box; text-align:center; }
  .home-page .hero__quick { gap:8px !important; }
  .home-page .hero__visual { min-height:0 !important; overflow:visible; }

  /* Keep the phone fully visible and make its internal UI scale cleanly. */
  .home-page .delta-phone {
    width:min(250px,72vw) !important;
    height:500px !important;
    transform:none !important;
    margin:0 auto !important;
  }
  .home-page .delta-phone__frame { padding:7px; border-radius:38px; }
  .home-page .delta-phone__screen { border-radius:32px; padding:17px 13px 14px; }
  .home-page .delta-phone__status { font-size:7px; padding:0 6px; }
  .home-page .delta-phone__notch { width:68px; height:16px; top:7px; border-radius:0 0 11px 11px; }

  /* Small logo inside the phone — never let it become a large visual. */
  .home-page .delta-app__top {
    margin-top:18px !important;
    grid-template-columns:26px minmax(0,1fr) auto !important;
    gap:7px !important;
  }
  .home-page .delta-app__logo {
    width:26px !important;
    height:26px !important;
    padding:2px !important;
    border-radius:8px !important;
  }
  .home-page .delta-app__logo img { border-radius:6px !important; width:100% !important; height:100% !important; }
  .home-page .delta-app__top strong { font-size:10px !important; white-space:nowrap; }
  .home-page .delta-app__top small { font-size:7px !important; margin-top:2px !important; }
  .home-page .delta-app__dots { font-size:9px; letter-spacing:1px; }

  .home-page .delta-app__welcome { margin:19px 1px 12px !important; }
  .home-page .delta-app__pill { font-size:6px !important; padding:3px 6px !important; }
  .home-page .delta-app__welcome h3 { font-size:17px !important; line-height:1.05 !important; margin:7px 0 3px !important; }
  .home-page .delta-app__welcome p { font-size:7px !important; }

  .home-page .delta-app__cards { gap:6px !important; }
  .home-page .delta-app__card {
    grid-template-columns:25px minmax(0,1fr) 10px !important;
    gap:6px !important;
    min-height:43px !important;
    padding:5px 7px !important;
    border-radius:11px !important;
  }
  .home-page .delta-app__icon { width:25px !important; height:25px !important; border-radius:8px !important; font-size:9px !important; }
  .home-page .delta-app__card b { font-size:8px !important; }
  .home-page .delta-app__card small { font-size:6px !important; margin-top:2px !important; }
  .home-page .delta-app__card i { font-size:12px !important; }
  .home-page .delta-app__bottom {
    left:13px !important; right:13px !important; bottom:12px !important;
    height:34px !important; border-radius:11px !important; font-size:8px !important;
  }
  .home-page .delta-app__online { width:5px !important; height:5px !important; }
  .home-page .delta-phone__glow { width:210px; height:420px; top:25px; left:20px; filter:blur(40px); }

  .home-page main > .section { padding:40px 0 !important; }
  .home-page .two-col > div, .home-page .two-col > aside, .home-page .content-panel, .home-page .download-card { padding:16px !important; }
  .home-page table { display:block; width:100%; overflow-x:auto; }
  .home-page img, .home-page svg { max-width:100%; height:auto; }
}

@media (max-width:380px) {
  .home-page .delta-phone { width:220px !important; height:440px !important; }
  .home-page .delta-phone__screen { padding:15px 11px 12px; }
  .home-page .delta-app__welcome h3 { font-size:15px !important; }
  .home-page .delta-app__card { min-height:39px !important; }
}

/* ===== HOME CONTENT BACKGROUND DESIGN ===== */
.home-page main {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(700px 380px at 8% 12%, rgba(99,102,241,.10), transparent 65%),
    radial-gradient(650px 360px at 92% 30%, rgba(16,185,129,.09), transparent 65%),
    radial-gradient(600px 340px at 15% 72%, rgba(59,130,246,.07), transparent 65%),
    linear-gradient(135deg, #f8faff 0%, #ffffff 42%, #f5f9ff 100%);
}
.home-page main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .48;
  background-image:
    linear-gradient(rgba(99,102,241,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.045) 1px, transparent 1px);
  background-size: 34px 34px;
}
.home-page main > .section {
  position: relative;
}
.home-page main > .section:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 5%; right: 5%; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.12), rgba(16,185,129,.12), transparent);
}
.home-page main > .section .two-col > div,
.home-page main > .section .card,
.home-page main > .section .feature-card,
.home-page main > .section .faq-item {
  position: relative;
}
.home-page main > .section .card,
.home-page main > .section .feature-card {
  box-shadow: 0 12px 35px rgba(15,23,42,.07);
}
@media (max-width: 600px) {
  .home-page main {
    background:
      radial-gradient(420px 260px at 0% 8%, rgba(99,102,241,.08), transparent 70%),
      radial-gradient(420px 260px at 100% 34%, rgba(16,185,129,.07), transparent 70%),
      linear-gradient(135deg, #f8faff 0%, #fff 55%, #f7fbff 100%);
  }
  .home-page main::before { background-size: 28px 28px; opacity: .32; }
}
