﻿/* ============================================================
   DATA CYNICAL — Responsive Stylesheet  v3.0
   ============================================================
   Single source of truth for ALL breakpoints.
   Load order: styles.css → responsive.css → page <style>

   STRATEGY:
   • Override CSS variables at each breakpoint — all consuming
     elements automatically scale without extra rules needed.
   • Add element-specific layout rules only when variables
     aren't enough (e.g. grid column changes, nav hamburger).

   Breakpoints:
   1400px  Container maxes out — no more scaling needed above
   1200px  Laptop
    992px  Tablet landscape
    768px  Tablet portrait — hamburger nav
    600px  Large mobile
    375px  Small phones
   ============================================================ */

/* ─────────────────────────────────────────────
   1200px — Laptop
───────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root {
    --sv: 4.5rem;     /* section rhythm */
    --cp: 2rem;       /* container padding stays at 2rem */
  }

  /* Product page grids */
  .caps-grid        { grid-template-columns: repeat(3, 1fr); }
  .modules-grid     { grid-template-columns: repeat(3, 1fr); }
  .foi-modules-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────────────────────────
   992px — Tablet Landscape
   Keep desktop nav, reduce padding, stack layouts
───────────────────────────────────────────── */
@media (max-width: 992px) {
  :root {
    --sv: 4rem;
    --cp: 1.75rem;
  }

  /* Nav — tighten link padding before hamburger kicks in */
  .nav-links a { padding: 0 .6rem; font-size: .82rem; }

  /* Headings */
  .pd-h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }

  /* Homepage grids */
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .feature-section-inner { grid-template-columns: 1fr !important; gap: 2.5rem; }
  .fullwidth-feature-inner { grid-template-columns: 1fr !important; gap: 2rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { flex-direction: column; gap: 1.5rem; }
  .step {
    border-right: none;
    border-bottom: 1px solid #e8eaed;
    padding: 0 0 1.5rem;
  }
  .step:last-child { border-bottom: none; padding-bottom: 0; }

  /* Product page grids */
  .caps-grid        { grid-template-columns: 1fr 1fr; }
  .modules-grid     { grid-template-columns: 1fr 1fr; }
  .foi-modules-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid     { grid-template-columns: 1fr; }
  .problem-2col     { grid-template-columns: 1fr; }
  .enigma-grid      { grid-template-columns: 1fr; }
  .enigma-features  { grid-template-columns: 1fr 1fr; }
  .fault-grid       { grid-template-columns: 1fr; }
  .challenge-grid   { grid-template-columns: 1fr; }
  .benefits-grid    { grid-template-columns: 1fr; }
  .value-list       { grid-template-columns: 1fr; }
  .threat-stat      { grid-template-columns: 1fr 1fr; }
  .foi-steps        { grid-template-columns: 1fr 1fr; }
  .foi-steps::before { display: none; }

  /* How-it-works — stack vertically */
  .hiw-steps { flex-direction: column; gap: 1.5rem; }
  .hiw-steps::before { display: none; }
  .hiw-step { text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
  .hiw-num  { margin: 0; flex-shrink: 0; }

  /* Services page */
  .svc-split { grid-template-columns: 1fr; gap: 2rem; }
  .svc-split.flip { direction: ltr; }
  .side-panel { position: static; }

  /* Hide canvas */
  #nsCanvas, #radarCanvas { display: none; }
  .foi-hero-visual { display: none; }

  /* Trust / stat bars */
  .trust-bar-inner { gap: 1.5rem; }
  .hero-stat-bar .dc-container { gap: 2rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-bottom-links { gap: 1rem; }

  /* Policy */
  .policy-layout {
    grid-template-columns: 1fr;
    padding-top: 3rem; padding-bottom: 3rem;
    gap: 2rem;
  }
  div.policy-toc { position: static; display: none; }
  .policy-body { max-width: 100%; }
}

/* ─────────────────────────────────────────────
   768px — Tablet Portrait
   Hamburger nav. Single-column layouts begin.
───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --sv: 3.5rem;
    --cp: 1.5rem;
  }

  /* Hamburger nav */
  .nav-links { display: none !important; }
  .nav-cta   { display: none; }
  .nav-menu-toggle { display: flex; }
  .nav-logo img { height: 44px; }

  /* Headings */
  .pd-h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Hero sections */
  .dc-hero { min-height: auto; }
  .dc-hero__inner { padding-top: 3.5rem; padding-bottom: 3rem; }
  .dc-hero__title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .dc-hero__ctas { flex-direction: column; gap: .75rem; }
  .dc-hero__ctas a { text-align: center; justify-content: center; }

  /* Page hero (policy) */
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: 1.6rem; }

  /* Homepage */
  .hero { min-height: auto; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid  { grid-template-columns: 1fr 1fr; }
  .why-grid   { grid-template-columns: 1fr 1fr; }

  /* Hero content — scale down for mobile
     margin-left set by --cp on dc-container wrapper */
  .hero-content { padding-top: 4rem; padding-bottom: 3.5rem; }

  /* Product page grids */
  .caps-grid        { grid-template-columns: 1fr 1fr; }
  .modules-grid     { grid-template-columns: 1fr 1fr; }
  .foi-modules-grid { grid-template-columns: 1fr 1fr; }
  .enigma-features  { grid-template-columns: 1fr; }
  .foi-steps        { grid-template-columns: 1fr 1fr; }

  /* Services */
  .svc-hero-inner  { padding-top: 3.5rem; padding-bottom: 3rem; }
  .svc-hero-stats  { gap: 1.5rem; flex-wrap: wrap; }
  .svc-trust       { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .svc-trust-items { flex-wrap: wrap; }

  /* Contact */
  .contact-wrap {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column; align-items: flex-start; gap: .75rem;
  }
  .footer-bottom-links { flex-wrap: wrap; gap: .75rem 1.25rem; }

  /* Trust bar */
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .trust-items { gap: 1rem 2rem; }
}

/* ─────────────────────────────────────────────
   600px — Large Mobile
   Full single column.
───────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --sv: 3rem;
    --cp: 1.25rem;
  }

  /* Logo */
  .nav-logo img { height: 38px; }

  /* Headings */
  .pd-h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .dc-hero__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .page-hero h1   { font-size: 1.5rem; }

  /* Buttons */
  .btn-primary, .btn-blue,
  .btn-secondary, .btn-outline,
  .btn-outline-white { padding: .7rem 1.5rem; font-size: .875rem; }

  /* Homepage */
  .cards-grid { grid-template-columns: 1fr; }
  .why-grid   { grid-template-columns: 1fr; }
  .stat-grid  { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; align-items: center; gap: .75rem; }
  .cta-btns a { width: 100%; text-align: center; justify-content: center; }

  /* Product page grids */
  .caps-grid        { grid-template-columns: 1fr; }
  .modules-grid     { grid-template-columns: 1fr; }
  .foi-modules-grid { grid-template-columns: 1fr; }
  .foi-steps        { grid-template-columns: 1fr; }
  .threat-stat      { grid-template-columns: 1fr; }
  .enigma-features  { grid-template-columns: 1fr; }

  /* Services */
  .svc-hero-inner  { padding-top: 3rem; padding-bottom: 2.5rem; }
  .svc-hero h1     { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .svc-hero-stats  { gap: 1.25rem; }
  .svc-hero-ctas   { flex-direction: column; }
  .svc-hero-ctas a { text-align: center; justify-content: center; }
  .svc-trust       { display: none; }
  .svc-section-cta { flex-direction: column; }
  .svc-section-cta a { text-align: center; justify-content: center; }
  .svc-cta-btns { flex-direction: column; align-items: center; }
  .svc-cta-btns a { width: 100%; text-align: center; justify-content: center; }

  /* Policy */
  .policy-layout { padding-top: 2.5rem; padding-bottom: 2.5rem; gap: 1.5rem; }

  /* Footer */
  .footer-bottom-links { gap: .6rem 1rem; }
}

/* ─────────────────────────────────────────────
   375px — Small Phone
───────────────────────────────────────────── */
@media (max-width: 375px) {
  :root {
    --sv: 2.5rem;
    --cp: 1rem;
  }

  .nav-logo img { height: 32px; }
  .pd-h2 { font-size: 1.3rem; }
  .dc-hero__title { font-size: 1.6rem; }
  .svc-hero h1    { font-size: 1.6rem; }

  .svc-hero-stats { flex-direction: column; gap: 1rem; }

  /* All CTAs full-width on tiny screens */
  .btn-primary, .btn-blue,
  .btn-secondary, .btn-outline,
  .btn-outline-white,
  .btn-svc { width: 100%; text-align: center; justify-content: center; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links { gap: .5rem .75rem; }
}



/* ================================================================
   HALLMARK v1.4 -- Full Mobile & Tablet Redesign
   Scope: <= 992px only. Desktop (>= 993px) is untouched.
   No bottom navigation. No fixed bottom elements.
   Philosophy: dedicated layouts, not compressed desktop.
   CTA rule: horizontal row layout at every breakpoint.
   Inspired by Apple . Stripe . Linear . Vercel
   ================================================================ */

/* -- Hallmark design tokens -- */
:root {
  --color-paper: #f7f8fa;
  --color-card: #fff;
  --color-ink: #202124;
  --color-muted: #5f6368;
  --color-rule: #dfe3e8;
  --color-accent: #fdc010;
  --color-accent-ink: #202124;
  --color-focus: #8ab4f8;
  --color-nav: rgba(13,17,23,.96);
  --color-nav-rule: rgba(255,255,255,.12);
  --color-nav-muted: rgba(255,255,255,.66);
  --color-nav-ink: #fff;
  --color-nav-active: rgba(138,180,248,.16);
  --font-display: "Google Sans Display", "Google Sans", system-ui, sans-serif;
  --font-body: "Google Sans Text", "DM Sans", system-ui, sans-serif;
  --space-3xs: .25rem;
  --space-2xs: .5rem;
  --space-xs: .75rem;
  --space-sm: 1rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --text-xs: .6875rem;
  --text-sm: .875rem;
  --text-md: 1rem;
  --tap-target: 48px;
  --radius-card: 18px;
  --radius-nav-item: 12px;
  --shadow-card: 0 2px 12px rgba(32,33,36,.07), 0 1px 3px rgba(32,33,36,.04);
  --shadow-card-hover: 0 8px 32px rgba(32,33,36,.12), 0 2px 8px rgba(32,33,36,.06);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-short: 160ms;
  --dur-reduced: .01ms;
}

/* =========================================================
   992px -- TABLET LANDSCAPE
   Hamburger activates. Section stacking begins.
   CTA pairs stay horizontal at this and all narrower sizes.
   ========================================================= */
@media (max-width: 992px) {

  /* -- GLOBAL -- */
  html, body { overflow-x: clip; }

  /* -- NAV: hamburger from tablet landscape up -- */
  nav.site-nav .nav-links,
  nav.site-nav .nav-cta { display: none !important; }
  nav.site-nav .nav-menu-toggle {
    display: flex;
    width: var(--tap-target);
    height: var(--tap-target);
    align-items: center;
    justify-content: center;
  }
  nav.site-nav .nav-menu-toggle:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
  }

  /* -- MOBILE PANEL -- */
  .nav-mobile-panel { width: min(88vw, 340px); }
  .mobile-link {
    padding: 1rem 1.5rem;
    font-size: .95rem;
    min-height: var(--tap-target);
  }
  .mobile-sub-item {
    padding: .9rem 1.75rem .9rem 2.5rem;
    min-height: var(--tap-target);
  }
  .mobile-cta {
    margin: 1.25rem 1.25rem 1.75rem;
    padding: 1rem 1.5rem;
    font-size: .9rem;
    min-height: var(--tap-target);
  }

  /* -- TOUCH: no double-tap delay -- */
  a, button, input, select, textarea, label[for] {
    touch-action: manipulation;
  }

  /* -- FORM FIELDS -- */
  input, select, textarea {
    min-height: var(--tap-target);
    font-size: var(--text-md);
  }

  /* -- CTA BUTTONS: 48px tap target -- */
  .btn-primary, .btn-blue, .btn-secondary,
  .btn-outline, .btn-outline-white, .btn-svc,
  .svc-btn-primary, .svc-btn-outline,
  .btn-dh, .btn-ns, .btn-foi,
  .btn-submit {
    min-height: var(--tap-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* =======================================================
     CTA DESIGN RULE: Always horizontal, never stacked.
     Applied here (992px) so it covers all smaller sizes.
     Overrides column rules from the original responsive.css.
     ======================================================= */

  /* Containers: row layout, wrap only as an absolute last resort */
  .hero-actions, .dc-hero__ctas, .svc-hero-ctas,
  .svc-section-cta, .svc-cta-btns, .cta-btns,
  .home-cta-btns, .dh-ctas, .ns-ctas, .foi-ctas,
  .dh-cta-btns, .ns-cta-btns, .foi-cta-btns {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .75rem !important;
  }

  /* Center-aligned bottom CTA sections */
  .dh-cta-btns, .ns-cta-btns, .foi-cta-btns,
  .svc-cta-btns {
    justify-content: center;
  }

  /* Each button: proportional width, never forced full-width */
  .hero-actions > *, .dc-hero__ctas > *, .svc-hero-ctas > *,
  .svc-section-cta > *, .svc-cta-btns > *, .cta-btns > *,
  .home-cta-btns > *, .dh-ctas > *, .ns-ctas > *, .foi-ctas > *,
  .dh-cta-btns > *, .ns-cta-btns > *, .foi-cta-btns > * {
    flex: 1 1 auto !important;
    width: auto !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Individual buttons: auto width everywhere -- overrides original 375px rule */
  .btn-primary, .btn-blue, .btn-secondary,
  .btn-outline, .btn-outline-white, .btn-svc,
  .btn-dh, .btn-ns, .btn-foi {
    width: auto !important;
  }

  /* -- CARD SYSTEM: consistent radius -- */
  .product-card, .why-card, .why-card-home,
  .svc-tile, .cap-card, .module-card,
  .foi-module, .feat-card, .challenge-card,
  .threat-stat-card, .benefit-item, .value-item,
  .pain-item, .info-card, .form-card,
  .enigma-feat, .fault-col, .pstat {
    border-radius: var(--radius-card) !important;
  }

  /* Cards with shadow */
  .product-card, .why-card, .why-card-home,
  .svc-tile, .cap-card, .module-card,
  .foi-module, .feat-card, .challenge-card,
  .threat-stat-card, .benefit-item, .value-item,
  .pain-item, .info-card, .form-card {
    box-shadow: var(--shadow-card);
  }

  /* Hover shadow uplift */
  .product-card:hover, .why-card:hover, .why-card-home:hover,
  .svc-tile:hover, .feat-card:hover, .challenge-card:hover {
    box-shadow: var(--shadow-card-hover) !important;
  }

  /* No overflow in narrow columns */
  .product-card, .why-card, .why-card-home,
  .svc-tile, .cap-card, .module-card, .foi-module,
  .feat-card, .challenge-card { min-width: 0; overflow: hidden; }

  /* -- CARD GRID GAPS -- */
  .products-grid, .services-grid, .cards-grid,
  .why-grid, .why-grid-home,
  .caps-grid, .modules-grid, .foi-modules-grid,
  .benefits-grid, .challenge-grid, .repos-grid,
  .value-list, .threat-stat {
    gap: 1rem !important;
  }

  /* -- ANCHOR SCROLL MARGIN -- */
  .pd-section, .problem-section, .products-section,
  .services-section, .why-section,
  .enigma-section, .repos-section, .svc-cta {
    scroll-margin-top: calc(var(--nav-h) + .5rem);
  }

  /* -- HIDE DECORATIVE CANVASES -- */
  #orbitCanvas, #nsCanvas, #radarCanvas,
  .hero-visual, .foi-hero-visual { display: none !important; }

  /* -- TYPOGRAPHY -- */
  .pd-h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
  .pd-lead { max-width: 100%; }

  /* === HOMEPAGE === */
  .hero { min-height: auto; }
  .hero-content {
    padding-top: calc(var(--nav-h) + 3.5rem);
    padding-bottom: 3.5rem;
  }
  .problem-inner  { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .problem-stats  { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
  .services-inner { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .services-grid  { grid-template-columns: 1fr 1fr !important; }
  .products-grid  { grid-template-columns: 1fr 1fr !important; }
  .why-grid-home  { grid-template-columns: 1fr 1fr !important; }
  .trust-bar-inner { gap: 1rem; flex-wrap: wrap; }
  .trust-items { flex-wrap: wrap; gap: .75rem 1.5rem; }

  /* === PRODUCT PAGES SHARED === */
  .dh-hero-content,
  .ns-hero-content,
  .foi-hero-content {
    padding: calc(var(--nav-h) + 3.5rem) var(--cp) 3rem;
  }

  /* Trust bars: horizontal scroll pill carousel */
  .dh-trust-inner,
  .ns-trust-inner,
  .foi-trust-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
    gap: 1.5rem;
  }
  .dh-trust-inner::-webkit-scrollbar,
  .ns-trust-inner::-webkit-scrollbar,
  .foi-trust-inner::-webkit-scrollbar { display: none; }
  .dh-trust-item,
  .ns-trust-item,
  .foi-trust-item { white-space: nowrap; flex-shrink: 0; }

  /* === DATAHARMONY === */
  .problem-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .threat-stat { grid-template-columns: 1fr 1fr !important; }
  .threat-stat-num { font-size: 1.75rem; }
  .problem-visual { padding: 1.75rem !important; }
  .attack-type { padding: .875rem 1rem !important; }
  .caps-grid { grid-template-columns: 1fr 1fr !important; }
  .benefits-grid { grid-template-columns: 1fr !important; }

  /* === NETSIGHT AI === */
  .challenge-grid { grid-template-columns: 1fr !important; }

  .hiw-steps { flex-direction: column; gap: .875rem; }
  .hiw-steps::before { display: none; }
  .hiw-step {
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-card);
  }
  .pd-section.gray .hiw-step {
    background: #fff;
    border: 1px solid #e8eaed;
    box-shadow: var(--shadow-card);
  }
  .hiw-num { margin: 0; flex-shrink: 0; }

  .modules-grid { grid-template-columns: 1fr 1fr !important; }
  .fault-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .comp-wrap { position: relative; }
  .ns-stats { gap: 1.5rem 2.5rem; flex-wrap: wrap; }

  /* === AI4FOI === */
  .problem-2col { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .problem-pains { gap: .75rem !important; }
  .enigma-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .enigma-features { grid-template-columns: 1fr 1fr !important; }
  .foi-modules-grid { grid-template-columns: 1fr 1fr !important; }
  .foi-steps { grid-template-columns: 1fr 1fr !important; }
  .foi-steps::before { display: none; }
  .value-list { grid-template-columns: 1fr !important; }
  .foi-stats { gap: 1.25rem 2rem; flex-wrap: wrap; }

  /* === SERVICES PAGE === */
  .svc-split {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    direction: ltr !important;
  }
  .svc-split > * { direction: ltr !important; }
  .side-panel { position: static !important; top: auto !important; }
  .side-panel.panel-dk {
    border-radius: var(--radius-card) !important;
    overflow: hidden;
    margin-top: .5rem;
  }
  .side-panel.panel-lt {
    border-radius: var(--radius-card) !important;
    overflow: hidden;
    margin-top: .5rem;
    box-shadow: var(--shadow-card);
  }
  .why-grid { grid-template-columns: 1fr 1fr !important; }

  .hero-stat-bar .dc-inner,
  .hero-stat-bar .dc-container { gap: 1.5rem; flex-wrap: wrap; }

  /* === FOOTER === */
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
  .footer-bottom-links { gap: .75rem 1.25rem; }

  /* === CONTACT === */
  .contact-wrap {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* === POLICY / LEGAL === */
  .policy-layout {
    grid-template-columns: 1fr !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    gap: 1.5rem !important;
  }
  div.policy-toc { position: static; display: none; }
  .policy-body { max-width: 100%; }
}

/* =========================================================
   768px -- TABLET PORTRAIT
   Typography tightens. Hero sections scale down.
   CTAs still horizontal -- row rule from 992px holds.
   ========================================================= */
@media (max-width: 768px) {
  :root { --sv: 3.5rem; --cp: 1.5rem; }

  /* Homepage hero */
  .hero-content {
    padding-top: calc(var(--nav-h) + 2.5rem);
    padding-bottom: 3rem;
  }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem) !important; }
  .hero-sub { font-size: .975rem; }

  /* Product page heroes */
  .dh-hero-content,
  .ns-hero-content,
  .foi-hero-content {
    padding: calc(var(--nav-h) + 2.5rem) var(--cp) 2.5rem;
  }
  .dh-hero h1,
  .ns-hero h1,
  .foi-hero h1 { font-size: clamp(2rem, 7vw, 3.2rem) !important; }
  .dh-hero-sub,
  .ns-hero-sub,
  .foi-hero-sub { font-size: .95rem !important; line-height: 1.7; }

  /* DC-hero (services inner pages) */
  .dc-hero { min-height: auto; }
  .dc-hero__inner { padding-top: 3.5rem; padding-bottom: 3rem; }
  .dc-hero__title { font-size: clamp(1.8rem, 6.5vw, 2.6rem) !important; }

  /* Services hero */
  .svc-hero { min-height: auto; }
  .svc-hero-inner {
    padding-top: calc(var(--nav-h) + 2.5rem);
    padding-bottom: 3rem;
  }
  .svc-hero h1 { font-size: clamp(2rem, 7vw, 3rem) !important; }
  .svc-hero-stats { gap: 1.5rem 2.5rem; margin-top: 2.5rem; padding-top: 2rem; }

  /* Section CTA row: add margin, keep horizontal */
  .svc-section-cta { margin-top: 2rem; }

  /* Grids: keep 2-col on portrait tablet */
  .caps-grid        { grid-template-columns: 1fr 1fr !important; }
  .modules-grid     { grid-template-columns: 1fr 1fr !important; }
  .foi-modules-grid { grid-template-columns: 1fr 1fr !important; }
  .foi-steps        { grid-template-columns: 1fr 1fr !important; }
  .threat-stat      { grid-template-columns: 1fr 1fr !important; }

  /* Trust bars */
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .svc-trust-inner { flex-direction: column; gap: .75rem; align-items: flex-start; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .footer-bottom-links { flex-wrap: wrap; gap: .6rem 1rem; }

  /* Page hero (policy/contact) */
  .page-hero { padding: calc(var(--nav-h) + 2rem) 0 2rem; }
  .page-hero h1 { font-size: 1.6rem; }

  /* Comparison table: right-fade scroll hint */
  .comp-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 48px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13,17,23,.9));
    pointer-events: none;
    border-radius: 0 24px 24px 0;
  }

  /* NS / FOI stats */
  .ns-stats { gap: 1.25rem 2rem; }
  .foi-stats { gap: 1rem 1.5rem; }

  /* EnigmaAI features */
  .enigma-features { grid-template-columns: 1fr !important; }
}

/* =========================================================
   600px -- LARGE MOBILE
   Everything single-column. Stats become card grids.
   CTAs remain horizontal (row rule from 992px holds).
   ========================================================= */
@media (max-width: 600px) {
  :root { --sv: 2.75rem; --cp: 1.125rem; }

  /* Logo */
  .nav-logo img { height: 36px; }

  /* Typography */
  .pd-h2 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  .dc-hero__title { font-size: clamp(1.7rem, 8vw, 2.2rem) !important; }
  .hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.6rem) !important; }
  .svc-hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.6rem) !important; }
  .page-hero h1 { font-size: 1.45rem; }

  /* Product heroes: compact */
  .dh-hero-content,
  .ns-hero-content,
  .foi-hero-content { padding: calc(var(--nav-h) + 2rem) var(--cp) 2rem; }
  .dh-hero h1,
  .ns-hero h1,
  .foi-hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem) !important; }
  .dh-hero-sub,
  .ns-hero-sub,
  .foi-hero-sub { font-size: .875rem !important; }

  /* All grids: single column */
  .products-grid, .services-grid, .cards-grid,
  .why-grid, .why-grid-home,
  .caps-grid, .modules-grid, .foi-modules-grid,
  .benefits-grid, .challenge-grid,
  .problem-stats, .stat-grid, .value-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .threat-stat { grid-template-columns: 1fr !important; }
  .enigma-features { grid-template-columns: 1fr !important; }
  .foi-steps { grid-template-columns: 1fr !important; }

  /* NS stats: prominent 2-col card grid */
  .ns-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
  .ns-stat-item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
  }
  .ns-stat-num { font-size: 1.4rem !important; }

  /* FOI stats: 2-col card grid */
  .foi-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
  .foi-stat-item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
  }
  .foi-stat-num { font-size: 1.25rem !important; }

  /* Threat stat numbers: prominent */
  .threat-stat-num { font-size: 1.75rem !important; }
  .threat-stat-card { padding: 1.25rem !important; }

  /* Card body padding */
  .product-card-body { padding: 1.25rem !important; }
  .svc-tile { padding: 1.25rem !important; }
  .why-card { padding: 1.25rem !important; }
  .why-card-home { padding: 1.25rem 1rem !important; }
  .cap-card, .module-card, .foi-module,
  .feat-card, .challenge-card { padding: 1.25rem !important; }
  .cap-title, .module-title, .foi-mod-title { font-size: 1rem !important; }

  /* Stat cards */
  .pstat { padding: 1rem 1.25rem; }
  .panel-stat-grid { grid-template-columns: 1fr 1fr; }

  /* Product card visual */
  .product-card-visual { height: 130px; font-size: 1.2rem; }

  /* Problem visual (live feed) */
  .problem-visual { padding: 1.25rem !important; }
  .pvis-row { padding: .75rem .9rem; gap: .75rem; }
  .attack-type { padding: .75rem !important; }
  .attack-icon { width: 34px; height: 34px; flex-shrink: 0; }

  /* How-it-works */
  .hiw-step { padding: 1rem !important; gap: .75rem; }

  /* Services hero stats */
  .svc-hero-stats { gap: 1.25rem 2rem; }

  /* Services trust bar */
  .svc-trust { display: flex !important; padding: 1rem 0; }
  .svc-trust-items { gap: .75rem 1.5rem; }

  /* Trust items */
  .trust-items { gap: .6rem 1.25rem; }

  /* Feat card icon */
  .feat-icon { width: 38px; height: 38px; flex-shrink: 0; }

  /* Home CTA note */
  .home-cta-note { flex-direction: column; gap: .2rem; text-align: center; }
  .home-cta-note .sep { display: none; }

  /* Services CTA note */
  .svc-cta-note { flex-direction: column; gap: .2rem; }
  .svc-cta-note .sep { display: none; }

  /* EnigmaAI section */
  .enigma-section { padding: 2.75rem 0; }
  .enigma-logo { width: 44px; height: 44px; font-size: .85rem; }
  .enigma-name { font-size: 1.4rem; }
  .enigma-feat { padding: 1.25rem !important; }
  .enigma-benefits li { padding: .4rem 0; font-size: .825rem; }

  /* Pain / benefit / value items */
  .pain-item { padding: 1rem 1.25rem !important; }
  .benefit-item, .value-item { padding: 1rem 1.25rem !important; }

  /* Repo pills */
  .repo-pill { padding: .75rem 1.125rem; font-size: .8rem; }

  /* Fault columns */
  .fault-col { padding: 1.25rem !important; }

  /* Contact */
  .form-card { padding: 1.5rem !important; border-radius: 20px !important; }
  .info-card { padding: 1.25rem !important; border-radius: 20px !important; }
  .contact-wrap { padding-top: 2rem !important; padding-bottom: 2rem !important; }

  /* Footer */
  .footer-bottom-links { gap: .5rem .85rem; }
  footer { padding-top: 3rem; }

  /* Policy */
  .policy-layout {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    gap: 1.25rem !important;
  }
}

/* =========================================================
   375px -- SMALL PHONE
   Maximum compression. CTAs still horizontal.
   ========================================================= */
@media (max-width: 375px) {
  :root { --sv: 2.25rem; --cp: 1rem; }

  .nav-logo img { height: 32px; }
  .pd-h2 { font-size: 1.35rem; }
  .dc-hero__title { font-size: 1.6rem !important; }
  .hero h1 { font-size: 1.75rem !important; }
  .svc-hero h1 { font-size: 1.65rem !important; }
  .dh-hero h1, .ns-hero h1, .foi-hero h1 { font-size: 1.65rem !important; }

  .svc-hero-stats { flex-direction: column; gap: 1rem; }

  /* Stats: single column on tiny screens */
  .ns-stats, .foi-stats { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links { gap: .4rem .75rem; }
}

/* -- Reduced-motion preference -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ================================================================
   HALLMARK v1.5 -- Density & Rhythm Refinement
   Scope: <= 992px only.
   Fixes: equal-height grid stretching, oversized card padding,
   icon spacing not reducing on tablet and mobile.
   ================================================================ */

/* =========================================================
   992px -- Natural card heights + tighter padding
   ========================================================= */
@media (max-width: 992px) {

  /* Grid natural heights: remove equal-row-height stretching */
  .caps-grid, .modules-grid, .foi-modules-grid,
  .benefits-grid, .challenge-grid, .why-grid,
  .why-grid-home, .threat-stat, .foi-steps,
  .enigma-features, .value-list, .products-grid,
  .services-grid, .cards-grid, .stat-grid,
  .problem-stats, .panel-stat-grid {
    align-items: start !important;
  }

  /* Card-padding variable: reduce from 1.75rem at tablet */
  :root { --card-padding: 1.25rem; }

  /* Cards with hardcoded padding (do not use --card-padding) */
  .cap-card         { padding: 1.5rem !important; }
  .module-card      { padding: 1.5rem !important; }
  .foi-module       { padding: 1.5rem !important; }
  .why-card         { padding: 1.5rem !important; }
  .benefit-item     { padding: 1.25rem !important; }
  .value-item       { padding: 1.25rem !important; }
  .pain-item        { padding: 1.25rem 1.5rem !important; }
  .enigma-feat      { padding: 1.25rem !important; }
  .threat-stat-card { padding: 1.25rem !important; }

  /* Icon vertical spacing: tighter at tablet */
  .cap-icon, .module-icon,
  .why-icon, .feat-icon { margin-bottom: .65rem !important; }
  .foi-mod-num { margin-bottom: .35rem !important; }

  /* Services: compact feature-list gap and split gap */
  .feat-list { gap: .65rem !important; }
  .svc-split { gap: 1.75rem !important; }

  /* Panel internal padding */
  .panel-body { padding: 1.25rem !important; }
  .p-stat     { padding: 1rem !important; }
  .llm-row    { padding: .75rem 1rem !important; }
}

/* =========================================================
   768px -- Further density: icon size + card padding
   ========================================================= */
@media (max-width: 768px) {

  /* Card-padding variable */
  :root { --card-padding: 1.125rem; }

  /* Icon sizes */
  .cap-icon    { width: 40px !important; height: 40px !important; }
  .module-icon { width: 40px !important; height: 40px !important; }
  .why-icon    { width: 36px !important; height: 36px !important; border-radius: 10px !important; }

  /* Icon vertical spacing */
  .cap-icon, .module-icon,
  .why-icon, .feat-icon { margin-bottom: .5rem !important; }

  /* Cards: continue reducing */
  .cap-card         { padding: 1.25rem !important; }
  .module-card      { padding: 1.25rem !important; }
  .foi-module       { padding: 1.25rem !important; }
  .why-card         { padding: 1.25rem !important; }
  .threat-stat-card { padding: 1.125rem !important; }

  /* Steps */
  .foi-step-num {
    width: 44px !important; height: 44px !important;
    font-size: 1.05rem !important; margin-bottom: 1rem !important;
  }
}

/* =========================================================
   600px -- Maximum density
   ========================================================= */
@media (max-width: 600px) {

  /* Card-padding variable */
  :root { --card-padding: 1rem; }

  /* Hardcoded padding: minimum comfortable touch padding */
  .cap-card      { padding: 1rem !important; }
  .module-card   { padding: 1rem !important; }
  .foi-module    { padding: 1rem !important; }
  .why-card      { padding: 1rem !important; }
  .why-card-home { padding: 1rem !important; }

  /* Icon sizes */
  .cap-icon    { width: 36px !important; height: 36px !important; }
  .module-icon { width: 36px !important; height: 36px !important; }
  .why-icon    { width: 32px !important; height: 32px !important; }

  /* Icon vertical spacing */
  .cap-icon, .module-icon,
  .why-icon, .feat-icon { margin-bottom: .4rem !important; }
  .foi-mod-num {
    margin-bottom: .25rem !important;
    font-size: 1.75rem !important;
  }

  /* Feature list gap */
  .feat-list { gap: .5rem !important; }

  /* Steps */
  .foi-step-num { width: 40px !important; height: 40px !important; font-size: 1rem !important; }
}
