/* ============================================================
   BATCHIFY – ENHANCED STYLESHEET
   Aesthetic: Industrial precision · Dark navy · Sharp amber
   Fonts: Syne (display) + IBM Plex Mono (code/labels) + DM Sans (body)
   Enhanced: Generative SVG textures · Full-width layout · Side fills
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --navy:        #09101f;
  --navy-2:      #0e1a30;
  --navy-3:      #152237;
  --navy-4:      #1c2f48;
  --navy-5:      #243858;

  --amber:       #f59e0b;
  --amber-2:     #fbbf24;
  --amber-dark:  #d97706;
  --amber-glow:  rgba(245,158,11,0.18);

  --cyan:        #22d3ee;
  --cyan-dim:    rgba(34,211,238,0.12);

  --white:       #ffffff;
  --off-white:   #e8edf5;
  --muted:       #7a8faa;
  --muted-2:     #4d6180;

  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);

  --text:        #d4dde9;
  --text-strong: #e8edf5;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   22px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 32px rgba(245,158,11,0.15);

  /* legacy compat */
  --accent-blue: var(--cyan);
  --accent:      var(--amber);
  --bg-white:    var(--navy-3);
  --bg:          var(--navy);
}

/* ── RESET & BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-y: scroll; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Generative dot grid background for body */
  background-image:
    radial-gradient(circle, rgba(245,158,11,0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(34,211,238,0.03) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.4rem; font-weight: 800; }
h2 { font-size: 1.7rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { color: var(--text); }
strong { color: var(--amber); font-weight: 600; }

a { color: var(--amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber-2); }

.large-h1 { font-size: 2rem; font-weight: 800; }
.large-h2 { font-size: 1.15rem; font-weight: 700; color: var(--text-strong); }
.large-h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 28px 0 10px;
}

/* ── HEADER ─────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(9,16,31,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-flex {
  max-width: 1200px;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon { height: 36px; width: auto; border-radius: var(--radius-sm); }

.brand-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white);
}

nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

nav > a, nav > .dropdown > a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--off-white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

nav > a:hover, nav > .dropdown > a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

/* ── DROPDOWN ───────────────────────────────────────── */
.dropdown { position: relative; z-index: 3000; }

.dropdown-toggle::after {
  content: "▾";
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.2s;
}
.dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 0;
  left: 0;
  background: var(--navy-2);
  border: 1px solid var(--border-2);
  padding: 8px;
  border-radius: var(--radius-md);
  min-width: 240px;
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:all .18s ease;
  pointer-events:none;
  z-index: 2000;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto; }

.submenu {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.submenu > span {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  display: block;
}

.submenu span::after {
  content: "▸";
  float: right;
  font-size: 12px;
  opacity: 0.4;
}

.submenu:hover { background: rgba(255,255,255,0.04); }

.submenu-items {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0;
  background: var(--navy-2);
  border: 1px solid var(--border-2);
  padding: 8px;
  border-radius: var(--radius-md);
  min-width: 280px;
  display: none;
  z-index: 2000;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.dropdown:last-child .submenu-items {
  left: auto;
  right: calc(100% + 4px);
}

.submenu:hover .submenu-items,
.submenu:focus-within .submenu-items { display: block; }

.submenu-items a {
  display: block;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--off-white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s;
}

.submenu-items a:hover {
  background: rgba(245,158,11,0.08);
  color: var(--amber);
}

.dropdown::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:12px;
}

.dropdown-menu > a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--amber);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s;
}

.dropdown-menu > a:hover {
  background: var(--amber-glow);
}

/* ── HERO ───────────────────────────────────────────── */
.hero, .hero-dark {
  background:
    radial-gradient(ellipse 80% 50% at 60% -10%, rgba(245,158,11,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(34,211,238,0.05) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 50%, #0b1829 100%);
  padding: 48px 24px 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 44px;
}

.hero-top-title {
  padding: 24px 24px 0;
  max-width: 1600px;
  margin: auto;
}

.hero-pretitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.55rem;
padding: 0 0 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 1;
}

.hero-copy {
  flex: 0 0 46%;
  min-width: 0;
  padding: 32px 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--amber);
  display: block;
  font-size: 1.5rem;
}

.hero-title small {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 10px;
  font-family: 'DM Sans', sans-serif;
}

.hero-title-center {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-strong);
  margin: 0 auto;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-title-center small {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 10px;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 22px;
}

.hero-badges li {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--text);
  font-size: 0.8rem;
  padding: 4px 11px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.03em;
  transition: all 0.15s;
}

.hero-badges li:hover {
  background: rgba(245,158,11,0.14);
  color: var(--amber-2);
}

.cta-block { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn.primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: #09101f;
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--amber-2) 0%, var(--amber) 100%);
  box-shadow: 0 6px 24px rgba(245,158,11,0.45);
  transform: translateY(-1px);
  color: #09101f;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--off-white);
}

.btn.secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-glow);
}

/* ── IMAGE VIEWER ───────────────────────────────────── */
.hero-visual { flex: 1.2; max-width: 720px; position: relative; z-index: 1; }

.image-viewer {
  position: relative;
width: 100%;
  max-width: 1280px;
  height: auto;
  border-radius: var(--radius-x4);
  overflow: hidden;
  border: 0px solid var(--border-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.1);
  background: var(--navy-3);
}

.image-viewer input[type="radio"] { display: none; }

.image-viewer .images {
  display: flex;
  width: 500%;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.image-viewer .images img {
  width: 20%;
  height: auto;
  display: block;
}

#img1:checked ~ .images { transform: translateX(0); }
#img2:checked ~ .images { transform: translateX(-20%); }
#img3:checked ~ .images { transform: translateX(-40%); }
#img4:checked ~ .images { transform: translateX(-60%); }
#img5:checked ~ .images { transform: translateX(-80%); }

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background: rgba(9,16,31,0.8);
  border: 1px solid var(--border-2);
  color: var(--amber);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.nav:hover { background: var(--amber-glow); border-color: var(--amber); }
.prev { left: 12px; }
.next { right: 12px; }

.prev1,.prev2,.prev3,.prev4,.prev5 { left: 12px; }
.next1,.next2,.next3,.next4,.next5 { right: 12px; }

#img1:checked ~ .nav { }
#img2:checked ~ .prev1 { display: none; }
#img1:checked ~ .prev2 { display: none; }
#img1:checked ~ .prev1, #img2:checked ~ .prev2,
#img3:checked ~ .prev3, #img4:checked ~ .prev4, #img5:checked ~ .prev5 { display: flex; }

[for="img1"].prev1,
[for="img2"].prev2,
[for="img3"].prev3,
[for="img4"].prev4,
[for="img5"].prev5 { display: none; }

#img1:checked ~ [for="img1"].prev1 { display: none; }

/* Show correct nav per slide */
.nav.prev1, .nav.prev2, .nav.prev3, .nav.prev4, .nav.prev5 { display: none; }
.nav.next1, .nav.next2, .nav.next3, .nav.next4, .nav.next5 { display: none; }

#img1:checked ~ .prev1 { display: flex; }
#img1:checked ~ .next1 { display: flex; }
#img2:checked ~ .prev2 { display: flex; }
#img2:checked ~ .next2 { display: flex; }
#img3:checked ~ .prev3 { display: flex; }
#img3:checked ~ .next3 { display: flex; }
#img4:checked ~ .prev4 { display: flex; }
#img4:checked ~ .next4 { display: flex; }
#img5:checked ~ .prev5 { display: flex; }
#img5:checked ~ .next5 { display: flex; }

/* ── PAGE LAYOUT WITH SIDE TEXTURES ─────────────────── */
.page-content {
  margin-top: 0;
  position: relative;
}

/* Side texture panels - appear on wide screens */
.page-content::before,
.page-content::after {
  content: '';
  position: fixed;
  top: 64px;
  bottom: 0;
  width: calc((100vw - 1200px) / 2 - 12px);
  pointer-events: none;
  z-index: 0;
}

.page-content::before {
  left: 0;
}

.page-content::after {
  right: 0;
}

/* ── GENERATIVE SVG SIDE FILLS ──────────────────────── */
/* Applied per page via body class */

/* Image converter pages - circuit/grid pattern */
body.page-converter .page-content::before,
body.page-converter .page-content::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='400'%3E%3Cdefs%3E%3Cpattern id='circuit' x='0' y='0' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Crect width='40' height='40' fill='%230e1a30'/%3E%3Ccircle cx='20' cy='20' r='2' fill='none' stroke='%23f59e0b' stroke-width='0.5' opacity='0.3'/%3E%3Cline x1='20' y1='0' x2='20' y2='8' stroke='%23f59e0b' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='20' y1='32' x2='20' y2='40' stroke='%23f59e0b' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='0' y1='20' x2='8' y2='20' stroke='%2322d3ee' stroke-width='0.5' opacity='0.15'/%3E%3Cline x1='32' y1='20' x2='40' y2='20' stroke='%2322d3ee' stroke-width='0.5' opacity='0.15'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='400' fill='url(%23circuit)'/%3E%3C/svg%3E") repeat;
}

/* RAW converter - hexagonal pattern */
body.page-raw .page-content::before,
body.page-raw .page-content::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='140'%3E%3Cpolygon points='30,5 55,20 55,50 30,65 5,50 5,20' fill='none' stroke='%23f59e0b' stroke-width='0.6' opacity='0.15'/%3E%3Cpolygon points='90,5 115,20 115,50 90,65 65,50 65,20' fill='none' stroke='%2322d3ee' stroke-width='0.6' opacity='0.1'/%3E%3Cpolygon points='30,75 55,90 55,120 30,135 5,120 5,90' fill='none' stroke='%2322d3ee' stroke-width='0.6' opacity='0.12'/%3E%3Cpolygon points='90,75 115,90 115,120 90,135 65,120 65,90' fill='none' stroke='%23f59e0b' stroke-width='0.6' opacity='0.1'/%3E%3Crect width='120' height='140' fill='%230e1a30'/%3E%3Cpolygon points='30,5 55,20 55,50 30,65 5,50 5,20' fill='none' stroke='%23f59e0b' stroke-width='0.6' opacity='0.15'/%3E%3Cpolygon points='90,5 115,20 115,50 90,65 65,50 65,20' fill='none' stroke='%2322d3ee' stroke-width='0.6' opacity='0.1'/%3E%3Cpolygon points='30,75 55,90 55,120 30,135 5,120 5,90' fill='none' stroke='%2322d3ee' stroke-width='0.6' opacity='0.12'/%3E%3Cpolygon points='90,75 115,90 115,120 90,135 65,120 65,90' fill='none' stroke='%23f59e0b' stroke-width='0.6' opacity='0.1'/%3E%3C/svg%3E") repeat;
}

/* Renamer - diagonal lines pattern */
body.page-renamer .page-content::before,
body.page-renamer .page-content::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect width='60' height='60' fill='%230e1a30'/%3E%3Cline x1='0' y1='60' x2='60' y2='0' stroke='%23f59e0b' stroke-width='0.5' opacity='0.15'/%3E%3Cline x1='-20' y1='60' x2='40' y2='0' stroke='%2322d3ee' stroke-width='0.3' opacity='0.1'/%3E%3Cline x1='20' y1='60' x2='80' y2='0' stroke='%2322d3ee' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E") repeat;
}

/* Legal/info pages - subtle dots */
body.page-legal .page-content::before,
body.page-legal .page-content::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect width='30' height='30' fill='%230e1a30'/%3E%3Ccircle cx='15' cy='15' r='1' fill='%23f59e0b' opacity='0.2'/%3E%3C/svg%3E") repeat;
}

/* How-to / guide pages - step arrows */
body.page-guide .page-content::before,
body.page-guide .page-content::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='80'%3E%3Crect width='50' height='80' fill='%230e1a30'/%3E%3Cpolyline points='10,20 25,10 40,20' fill='none' stroke='%23f59e0b' stroke-width='0.8' opacity='0.18'/%3E%3Cpolyline points='10,45 25,35 40,45' fill='none' stroke='%2322d3ee' stroke-width='0.8' opacity='0.12'/%3E%3Cpolyline points='10,70 25,60 40,70' fill='none' stroke='%23f59e0b' stroke-width='0.8' opacity='0.1'/%3E%3C/svg%3E") repeat;
}

/* Products page - diamond grid */
body.page-products .page-content::before,
body.page-products .page-content::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Crect width='50' height='50' fill='%230e1a30'/%3E%3Cpolygon points='25,5 45,25 25,45 5,25' fill='none' stroke='%23f59e0b' stroke-width='0.6' opacity='0.15'/%3E%3C/svg%3E") repeat;
}

/* FAQ page - question marks pattern */
body.page-faq .page-content::before,
body.page-faq .page-content::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect width='60' height='60' fill='%230e1a30'/%3E%3Ctext x='30' y='38' font-family='serif' font-size='28' fill='%23f59e0b' opacity='0.08' text-anchor='middle'%3E%3F%3C/text%3E%3C/svg%3E") repeat;
}

/* Gradient overlay on sides for smooth blend */
.page-content::before {
  mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

.page-content::after {
  mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

/* Only show on wide screens */
@media (max-width: 1280px) {
  .page-content::before,
  .page-content::after { display: none; }
}

/* ── CONTAINER & SECTIONS ───────────────────────────── */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.section:hover { border-color: rgba(245,158,11,0.15); }

/* Subtle inner glow */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.2), transparent);
  pointer-events: none;
}

/* ── FEATURE LIST ───────────────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.9rem;
}

.feature-list li a { color: var(--amber); }
.feature-list li a:hover { color: var(--amber-2); }

/* ── LEGAL CARD ─────────────────────────────────────── */
.legal-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

.legal-card h2 {
  font-size: 1.25rem;
  color: var(--amber);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card p { margin-bottom: 14px; line-height: 1.75; }

.legal-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legal-card ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.93rem;
}

.legal-card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--amber);
}

/* ── FEATURE ROW ────────────────────────────────────── */
.feature-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px;
  background: var(--navy-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-card);
}

.feature-row div {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

/* ── DOWNLOAD CARD ──────────────────────────────────── */
/* CARD */
.download-card {
  width: 125%;          /* full inside container */
  max-width: 1400px;     /* card size */
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-card:hover {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 0 32px rgba(245,158,11,0.07);
}

.download-card h3 { color: var(--amber); }
.download-card p { color: var(--muted); }
.download-card .btn { margin-top: 4px; text-align: center; }

.product-layout{
    display:flex;
    gap:30px;
    align-items:flex-start;
    justify-content:space-between;
    margin-top:15px;
}

.product-layout .badges{
    flex:1;
}

.product-image-box{
    width:350px;
    height:100%;
    flex-shrink:0;
    display:flex;
    align-items:flex-end;
    justify-content:center;
}

.product-image-box img{
    width:350px;
    height:300px;
    object-fit:cover;
    object-position:bottom;
    display:block;
    filter:drop-shadow(0 15px 30px rgba(0,0,0,0.45));
    transition:0.3s;
}

/* Mobile */
@media(max-width:900px){

.product-layout{
    flex-direction:column;
    align-items:center;
}

.product-image-box{
    width:220px;
    margin-top:15px;
}

}

/* ── BADGES (product feature pills) ────────────────── */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.badges span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-strong);
  background: var(--navy-3);
  border: 1px solid var(--border-2);
  padding: 5px 11px;
  border-radius: 4px;
  transition: all 0.15s;
}

.badges span:hover {
  border-color: rgba(245,158,11,0.4);
  color: var(--amber);
  background: var(--amber-glow);
}

/* ── HOW-TO STEPS ───────────────────────────────────── */
.howto-steps { display: grid; gap: 36px; }

.step-item { position: relative; }

.step-item h3 {
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: 10px;
}

.step-item p { color: var(--text); line-height: 1.7; }

.step-item img {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s;
}

.step-item img:hover { transform: scale(1.01); }

/* ── COMPARISON TABLE ───────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.9rem;
}

.comparison-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--navy-3);
}

.comparison-table td { color: var(--text); }

/* ── DEMO VIDEOS ────────────────────────────────────── */
.demo-videos h2 { text-align: center; }
.demo-videos .center { text-align: center; color: var(--muted); margin-top: 8px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.video-card { text-align: center; }
.video-card h4 { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }

.video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  border-radius: var(--radius-md);
  background: var(--navy-3);
  border: 1px solid var(--border-2);
  color: var(--amber);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.video-link::before {
  content: '▶';
  margin-right: 10px;
  font-size: 1.1rem;
}

.video-link:hover {
  background: var(--amber-glow);
  border-color: rgba(245,158,11,0.4);
  color: var(--amber-2);
  transform: translateY(-2px);
}

/* ── REVIEW FORM ────────────────────────────────────── */
.review-form {
  max-width: 480px;
  margin: auto;
  display: grid;
  gap: 12px;
}

.review-form input,
.review-form select,
.review-form textarea {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--navy-3);
  border: 1px solid var(--border-2);
  color: var(--text-strong);
  outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  width: 100%;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus { border-color: var(--amber); }

.review-form select option { background: var(--navy-3); }

.review-form textarea { height: 120px; resize: vertical; }

.review-form button { font-size: 0.92rem; }

.review-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
  transition: border-color 0.2s;
}

.review-card:hover { border-color: rgba(245,158,11,0.3); }
.review-card strong { color: var(--amber); font-size: 0.95rem; }
.review-card p { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* ── FAQ ────────────────────────────────────────────── */
.faq-search-wrapper {
  max-width: 420px;
  width: 100%;
  margin: 20px auto;
}

#faqSearch {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-size: 0.9rem;
  background: var(--navy-3);
  color: var(--text-strong);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}

#faqSearch::placeholder { color: var(--muted); }
#faqSearch:focus { border-color: var(--amber); }

.faq-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-top: 20px;
}

.faq-item p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 6px;
}

/* ── FEATURE CARDS (animated border) ───────────────── */
.features-grid { display: grid; gap: 16px; }

.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--navy-2);
  border: 1px solid var(--border);
  z-index: 1;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(245,158,11,0.3);
}

.card h3 {
  font-size: 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.card p { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }

/* ── SECTION DIVIDER ────────────────────────────────── */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 32px 0;
}

/* ── RAW TEXT ───────────────────────────────────────── */
.raw-text { line-height: 1.7; color: var(--text); }
.inline-link { white-space: nowrap; color: var(--amber); }

/* ── SMALL IMG ──────────────────────────────────────── */
.small-img { max-width: 100%; height: auto; }

/* ── FOOTER ─────────────────────────────────────────── */
.footer-premium {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding: 36px 0 0;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  padding: 0 24px;
}

.footer-column {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-column a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-column a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: 28px;
  padding: 16px 0;
  text-align: center;
  color: var(--muted-2);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
}

/* PRODUCTS PAGE */
.download-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers cards */
  gap: 24px;
}

/* ── SHARE BUTTONS ──────────────────────────────────── */
.share-buttons a { margin: 8px; font-size: 20px; color: var(--muted); }
.share-buttons a:hover { color: var(--amber); }

/* ── REQUIREMENTS LIST ──────────────────────────────── */
.requirements ul { list-style: none; padding-left: 0; }
.requirements ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  color: var(--text);
}
.requirements ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 600;
}

/* ── SELL SECTION - Attractive product selling areas ── */
.sell-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(34,211,238,0.06) 100%);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 28px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sell-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23f59e0b' stroke-width='0.5' opacity='0.12'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%2322d3ee' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E") center / 120px 120px;
  pointer-events: none;
}

.sell-banner h2 {
  font-size: 1.8rem;
  color: var(--text-strong);
  margin-bottom: 12px;
  position: relative;
}

.sell-banner p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 20px;
  font-size: 1rem;
  position: relative;
}

.sell-banner .btn { position: relative; }

.stat-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.stat-item {
  background: var(--navy-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  text-align: center;
  min-width: 120px;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-item:hover {
  border-color: rgba(245,158,11,0.35);
  transform: translateY(-2px);
}

.stat-item .stat-val {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.stat-item .stat-label {
  display: block;
  font-size: 0.78rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.feature-pills span {
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ── SUPPORT / HERO SECTIONS ────────────────────────── */
.hero-content-center {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 0 16px;
}

/* ── FEATURED CARD (highlighted product card) ───────── */
.featured-card {
  border-color: rgba(245,158,11,0.35) !important;
  box-shadow: 0 0 32px rgba(245,158,11,0.1) !important;
}

/* ── GRID UTILITIES ─────────────────────────────────── */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { flex-direction: column; gap: 28px; }
  .hero-copy { padding: 24px; }
  .hero-copy h1 { font-size: 1.5rem; }
  .feature-row { flex-direction: column; padding: 20px; gap: 20px; text-align: center; }
  .feature-row img { width: 100%; max-width: 340px; }
  .footer-container { flex-direction: column; gap: 12px; }
  .hero-title { font-size: 1.7rem; }
  .download-card { border-radius: var(--radius-lg) !important; }
  .stat-row { gap: 12px; }
  .legal-card { padding: 24px 20px; }
}

@media (max-width: 650px) {
  nav { flex-wrap: wrap; gap: 4px; justify-content: center; }
  nav > a, nav > .dropdown > a { font-size: 0.82rem; padding: 5px 10px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .container-main { padding: 0 14px; }
  .hero { padding: 32px 14px; }
  .section { padding: 22px 18px; margin: 16px 0; }
  .hero-title-center { font-size: 1.5rem; }
  .image-viewer { border-radius: var(--radius-md); }
  .sell-banner { padding: 24px 16px; }
  .sell-banner h2 { font-size: 1.4rem; }
}

/* nav bar overflow fix for mobile */
@media (max-width: 500px) {
  .brand-text { display: none; }
}

/* ── DOWNLOAD BTN ───────────────────────────────────── */
.download-btn {
  display: block;
  text-align: center;
  width: 100%;
}
