/* =========================================================================
   ASI Technologies Global Stylesheet
   Centralized variables, base styles, and utility classes
   ========================================================================= */

:root {
  --accent: #C77B2E;
  --accent-light: #E6A44A;
  --teal: #1A7A6D;
  --azure: #2568B0;
  --coral: #C44830;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --transition: all .4s cubic-bezier(.23, 1, .32, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
}

[data-theme="light"] {
  --bg: #F5F0E8;
  --bg-alt: #EDE7DB;
  --border: #DDD5C5;
  --text: #1A1612;
  --text-dim: #8C7E6A;
  --text-muted: #5C4F3C;
  --nav-bg: rgba(245, 240, 232, .9);
  --card-bg: #FFF;
  --glass: rgba(255, 255, 255, .7);
}

[data-theme="dark"] {
  --bg: #0D0B09;
  --bg-alt: #1A1612;
  --border: #2A2622;
  --text: #F5F0E8;
  --text-dim: #C4B9A4;
  --text-muted: #8C7E6A;
  --nav-bg: rgba(13, 11, 9, .9);
  --card-bg: #1A1612;
  --glass: rgba(26, 22, 18, .7);
}

/* Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

/* =========================================================================
   Utility Classes
   ========================================================================= */

/* Icon & Sizing Utilities */
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }

/* Alignment & Positioning */
.v-middle { vertical-align: middle; }
.v-text-bottom { vertical-align: text-bottom; }
.v-2px { vertical-align: -2px; }
.ml-2 { margin-left: 2px; }
.mr-4 { margin-right: 4px; }
.mr-8 { margin-right: 8px; }
.mt-16 { margin-top: 16px; }
.mt-16-inline { margin-top: 16px; }

/* Structural Utilities */
.list-none { list-style: none; }
.rel-overflow-z1 { position: relative; overflow: hidden; z-index: 1; }
.abs-inset-pointer { position: absolute; inset: 0; pointer-events: auto; }
.rel-z10 { position: relative; z-index: 10; }
.w-full-center { width: 100%; text-align: center; }

/* Typography & Colors */
.text-accent { color: var(--accent); }
.text-teal { color: var(--teal); }
.text-azure { color: var(--azure); }
.text-dim { color: var(--text-dim); }
.text-white { color: #fff; }
.text-underline { text-decoration: underline; }
.font-bold { font-weight: 600; }
.stroke-3 { stroke-width: 3; }
.text-1-6 { font-size: 1.6rem; }
.text-0-95 { font-size: 0.95rem; }
.text-0-9 { font-size: 0.9rem; }
.text-dim-border { border-color: var(--text-dim); color: var(--text-dim); }
.icon-sm-coral { width: 16px; height: 16px; color: var(--coral); vertical-align: text-bottom; margin-right: 4px; }

/* Specific Component Utilities */
.faq-section-bg { background: var(--bg); padding: 80px 0; }
.wa-order-text { margin-top: 20px; font-size: 0.85rem; color: var(--text-dim); }
.wa-order-link { color: var(--accent); font-weight: 600; }
.wa-direct-btn { background: rgba(37,211,102,0.15); color: #25D366; border: 1px solid rgba(37,211,102,0.3); }
.popia-checkbox { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }

/* Footer Component Utilities */
.footer-inner-flex { justify-content: flex-start; gap: 64px; }
.footer-col-max { max-width: 300px; }
.footer-desc { font-size: 0.85rem; color: var(--text-dim); margin-top: 12px; }
.footer-heading { margin-bottom: 16px; font-size: 0.9rem; }
.footer-link-list { flex-direction: column; gap: 12px; }
.footer-bottom { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 0.65rem; color: var(--text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-built-by { width: 100%; text-align: center; margin-top: 24px; font-size: 0.8rem; color: var(--text-dim); }
.footer-accent-link { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Hero Variants */
.hero-bg-cyber { background-image: url('/assets/hero-cyber.v2.jpg'); }

/* Component Specific Extracted Classes */
.prototype-building { background: transparent; border: 1px dashed var(--border); display: flex; flex-direction: column; justify-content: center; }
.prototype-result-building { background: transparent; border: 1px solid var(--text-dim); color: var(--text-dim); }

/* =========================================================================
   Shared Site Components
   ========================================================================= */

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  font-weight: 300;
  color: var(--text-dim);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-links i {
  width: 16px;
  height: 16px;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: var(--transition);
}

.nav-cta {
  padding: 11px 18px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid transparent;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn {
  min-height: 48px;
  padding: 15px 22px;
  border: 1px solid var(--border);
}

.btn i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer {
  padding: 90px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--mono);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.footer-links {
  display: flex;
  list-style: none;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* =========================================================================
   Regional Payments
   ========================================================================= */

.payments-hero {
  padding: 112px 0 64px;
  background: var(--bg);
}

.payments-hero-inner {
  max-width: 860px;
}

.payments-hero h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 500;
  line-height: .96;
}

.payments-hero p:not(.section-label) {
  max-width: 720px;
  color: var(--text-dim);
  font-size: 1.16rem;
  line-height: 1.75;
}

.payments-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.tcib-announce {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.tcib-announce-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.tcib-announce i {
  width: 24px;
  height: 24px;
  color: var(--teal);
  flex: 0 0 auto;
}

.tcib-announce p {
  color: var(--text-dim);
  font-size: .98rem;
}

.payments {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.payments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.region {
  scroll-margin-top: 96px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
}

.region h2 {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.region p,
.region li {
  color: var(--text-dim);
}

.region ul {
  display: grid;
  gap: 12px;
  padding-left: 1.1rem;
}

.region li::marker {
  color: var(--accent);
}

.tier-label {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(199, 123, 46, 0.5);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.payment-badge {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(26, 122, 109, .08);
  color: var(--text-dim);
  font-size: .82rem;
}

.payment-badge i {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.payment-badge span {
  overflow-wrap: anywhere;
}

.payment-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-dim);
}

.payment-note i {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

@media (max-width: 900px) {
  .nav-inner {
    min-height: 0;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .nav-cta {
    width: 100%;
  }

  .payments-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container,
  .payments {
    width: min(100% - 32px, 1180px);
  }

  .payments-hero {
    padding: 72px 0 44px;
  }

  .payments-hero-actions .btn,
  .region .btn {
    width: 100%;
  }

  .region {
    padding: 24px;
  }

  .tcib-announce-inner,
  .payment-note {
    align-items: flex-start;
  }
}
