/* ============================================================
   Printex — shadcn-style design system
   Inter typeface · slate neutrals · sky accent
   ============================================================ */

:root {
  /* shadcn-style tokens (HSL) */
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;        /* slate-900 */
  --muted: 210 40% 96%;             /* slate-100 */
  --muted-foreground: 215 16% 47%;  /* slate-500 */
  --card: 0 0% 100%;
  --border: 214 32% 91%;            /* slate-200 */
  --input: 214 32% 91%;
  --ring: 199 89% 48%;              /* sky-500 */
  --primary: 145 72% 25%;           /* sky-700-ish #0369a1 */
  --primary-600: 145 72% 30%;       /* sky-600 #0284c7 */
  --primary-foreground: 0 0% 100%;
  --accent: 204 94% 94%;            /* sky-100 */
  --accent-foreground: 201 96% 27%;
  --surface: 210 40% 98%;           /* slate-50 page bg */
  --radius: 0.6rem;
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.06);
  --shadow: 0 4px 14px -4px rgb(15 23 42 / 0.10), 0 2px 6px -2px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 18px 48px -12px rgb(15 23 42 / 0.22);
  --maxw: 1200px;
  --nav-h: 68px;
}

/* Product detail hero section with background image + overlay */
.product-hero {
    color: hsl(210 40% 92%);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/images/pageBanner.webp');
  background-size: cover;
  background-position: center;
}
.product-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,17,33,0.82) 0%, rgba(8,17,33,0.58) 40%, rgba(8,17,33,0.20) 100%),
    linear-gradient(0deg, rgba(8,17,33,0.45), rgba(8,17,33,0) 55%);
  pointer-events: none;
}
.product-hero .container { position: relative; z-index: 2; }
.product-hero .eyebrow { color: hsl(210 40% 80%); }
.product-hero h1, .product-hero .lead { color: hsl(210 40% 92%); }
.product-hero .btn-primary { background: linear-gradient(135deg, hsl(222 47% 11%), hsl(201 80% 18%)); color: #fff; }
.product-hero .btn-outline { background: transparent; color: hsl(210 40% 92%); border-color: rgba(255,255,255,0.08); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   Reusable content layout blocks
   ============================================================ */

.content-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
    align-items: start;
}

.image-gallery-wrap {
    position: relative;
}

.content-prose p {
    margin: 0;
    line-height: 1.6;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}


.image-gallery__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

@media (max-width: 768px) {
    .content-split {
        grid-template-columns: 1fr;
    }

    .content-split--mobile-media-first > :nth-child(1) {
        order: 2;
    }

    .content-split--mobile-media-first > :nth-child(2) {
        order: 1;
    }

    .image-gallery {
        grid-auto-flow: column;
        grid-auto-columns: 85%;
        grid-template-columns: unset;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        padding-bottom: 0.25rem;
        scroll-behavior: smooth;
    }

    .image-gallery__img {
        scroll-snap-align: start;
        aspect-ratio: 16 / 10;
    }

}

@media (max-width: 420px) {
    .image-gallery__img {
        aspect-ratio: 16 / 10;
    }
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: hsl(var(--primary-600));
}
.eyebrow::before { content: ""; width: 11px; height: 1.5px; background: hsl(var(--primary-600)); display: inline-block; }

.muted { color: hsl(var(--muted-foreground)); }
.lead { font-size: 19px; color: hsl(var(--muted-foreground)); line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .04s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: hsl(var(--primary-600)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--primary)); }
.btn-outline { background: hsl(var(--background)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-outline:hover { background: hsl(var(--muted)); }
.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--muted)); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

.icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; flex: none; }
.icon-lg { width: 20px; height: 20px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 60;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: saturate(180%) blur(3px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}

/* Reserve space for the fixed navbar so page content doesn't jump under it */
body { padding-top: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 3px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, hsl(var(--primary-600)), hsl(201 96% 24%));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand .mark::after { content: "P"; }

.nav-links { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 500; color: hsl(var(--foreground));
  transition: background .15s ease, color .15s ease; cursor: pointer;
}
.nav-link:hover { background: hsl(var(--muted)); }
.nav-link.active { color: hsl(var(--primary-600)); font-weight: 600; }
.nav-link .chev { width: 15px; height: 15px; transition: transform .2s ease; }
.nav-item.open .nav-link .chev { transform: rotate(180deg); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--background)); font-size: 13.5px; font-weight: 600; cursor: pointer;
  color: hsl(var(--foreground)); transition: background .15s;
}
.lang-btn:hover { background: hsl(var(--muted)); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 70;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; border: 0; background: none; text-align: left;
  color: hsl(var(--foreground));
}
.lang-opt:hover { background: hsl(var(--muted)); }
.lang-opt .code { font-size: 11px; font-weight: 700; color: hsl(var(--muted-foreground)); margin-left: auto; letter-spacing: .06em; }
.lang-opt.sel { color: hsl(var(--primary-600)); font-weight: 600; }
.lang-opt.sel .code { color: hsl(var(--primary-600)); }

/* ---------- Mega menu ---------- */
.mega-wrap {
  position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 55;
  display: flex; justify-content: center; padding: 0 24px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.mega-wrap.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.mega {
  width: 100%; max-width: 800px; margin-top: 10px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 22px;
  display: grid; grid-template-columns: 3.3fr 1fr 0.9fr; gap: 22px;
}
.mega-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: hsl(var(--muted-foreground)); margin: 2px 0 12px 8px;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-link {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 9px;
  transition: background .14s ease;
}
.mega-link:hover { background: hsl(var(--muted)); }
.mega-link .t { font-size: 14.5px; font-weight: 600; }
.mega-link .d { font-size: 12.5px; color: hsl(var(--muted-foreground)); line-height: 1.4; }
.mega-link.with-arrow .t { display: flex; align-items: center; gap: 6px; }
.mega-link.with-arrow:hover .t { color: hsl(var(--primary-600)); }
.mega-divider { width: 1px; background: hsl(var(--border)); }
.mega-feature {
  border-radius: 12px; overflow: hidden; border: 1px solid hsl(var(--border));
  display: flex; flex-direction: column;
}
.mega-feature .ph { flex: 1; min-height: 120px; border: 0; border-radius: 0; }
.mega-feature .cap { padding: 14px; }
.mega-feature .cap .t { font-weight: 700; font-size: 15px; }
.mega-feature .cap .d { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 4px; }

/* Mobile nav */
.hamburger { display: none; }
.mobile-menu { display: none; }

/* ============================================================
   PLACEHOLDER IMAGE
   ============================================================ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, hsl(210 30% 95%), hsl(210 30% 95%) 11px, hsl(210 28% 92%) 11px, hsl(210 28% 92%) 22px);
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: hsl(215 16% 55%); font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px; letter-spacing: .02em; text-align: center; padding: 18px; min-height: 200px;
}
.ph::before {
  content: "▢"; position: absolute; top: 12px; left: 14px; font-size: 14px; opacity: .5; font-family: monospace;
}
.ph span { background: hsl(var(--background) / .7); padding: 5px 10px; border-radius: 6px; }

/* ============================================================
   SECTIONS / LAYOUT HELPERS
   ============================================================ */
section { padding: 0; }
.section { padding: 84px 0; overflow-x: clip; position: relative; }
.section:not(.product-hero)::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 24px;
    width: 200px;
    height: 120px;
    background-image: radial-gradient(circle, hsl(var(--primary-600)) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.6;
    pointer-events: none;
}
.section-sm { padding: 56px 0; }
.section-tint { background: hsl(var(--background)); border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.section-tint .container {
  /* increase horizontal inset for sections so their inner card aligns with hero text */
  margin-bottom: 20px;
  position: relative;
}


.section-card {
  background: linear-gradient(180deg, hsl(var(--card) / 0.98), hsl(var(--card) / 0.96));
  border: 1px solid hsl(var(--border) / 0.28);
  box-shadow: 0 8px 24px rgba(15,23,42,0.05);
  position: relative; /* ensures corner marks inside align to the card */
  transition: transform .28s var(--spring, cubic-bezier(.22,.9,.26,1)), box-shadow .28s ease;
  overflow: visible;
}

.section-card::before {
  left: 12px;
  top: 12px;
  background-image:
    linear-gradient(to right, hsl(var(--primary-600)) 0 100%),
    linear-gradient(to bottom, hsl(var(--primary-600)) 0 100%);
  background-repeat: no-repeat;
  background-size: 25px 3px, 3px 25px;
  background-position: 0 0, 0 0;
  border-radius: 2px;
}

@media (max-width: 730px) {
  .section-card::before,
  .section-card::after { display: none; }
}

/* Decorative edge marks — a subtle vertical bar with small horizontal ticks at the top and bottom.
   Apply to a container by adding the helper class (e.g. .card.has-edge) and place an .edge-mark element
   inside it. The marks are hidden on small screens for responsiveness. */
.card.has-edge { position: relative; }
/* remove blue edge marks — not needed */
.edge-mark { display: none !important; }

@media (max-width: 720px) {
  .edge-mark { display: none; }
}


.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-pad { padding: 26px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
}
.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border-radius: 999px; font-size: 13px; font-weight: 500;
  background: hsl(var(--muted)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border));
}

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: hsl(var(--muted-foreground)); flex-wrap: wrap; }
.breadcrumb a:hover { color: hsl(var(--primary-600)); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: hsl(var(--foreground)); font-weight: 600; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); }
.hero .lead { max-width: 640px; margin-top: 22px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* Full-bleed band: breaks out of the container to span the viewport width */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Overlay hero: full-width image with text sitting on top, inset to the container */
.hero-overlay { position: relative; display: flex; align-items: center; min-height: clamp(500px, 70vh, 300px); overflow: hidden; }
.hero-overlay-media {
  position: absolute; inset: 0; z-index: 1;
  background:
    repeating-linear-gradient(45deg, hsl(210 30% 95%), hsl(210 30% 95%) 11px, hsl(210 28% 92%) 11px, hsl(210 28% 92%) 22px);
  background-size: cover; background-position: center; background-image: url('/images/hero-banner.webp')
}
.hero-overlay-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(8,17,33,0.82) 0%, rgba(8,17,33,0.58) 40%, rgba(8,17,33,0.20) 100%),
    linear-gradient(0deg, rgba(8,17,33,0.45), rgba(8,17,33,0) 55%);
}
.hero-overlay-inner { position: relative; z-index: 3; padding-top: 40px; padding-bottom: 40px; }
.hero-overlay-inner, .hero-overlay-inner h1 { color: #fff; }
.hero-overlay-inner .lead { color: rgba(255,255,255,0.88); max-width: 600px; }
.hero-overlay-inner .eyebrow { color: hsl(199 92% 76%); }
.hero-overlay-inner .eyebrow::before { background: hsl(199 92% 76%); }
.hero-overlay-inner .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.40); }
.hero-overlay-inner .btn-outline:hover { background: rgba(255,255,255,0.12); }
.hero-overlay .cap {
  position: absolute; right: 16px; bottom: 14px; z-index: 3;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: hsl(215 16% 50%);
  background: rgba(255,255,255,0.72); padding: 5px 10px; border-radius: 6px;
}

/* Feature / capability card */
.feat { padding: 10px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); transition: box-shadow .18s, transform .18s, border-color .18s; display: block; }
a.feat:hover { box-shadow: var(--shadow); border-color: hsl(var(--primary-600) / .4); }
.feat .ic { width: 44px; height: 44px; border-radius: 11px; background: hsl(var(--accent)); display: grid; place-items: center; color: hsl(var(--primary-600)); margin-bottom: 16px; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat .arr { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; float: inline-end; font-size: 13.5px; font-weight: 600; color: hsl(var(--primary-600)); }
a.feat:hover .arr { gap: 10px; }



/* Properties list */
.props { display: grid; gap: 0; }
.prop { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid hsl(var(--border)); align-items: flex-start; }
.prop:last-child { border-bottom: 0; }
.prop .pi { width: 24px; height: 24px; color: hsl(var(--primary-600)); flex: none; margin-top: 1px; }
.prop .pt { font-weight: 600; font-size: 15px; }
.prop .pd { font-size: 14px; color: hsl(var(--muted-foreground)); margin-top: 2px; }

/* spec table */
.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec td { padding: 13px 0; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
.spec td:first-child { color: hsl(var(--muted-foreground)); width: 42%; }
.spec td:last-child { font-weight: 600; }
.spec tr:last-child td { border-bottom: 0; }

/* CTA band */
.cta {
  background: linear-gradient(135deg, hsl(222 47% 11%), hsl(201 80% 18%));
  color: #fff; border-radius: 18px; padding: 52px; text-align: center;
}
.cta h2 { font-size: clamp(26px, 3.5vw, 38px); color: #fff; }
.cta p { color: hsl(210 40% 80%); margin-top: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta .hero-actions { justify-content: center; }
.cta .btn-outline { background: transparent; color: #fff; border-color: hsl(0 0% 100% / .3); }
.cta .btn-outline:hover { background: hsl(0 0% 100% / .1); }

/* Form */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field .req { color: hsl(0 72% 51%); }
.input, .textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: hsl(var(--foreground));
  background: hsl(var(--background)); border: 1px solid hsl(var(--input)); border-radius: var(--radius);
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / .18); }
.textarea { resize: vertical; min-height: 130px; }

/* Contact info rows */
.cinfo { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid hsl(var(--border)); align-items: flex-start; }
.cinfo:last-child { border-bottom: 0; }
.cinfo .ci { width: 40px; height: 40px; border-radius: 10px; background: hsl(var(--muted)); display: grid; place-items: center; color: hsl(var(--primary-600)); flex: none; }
.cinfo .cl { font-size: 12.5px; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cinfo .cv { font-size: 15px; font-weight: 600; margin-top: 2px; }
.cinfo .cv a:hover { color: hsl(var(--primary-600)); }

/* ============================================================
   FOOTER
   ============================================================ */


.footer {
  background-image:
    radial-gradient(800px 360px at 12% 14%, rgba(120,170,210,0.22), rgba(0,0,0,0) 42%),
    linear-gradient(180deg, #1f3348 0%, #16283b 36%, #0e2434 68%, #071122 100%);
  background-color: #071122; /* fallback */
  background-blend-mode: screen, normal;
  color: hsl(210 40% 92%);
  box-shadow: inset 0 8px 16px -8px rgba(0,0,0,0.32);
  margin-top: 0;
}
.footer-top { padding: 64px 24px 44px 24px; display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr; gap: 40px; text-align: center; }
.footer-about { font-size: 14px; margin-top: 16px; max-width: 320px; line-height: 1.6; }
.footer h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: hsl(210 30% 62%); font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; padding-top: 10px }
.footer-links a { font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.req-row { font-size: 13.5px; line-height: 1.5; margin-bottom: 9px; }
.req-row b { font-weight: 600; }
.req-row--flex { display: flex; align-items: center; gap: 10px; justify-content: center; }
.req-row__cell { margin-left: 6px; }
.footer-col--wide { width: 100%; max-width: 420px; }

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-col--wide { max-width: 100%; }
  .req-row--flex { display: flex; flex-wrap: wrap; }
  .req-row__cell { margin-left: 0; }
}
.footer-bottom { border-top: 1px solid hsl(210 30% 22%); padding: 20px 24px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid hsl(var(--border)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid hsl(var(--border));
    background: hsl(var(--background)); cursor: pointer; color: hsl(var(--foreground));
  }
  .nav-right { margin-left: auto; }
  .mega-wrap { display: none !important; }
  .mobile-menu {
    display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 54;
    background: hsl(var(--background)); overflow-y: auto; padding: 16px 24px 48px;
    border-top: 1px solid hsl(var(--border));
  }
  .mobile-menu.open { display: block; }
  .mm-item { border-bottom: 1px solid hsl(var(--border)); }
  .mm-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 17px; font-weight: 600; cursor: pointer; }
  .mm-sub { display: none; padding: 0 4px 14px; }
  .mm-item.open .mm-sub { display: block; }
  .mm-sub-head { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); font-weight: 700; margin: 8px 0; }
  .mm-sub a { display: block; padding: 10px 0; font-size: 15.5px; color: hsl(var(--muted-foreground)); }
  .mm-chev { transition: transform .2s; }
  .mm-item.open .mm-chev { transform: rotate(180deg); }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 36px 24px; }
  .split { grid-template-columns: 1fr !important; }
}

/* Split layout (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.wide-text { grid-template-columns: 0.9fr 1.1fr; }
.stack-gap > * + * { margin-top: 16px; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.section-head .lead { margin-top: 14px; }

/* Feature rows with image + text */
.feature-row { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse .feat-media { direction: ltr; }
.feat-media { width: 100%; }
.feature-img { width: 100%; height: 450px; object-fit: cover; display: block; }

@media (max-width: 1005px) {
  .feature-row { grid-template-columns: 1fr; }
  .feat-media { display: none; }
}

.feat-content {
    padding: 20px;
}

/* About page simplified rows */
.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.about-row:last-child {
    margin-bottom: 0;
}

.about-row--reverse {
    direction: rtl;
}

.about-row--reverse > * {
    direction: ltr;
}

.about-row__img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.about-row__text h2 {
    margin-bottom: 1rem;
}

@media (max-width: 1120px) {
    .about-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-row--reverse {
        direction: ltr;
    }

    .about-row__img {
        display: none;
    }
}

/* Fade-in animations: elements start hidden and animate when .in-view is added */
@media (prefers-reduced-motion: reduce) {
  .fade-in-left,
  .fade-in-right,
  .fade-in-up {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Initial hidden state */
.fade-in-left, .fade-in-right, .fade-in-up {
  opacity: 0;
  will-change: opacity, transform;
}

.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }
.fade-in-up { transform: translateY(18px); }

/* Animate when JS adds .in-view */
.fade-in-left.in-view { animation: fadeInLeft 1200ms ease-out forwards; }
.fade-in-right.in-view { animation: fadeInRight 1200ms ease-out forwards; }
.fade-in-up.in-view { animation: fadeInUp 1200ms cubic-bezier(.22,.9,.26,1) forwards; }

@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
