/* ============================================================
   APPLORE TECHNOLOGIES — DESIGN SYSTEM v2
   Aesthetic: Deep Ink + Warm Amber · Editorial Premium B2B
   Fonts: Fraunces (display) + Plus Jakarta Sans (body) + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Ink palette */
  --ink-950: #080d17;
  --ink-900: #0e1626;
  --ink-800: #152035;
  --ink-700: #1c2d4a;
  --ink-600: #243a5e;
  --ink-500: #2e4d7a;
  --ink-400: #4169a0;
  --ink-300: #7395c4;
  --ink-200: #afc4e0;
  --ink-100: #dce8f5;
  --ink-50:  #f0f6ff;
  /* Amber accent */
  --amber-700: #8a4f00;
  --amber-600: #b06700;
  --amber-500: #d48200;
  --amber-400: #e89d1a;
  --amber-300: #f5b833;
  --amber-200: #fad57a;
  --amber-100: #fef5d9;
  /* Neutrals */
  --white:     #ffffff;
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  /* Semantic */
  --bg:        #ffffff;
  --bg-subtle: #fafaf9;
  --bg-muted:  #f5f5f4;
  --border:    #eae7e3;
  --border-md: #d6d3d1;
  --text:      #1c1917;
  --text-2:    #44403c;
  --text-3:    #78716c;
  --text-4:    #a8a29e;
  --primary:      var(--ink-500);
  --primary-dk:   var(--ink-600);
  --primary-lt:   var(--ink-50);
  --accent:       var(--amber-400);
  --accent-dk:    var(--amber-600);
  --accent-lt:    var(--amber-100);
  --green:        #059669;
  --green-lt:     #d1fae5;
  --red:          #dc2626;
  --red-lt:       #fee2e2;
  /* Typography */
  --f-display: 'Fraunces', Georgia, serif;
  --f-body:    'Plus Jakarta Sans', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;
  /* Layout */
  --nav-h:     72px;
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius:    13px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(8,13,23,.04);
  --shadow-sm: 0 2px 6px rgba(8,13,23,.07), 0 1px 2px rgba(8,13,23,.04);
  --shadow:    0 6px 20px rgba(8,13,23,.08), 0 2px 6px rgba(8,13,23,.04);
  --shadow-md: 0 12px 36px rgba(8,13,23,.10), 0 4px 10px rgba(8,13,23,.05);
  --shadow-lg: 0 24px 60px rgba(8,13,23,.12), 0 6px 16px rgba(8,13,23,.06);
  --shadow-xl: 0 40px 80px rgba(8,13,23,.16), 0 10px 24px rgba(8,13,23,.08);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--f-body); cursor: pointer; border: none; }
input, textarea, select { font-family: var(--f-body); }
::selection { background: var(--ink-200); color: var(--ink-900); }

/* ── Navigation ───────────────────────────────────────────── */
.ap-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(234,231,227,0.8);
  transition: box-shadow .3s, border-color .3s;
}
.ap-nav.scrolled { box-shadow: 0 2px 20px rgba(8,13,23,.08); border-bottom-color: var(--border-md); }
.ap-nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 44px; height: 100%; display: flex; align-items: center; }
.ap-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; margin-right: 52px; }
.ap-logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-500));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 19px; color: white;
  box-shadow: 0 3px 12px rgba(14,22,38,.3);
}
.ap-logo-text { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--ink-900); letter-spacing: -.025em; line-height: 1.1; }
.ap-logo-text span { display: block; font-size: 10px; font-family: var(--f-body); font-weight: 500; color: var(--text-4); letter-spacing: .07em; text-transform: uppercase; margin-top: 1px; }
.ap-nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.ap-nav-link { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-3); transition: background .2s, color .2s; white-space: nowrap; }
.ap-nav-link:hover { background: var(--ink-50); color: var(--primary); }
.ap-nav-link.active { color: var(--primary); font-weight: 600; }
.ap-nav-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ap-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border-radius: var(--radius-sm); }
.ap-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all .3s; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink-700), var(--ink-500));
  color: white; font-size: 14px; font-weight: 600; border: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(30,45,74,.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(30,45,74,.38); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: var(--radius);
  background: transparent; color: var(--primary);
  font-size: 14px; font-weight: 600; border: 1.5px solid var(--border-md);
  cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-secondary:hover { background: var(--primary-lt); border-color: var(--ink-300); }

.btn-amber {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  color: var(--ink-900); font-size: 14px; font-weight: 700; border: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(214,130,0,.25);
}
.btn-amber:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(214,130,0,.38); }

.btn-white {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: var(--radius);
  background: white; color: var(--ink-800); font-size: 14px; font-weight: 600; border: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 10px rgba(255,255,255,.15);
}
.btn-white:hover { background: var(--ink-50); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }

.btn-sm  { padding: 8px 16px  !important; font-size: 13px !important; }
.btn-xs  { padding: 5px 12px  !important; font-size: 12px !important; }
.btn-lg  { padding: 15px 32px !important; font-size: 16px !important; }

/* ── Form Fields ──────────────────────────────────────────── */
.ap-field {
  width: 100%; padding: 12px 15px;
  background: var(--white); border: 1.5px solid var(--border-md);
  border-radius: var(--radius); font-size: 14px; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.ap-field:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46,77,122,.1); }
.ap-field::placeholder { color: var(--text-4); }
.ap-textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.ap-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; letter-spacing: .03em; text-transform: uppercase; }
.ap-req { color: var(--red); }
.ap-field-group { margin-bottom: 20px; }
.ap-field-group.has-err .ap-field { border-color: var(--red); box-shadow: 0 0 0 4px rgba(220,38,38,.08); }
.ap-err-msg { font-size: 11px; color: var(--red); margin-top: 5px; display: block; font-weight: 600; }
.ap-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; line-height: 1.5; }

/* File zone */
.ap-file-zone {
  border: 2px dashed var(--border-md); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; position: relative; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--bg-subtle);
}
.ap-file-zone:hover, .ap-file-zone.dz-over { border-color: var(--primary); background: var(--primary-lt); }
.ap-file-hidden { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ap-fz-icon { font-size: 28px; margin-bottom: 8px; }
.ap-fz-text { font-size: 14px; color: var(--text-2); }
.ap-fz-browse { color: var(--primary); text-decoration: underline; font-weight: 600; }
.ap-fz-hint { font-size: 11px; color: var(--text-4); margin-top: 5px; font-family: var(--f-mono); }
.ap-fz-selected { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--green-lt); border-radius: var(--radius-sm); margin-top: 8px; }
.ap-fz-name { font-size: 13px; color: #065f46; font-weight: 600; word-break: break-all; flex: 1; }
.ap-fz-remove { background: none; border: none; color: #065f46; cursor: pointer; font-size: 18px; opacity: .6; transition: opacity .2s; }
.ap-fz-remove:hover { opacity: 1; }

/* Submit */
.ap-submit {
  width: 100%; padding: 15px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink-700), var(--ink-500));
  color: white; font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(30,45,74,.28);
}
.ap-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(30,45,74,.38); }
.ap-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Cards ────────────────────────────────────────────────── */
.ap-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.ap-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--border-md); }

/* ── Badges ───────────────────────────────────────────────── */
.ap-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ap-badge-blue  { background: var(--ink-100);  color: var(--ink-700); }
.ap-badge-amber { background: var(--amber-100); color: var(--amber-700); }
.ap-badge-green { background: var(--green-lt);  color: #065f46; }
.ap-badge-gray  { background: var(--stone-100); color: var(--stone-600); }
.ap-badge-red   { background: var(--red-lt);    color: #991b1b; }

/* ── Section helpers ──────────────────────────────────────── */
.ap-section    { padding: 88px 0; }
.ap-section-sm { padding: 56px 0; }
.ap-container  { max-width: 1300px; margin: 0 auto; padding: 0 44px; }
.ap-section-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent-dk); margin-bottom: 14px;
}
.ap-section-eyebrow::before { content: ''; display: block; width: 22px; height: 2px; background: var(--amber-400); border-radius: 2px; }
.ap-section-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem,3.5vw,3rem); color: var(--ink-900); letter-spacing: -.04em; line-height: 1.12; }
.ap-section-sub { font-size: 16px; color: var(--text-3); max-width: 580px; margin-top: 14px; line-height: 1.78; }

/* ── Alert banners ────────────────────────────────────────── */
.ap-alert { border-radius: var(--radius); padding: 14px 18px; font-size: 13px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.ap-alert-error   { background: var(--red-lt);    border: 1px solid rgba(220,38,38,.2);   color: #991b1b; }
.ap-alert-success { background: var(--green-lt);  border: 1px solid rgba(5,150,105,.2);   color: #065f46; }
.ap-alert-info    { background: var(--ink-50);    border: 1px solid var(--ink-200);       color: var(--ink-700); }
.ap-alert-warn    { background: var(--amber-100); border: 1px solid var(--amber-200);     color: var(--amber-700); }

/* ── Success wrap ─────────────────────────────────────────── */
.ap-success-wrap { text-align: center; padding: 24px 0; }
.ap-success-icon { width: 72px; height: 72px; background: linear-gradient(135deg,var(--green-lt),#a7f3d0); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(5,150,105,.2); }
.ap-success-icon svg { width: 32px; height: 32px; color: #059669; }
.ap-success-title { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--ink-900); margin-bottom: 10px; letter-spacing: -.025em; }
.ap-success-text { font-size: 14px; color: var(--text-3); line-height: 1.78; margin-bottom: 24px; }

/* ── OTP ──────────────────────────────────────────────────── */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 18px 0; }
.otp-digit {
  width: 52px; height: 60px; text-align: center;
  font-size: 24px; font-weight: 700; font-family: var(--f-mono);
  border: 2px solid var(--border-md); border-radius: var(--radius);
  color: var(--ink-900); outline: none; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46,77,122,.1); }
.otp-digit.filled { border-color: var(--primary); background: var(--primary-lt); }

/* ── Steps ────────────────────────────────────────────────── */
.ap-steps { display: flex; gap: 0; margin-bottom: 28px; }
.ap-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.ap-step:not(:last-child)::after { content: ''; position: absolute; top: 18px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--border-md); z-index: 0; }
.ap-step.completed:not(:last-child)::after { background: var(--primary); }
.ap-step-dot { width: 36px; height: 36px; border-radius: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-bottom: 8px; border: 2px solid var(--border-md); background: var(--white); color: var(--text-4); transition: all .3s; }
.ap-step.active .ap-step-dot { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46,77,122,.14); }
.ap-step.completed .ap-step-dot { background: var(--green); color: white; border-color: var(--green); }
.ap-step-label { font-size: 11px; font-weight: 600; color: var(--text-4); text-align: center; }
.ap-step.active .ap-step-label { color: var(--primary); }
.ap-step.completed .ap-step-label { color: var(--green); }

/* ── Listing card ─────────────────────────────────────────── */
.listing-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 28px; display: flex; flex-direction: column;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.listing-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--ink-500),var(--ink-300)); opacity: 0; transition: opacity .3s; }
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--border-md); }
.listing-card:hover::before { opacity: 1; }
.listing-card.is-featured::before { opacity: 1; background: linear-gradient(90deg,var(--amber-500),var(--amber-300)); }
.listing-avatar { width: 50px; height: 50px; border-radius: var(--radius); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--primary); background: var(--primary-lt); text-transform: uppercase; flex-shrink: 0; }

/* ── Blog card ────────────────────────────────────────────── */
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow .3s, transform .3s, border-color .3s; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--border-md); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-ph { width: 100%; height: 200px; background: linear-gradient(135deg,var(--ink-800),var(--ink-600)); display: flex; align-items: center; justify-content: center; font-size: 44px; position: relative; }
.blog-card-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom,transparent 40%,rgba(8,13,23,.5)); }
.blog-card-body { padding: 22px; }
.blog-card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-dk); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.blog-card-cat::before { content: ''; width: 16px; height: 2px; background: var(--amber-400); border-radius: 2px; display: block; }
.blog-card-title { font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--ink-900); line-height: 1.3; margin-bottom: 10px; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-excerpt { font-size: 13px; color: var(--text-3); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.blog-card-meta { font-size: 11px; color: var(--text-4); font-family: var(--f-mono); display: flex; align-items: center; gap: 10px; }

/* ── Footer ───────────────────────────────────────────────── */
.ap-footer { background: var(--ink-950); color: rgba(255,255,255,.55); padding: 72px 0 36px; border-top: 1px solid rgba(255,255,255,.04); }
.ap-footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.ap-footer-brand-name { font-family: var(--f-display); font-size: 21px; font-weight: 700; color: white; margin-bottom: 12px; letter-spacing: -.025em; }
.ap-footer-brand-desc { font-size: 13px; line-height: 1.78; color: rgba(255,255,255,.4); max-width: 300px; }
.ap-footer-brand-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; padding: 6px 14px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 11px; font-weight: 600; color: var(--amber-300); letter-spacing: .06em; text-transform: uppercase; }
.ap-footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 18px; }
.ap-footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 11px; transition: color .2s; }
.ap-footer-link:hover { color: white; }
.ap-footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin-bottom: 28px; }
.ap-footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.22); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.ap-breadcrumb { background: var(--bg-subtle); border-bottom: 1px solid var(--border); padding: 13px 0; }
.ap-bc-inner { max-width: 1300px; margin: 0 auto; padding: 0 44px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-4); flex-wrap: wrap; }
.ap-bc-link { color: var(--text-3); transition: color .2s; }
.ap-bc-link:hover { color: var(--primary); }
.ap-bc-sep { color: var(--border-md); font-size: 10px; }
.ap-bc-current { color: var(--text); font-weight: 500; }

/* ── Pagination ───────────────────────────────────────────── */
.ap-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 56px; }
.ap-page-btn { padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; border: 1.5px solid var(--border-md); color: var(--text-2); background: var(--white); text-decoration: none; transition: all .2s; }
.ap-page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-lt); }
.ap-page-btn.current { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Table ────────────────────────────────────────────────── */
.ap-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.ap-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ap-table th { background: var(--bg-subtle); padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--border-md); white-space: nowrap; }
.ap-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.ap-table tr:last-child td { border-bottom: none; }
.ap-table tr:hover td { background: var(--bg-subtle); }

/* ── Divider ──────────────────────────────────────────────── */
.ap-divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ── Tag ──────────────────────────────────────────────────── */
.ap-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 20px; background: var(--primary-lt); color: var(--primary); font-family: var(--f-mono); letter-spacing: .02em; transition: background .2s, color .2s; }
.ap-tag:hover { background: var(--ink-100); color: var(--ink-700); }
.ap-tag-amber { background: var(--amber-100); color: var(--amber-700); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes scaleIn  { from{opacity:0;transform:scale(.95)} to{opacity:1;transform:scale(1)} }
@keyframes spin     { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes shimmer  { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.anim-fade-up  { animation: fadeUp  .5s ease both; }
.anim-fade-in  { animation: fadeIn  .4s ease both; }
.anim-scale-in { animation: scaleIn .3s ease both; }
.anim-d1 { animation-delay: .1s; }
.anim-d2 { animation-delay: .2s; }
.anim-d3 { animation-delay: .3s; }
.anim-d4 { animation-delay: .4s; }
.skeleton { background: linear-gradient(90deg,var(--stone-100) 25%,var(--stone-200) 50%,var(--stone-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width:1024px) { .ap-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
/* ── Tablet ──────────────────────────────────────────── */
@media (max-width:1024px) {
  .ap-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width:768px) {
  :root { --nav-h: 60px; }
  .ap-container { padding: 0 20px; }
  .ap-nav-inner { padding: 0 20px; }
  .ap-nav-links { display: none; }
  .ap-hamburger { display: flex; }
  .ap-nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: 12px 16px; gap: 2px; box-shadow: var(--shadow-md); z-index: 199;
  }
  .ap-nav-link { padding: 11px 14px; font-size: 15px; }
  .ap-logo { margin-right: 0; }
  .ap-section { padding: 56px 0; }
  .ap-section-sm { padding: 40px 0; }
  .ap-section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .ap-section-sub { font-size: 15px; }
  .ap-card:hover { transform: none; }
  .listing-card:hover { transform: none; }
  .blog-card:hover { transform: none; }
  .btn-primary, .btn-secondary, .btn-amber, .btn-white { padding: 11px 20px; font-size: 13px; }
  .btn-lg { padding: 13px 26px !important; font-size: 15px !important; }
  .ap-field { font-size: 16px; }
  .otp-digit { width: 44px; height: 52px; font-size: 20px; }
  .otp-inputs { gap: 7px; }
  .ap-steps { gap: 0; }
  .ap-step-label { font-size: 10px; }
  .ap-table th, .ap-table td { padding: 10px 12px; font-size: 12px; }
  .ap-footer { padding: 52px 0 28px; }
  .ap-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ap-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .ap-bc-inner { padding: 0 20px; }
  .ap-pagination { gap: 4px; }
  .ap-page-btn { padding: 8px 14px; font-size: 12px; }
}

/* ── Small mobile ──────────────────────────────────── */
@media (max-width:480px) {
  :root { --nav-h: 56px; }
  .ap-nav-end .btn-primary { display: none; }
  .ap-section { padding: 44px 0; }
  .ap-container { padding: 0 16px; }
  .btn-primary, .btn-secondary, .btn-amber, .btn-white, .btn-ghost { min-height: 44px; }
  .otp-digit { width: 38px; height: 48px; font-size: 18px; }
  .otp-inputs { gap: 5px; }
  .ap-tag { font-size: 10px; padding: 3px 9px; }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL SCROLL ANIMATIONS — js-reveal system
   ═══════════════════════════════════════════════════════════ */

/* Base hidden state — applied before JS runs */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
}
.js-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.js-reveal-delay-0 { transition-delay: 0s;    }
.js-reveal-delay-1 { transition-delay: .10s;  }
.js-reveal-delay-2 { transition-delay: .20s;  }
.js-reveal-delay-3 { transition-delay: .30s;  }
.js-reveal-delay-4 { transition-delay: .40s;  }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; transition: none; }
}
