/* =========================================================
   ACHARKI DIGITAL — Premium AI-Inspired Theme
   Used by both the live HTML preview and (mirrored as
   global colors / fonts) inside the Elementor Template Kit.
   ========================================================= */

:root {
  /* Brand */
  --ink-900: #050816;          /* near-black navy, hero base */
  --ink-800: #0a1024;          /* deep navy */
  --ink-700: #111a36;          /* surface dark */
  --ink-600: #1b2548;          /* card / border on dark */
  --ink-500: #2a345f;
  --ink-300: #98a2c3;          /* muted text on dark */
  --ink-200: #c9d0e4;
  --ink-100: #eef0f7;          /* light bg */
  --paper:   #ffffff;

  --accent:        #3ee0c9;    /* electric teal */
  --accent-2:      #6c8cff;    /* electric indigo */
  --accent-warm:   #f1c46b;    /* champagne gold (premium) */
  --danger:        #ff6b6b;

  --grad-aurora: radial-gradient(60% 80% at 20% 0%, rgba(108,140,255,.35) 0%, transparent 60%),
                 radial-gradient(50% 70% at 90% 20%, rgba(62,224,201,.28) 0%, transparent 60%),
                 radial-gradient(80% 80% at 50% 100%, rgba(241,196,107,.10) 0%, transparent 60%),
                 linear-gradient(180deg, #050816 0%, #0a1024 60%, #0a1024 100%);

  --grad-line: linear-gradient(90deg, transparent, rgba(62,224,201,.55), transparent);

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-hero:  clamp(2.6rem, 6vw, 5.4rem);
  --fs-h1:    clamp(2.1rem, 4.2vw, 3.6rem);
  --fs-h2:    clamp(1.6rem, 2.8vw, 2.4rem);
  --fs-h3:    1.25rem;
  --fs-body:  1.05rem;
  --fs-small: .9rem;
  --fs-eyebrow: .78rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(5,8,22,.08), 0 8px 24px rgba(5,8,22,.08);
  --shadow-2: 0 20px 60px rgba(5,8,22,.18);
  --shadow-glow: 0 0 0 1px rgba(62,224,201,.25), 0 12px 40px rgba(62,224,201,.18);

  --container: 1240px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink-800);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink-900); color: var(--ink-100); }
.section--ink  { background: var(--ink-800); color: var(--ink-100); }
.section--paper{ background: var(--paper); color: var(--ink-800); }
.section--soft { background: var(--ink-100); color: var(--ink-800); }
.section--dark .muted, .section--ink .muted { color: var(--ink-300); }
.muted { color: #5b6480; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; gap: 24px; }
.between { justify-content: space-between; align-items: center; }
.center { display: flex; align-items: center; justify-content: center; }

/* ---------- Type ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-family: var(--font-sans); font-weight: 600; }
.display { font-size: var(--fs-hero); font-family: var(--font-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block;
}
.section--paper .eyebrow, .section--soft .eyebrow { color: #0d8f7c; }

p.lead { font-size: 1.18rem; color: var(--ink-300); max-width: 60ch; }
.section--paper p.lead, .section--soft p.lead { color: #4a5476; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1fb8a3 100%);
  color: #04221d;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(62,224,201,.45), 0 18px 50px rgba(62,224,201,.28); }
.btn--ghost {
  background: transparent; color: var(--ink-100);
  border-color: rgba(255,255,255,.18);
}
.section--paper .btn--ghost, .section--soft .btn--ghost { color: var(--ink-800); border-color: rgba(5,8,22,.18); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-700); }

.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,8,22,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #fff;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.01em; }
.brand .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 14px var(--accent); }
.brand strong { font-weight: 600; }
.brand .ital { font-style: italic; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav .links { display: flex; align-items: center; gap: 28px; }
.nav .links > a.btn--primary { padding: 10px 18px; font-size: .88rem; }
.nav a { font-size: .92rem; color: rgba(255,255,255,.78); transition: color .2s; position: relative; }
.nav a:hover { color: #fff; }
.nav a.active { color: var(--accent); }
.nav .lang {
  display: inline-flex; gap: 4px; padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-pill);
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.nav .lang a { padding: 4px 8px; border-radius: var(--r-pill); }
.nav .lang a.on { background: var(--accent); color: #04221d; font-weight: 700; }
.nav .lang--mobile { display: none; }
.nav .lang--desktop { margin-left: 18px; }
@media (max-width: 900px) {
  .nav .lang--desktop { display: none; }
  .nav .lang--mobile { display: inline-flex; }
}

.menu-toggle {
  display: none; background: transparent; border: 0; color: #fff;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px; transition: background .2s;
}
.menu-toggle:hover { background: rgba(255,255,255,.06); }
.menu-toggle .x-line { transition: transform .35s ease, opacity .25s ease; transform-origin: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-aurora);
  color: #fff;
  padding: 120px 0 110px;
  overflow: hidden;
}
.hero::before {
  /* AI grid */
  content:"";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  /* glow underline */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--grad-line);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 980px) {
  /* Force single-column on mobile even when inline style sets 2 columns */
  .hero .container,
  .hero .container[style] { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 700px) {
  /* Two-column inline lists collapse to one column on small screens */
  .list-check[style*="grid-template-columns:1fr 1fr"],
  ul[style*="grid-template-columns:1fr 1fr"],
  ul[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
}

.hero h1 .grad {
  background: linear-gradient(120deg, #fff 0%, #c9d0e4 30%, var(--accent) 70%, var(--accent-warm) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--ink-200); max-width: 56ch; font-size: 1.12rem; }

.hero-stats {
  margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
}
.hero-stats .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; color: #fff; }
.hero-stats .lbl { font-size: .82rem; color: var(--ink-300); letter-spacing: .04em; }

.hero-card {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 4/5;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-2);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(5,8,22,.6); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
}
.hero-card .badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(62,224,201,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62,224,201,.55); }
  70% { box-shadow: 0 0 0 14px rgba(62,224,201,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,224,201,0); }
}

/* ---------- Marquee / Logos strip ---------- */
.marquee {
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 22px 0;
  background: rgba(5,8,22,.5);
  color: #b9c3e0;
  overflow: hidden;
}
.marquee .track {
  display: flex; gap: 56px; align-items: center; animation: scroll 28s linear infinite;
  white-space: nowrap; font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
}
.marquee .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid #eef1f7;
  border-radius: var(--r-lg); padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #d8e0ff; }
.card .ic {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid; place-items: center; color: #04221d; font-weight: 700;
  margin-bottom: 18px;
}
.card.dark {
  background: linear-gradient(180deg, #0e1736 0%, #0a1024 100%);
  border-color: rgba(255,255,255,.06); color: #fff;
}
.card.dark p { color: var(--ink-300); }
.card h3 { margin-bottom: 8px; }

.industry-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 32px;
  background: #0d1633; color: #fff;
  border: 1px solid rgba(255,255,255,.06);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .25s ease, border-color .25s ease;
}
.industry-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.industry-card .num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 2.4rem; color: var(--accent);
}
.industry-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.industry-card p { color: var(--ink-300); }
.industry-card .arrow-row { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; }

/* ---------- Stats band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(5,8,22,.5);
}
.stats > div { padding: 32px; border-right: 1px solid rgba(255,255,255,.06); }
.stats > div:last-child { border-right: 0; }
.stats .num { font-family: var(--font-display); font-size: 2.6rem; color: #fff; }
.stats .lbl { color: var(--ink-300); font-size: .9rem; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div { border-bottom: 1px solid rgba(255,255,255,.06); } }

/* ---------- Approach steps ---------- */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid #e7eaf3;
}
.step:last-child { border-bottom: 1px solid #e7eaf3; }
.step .n { font-family: var(--font-display); font-style: italic; color: #0d8f7c; font-size: 2.2rem; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.section--dark .step, .section--ink .step { border-top-color: rgba(255,255,255,.08); }
.section--dark .step:last-child, .section--ink .step:last-child { border-bottom-color: rgba(255,255,255,.08); }
.section--dark .step .n, .section--ink .step .n { color: var(--accent); }

/* ---------- Testimonials ---------- */
.quote {
  border-left: 2px solid var(--accent);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-style: italic; font-size: 1.35rem; line-height: 1.45;
}
.quote + .who { color: var(--ink-300); margin-top: 14px; font-size: .95rem; }

/* ---------- Footer (rich) ---------- */
.site-footer {
  background: linear-gradient(180deg, #03050f 0%, #050a1c 100%);
  color: #b9c3e0;
  padding: 88px 0 32px;
  border-top: 1px solid rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--grad-line);
}
.site-footer::after {
  /* subtle aurora wash */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 80% 0%, rgba(62,224,201,.08) 0%, transparent 70%),
              radial-gradient(50% 50% at 10% 0%, rgba(108,140,255,.06) 0%, transparent 70%);
}
.site-footer .container { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.3fr;
  gap: 40px 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-col { min-width: 0; }
.site-footer .brand { font-size: 1.45rem; color: #fff; margin-bottom: 16px; }
.site-footer .brand .ital { color: #fff; }
.site-footer .brand strong { color: #fff; }
.footer-tagline { color: var(--ink-200); max-width: 38ch; font-size: .98rem; line-height: 1.6; }
.footer-office { font-size: .88rem; color: var(--ink-300); margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.footer-office::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: 0 0 6px; }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  color: var(--ink-200);
  transition: border-color .2s, color .2s, transform .2s, background .2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); background: rgba(62,224,201,.06); }
.footer-social svg { width: 18px; height: 18px; }

.site-footer h4,
.site-footer .footer-widget__title {
  color: #fff; font-family: var(--font-sans); font-weight: 600;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer ul,
.site-footer .footer-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;
}
.site-footer .footer-list a,
.site-footer ul a { color: var(--ink-200); font-size: .95rem; transition: color .2s, transform .2s; display: inline-block; }
.site-footer .footer-list a:hover,
.site-footer ul a:hover { color: var(--accent); transform: translateX(3px); }

/* Iconified contact list */
.site-footer .footer-contact-list { gap: 14px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.footer-contact-item > a,
.footer-contact-item > span:not(.footer-contact-ic) {
  font-size: .95rem; color: var(--ink-200); word-break: break-word; overflow-wrap: anywhere;
}
.footer-contact-item > a:hover { color: var(--accent); transform: none; }
.footer-contact-ic {
  flex: 0 0 32px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(62,224,201,.10);
  color: var(--accent);
  border: 1px solid rgba(62,224,201,.22);
}
.footer-contact-ic svg { width: 15px; height: 15px; }

/* Newsletter */
.footer-newsletter p {
  font-size: .92rem; color: var(--ink-300); margin: 0 0 16px; max-width: 32ch;
}
.newsletter-form {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.newsletter-form:focus-within { border-color: var(--accent); background: rgba(62,224,201,.06); }
.newsletter-form input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  padding: 12px 18px; color: #fff; font: inherit; font-size: .92rem;
}
.newsletter-form input::placeholder { color: rgba(185,195,224,.55); }
.newsletter-form button {
  background: linear-gradient(135deg, var(--accent) 0%, #1fb8a3 100%);
  color: #04221d; border: 0; padding: 0 20px; font-weight: 700; font-size: .9rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: filter .2s;
}
.newsletter-form button:hover { filter: brightness(1.08); }
.newsletter-note { font-size: .78rem; color: var(--ink-300); margin-top: 10px; opacity: .8; }

/* Trust badges row */
.footer-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer-badges .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .78rem; color: var(--ink-200); letter-spacing: .04em;
}
.footer-badges .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Bottom strip */
.footer-bottom,
.site-footer .legal {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  padding-top: 28px;
  font-size: .82rem; color: var(--ink-300);
  margin-top: 0;
  border-top: 0;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal-links a { color: var(--ink-300); transition: color .2s; }
.footer-legal-links a:hover { color: var(--accent); }
.footer-made { color: var(--ink-300); font-size: .82rem; opacity: .75; }
.footer-made .heart { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq details {
  border-top: 1px solid #e7eaf3; padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid #e7eaf3; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--ink-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.6rem; transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: #4a5476; max-width: 80ch; margin-top: 12px; }

/* ---------- CTA Block ---------- */
.cta-block {
  background: var(--grad-aurora);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 64px 56px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.cta-block::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 80% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000 20%, transparent 75%);
}
.cta-block .inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .cta-block { padding: 40px 28px; } .cta-block .inner { grid-template-columns: 1fr; } }
.cta-block h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form label { font-size: .85rem; color: var(--ink-300); letter-spacing: .04em; text-transform: uppercase; }
.section--paper .form label, .section--soft .form label { color: #5b6480; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md); color: inherit; font: inherit;
  transition: border-color .2s, background .2s;
}
.section--paper .form input, .section--paper .form textarea, .section--paper .form select,
.section--soft .form input, .section--soft .form textarea, .section--soft .form select {
  background: #fff; border-color: #dde2ee; color: var(--ink-800);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--accent); background: rgba(62,224,201,.06);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- Misc ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(62,224,201,.1); color: var(--accent);
  font-size: .78rem; letter-spacing: .04em; font-weight: 600;
  border: 1px solid rgba(62,224,201,.25);
}
.section--paper .tag, .section--soft .tag { background: rgba(13,143,124,.08); color: #0d8f7c; border-color: rgba(13,143,124,.25); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); margin: 32px 0; }
.section--paper .divider, .section--soft .divider { background: linear-gradient(90deg, transparent, #d8dce8, transparent); }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li { padding-left: 32px; position: relative; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5L20 7'/></svg>") center/70% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5L20 7'/></svg>") center/70% no-repeat;
}

.section-title { display: grid; gap: 12px; max-width: 760px; margin-bottom: 56px; }
.section-title h2 { margin: 0; }

/* Reveal on scroll — hidden only after a frame, with safety fallback */
.js .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
.js .reveal { transition: opacity .7s ease, transform .7s ease; }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { opacity: 1; transform: none; } }

/* Scrollbar polish */
::selection { background: var(--accent); color: #04221d; }

/* =========================================================
   MOBILE DRAWER + RESPONSIVE — added v2.1
   ========================================================= */

/* ---- Mobile drawer (portaled to <body>) ---- */

/* Hide the portal drawer on desktop entirely */
.mobile-drawer,
.mobile-drawer__backdrop { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  /* Hide the original (in-header) .links on mobile — we use the portal */
  .nav > .links { display: none !important; }

  /* Show portal drawer */
  .mobile-drawer,
  .mobile-drawer__backdrop { display: block; }

  /* Backdrop — solid, no blur, sharp text behind */
  .mobile-drawer__backdrop {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(2, 4, 12, .68);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
  }
  .mobile-drawer__backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* Drawer panel — fully opaque, no blur, sharp text */
  .mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 380px);
    z-index: 9001;
    transform: translateX(100%);
    transition: transform .42s cubic-bezier(.22,.61,.36,1);
    /* No backdrop-filter, no transparency — solid for crisp rendering */
    background: #050816;
    border-left: 1px solid rgba(255,255,255,.08);
    box-shadow: -20px 0 60px rgba(0,0,0,.6);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-drawer.is-open { transform: translateX(0); }

  .mobile-drawer__panel {
    display: flex; flex-direction: column;
    min-height: 100%;
    padding: 28px 28px 36px;
    /* Fallback solid color reinforcement — beats any iOS compositing oddity */
    background: #050816;
    color: #fff;
  }

  .mobile-drawer__close {
    align-self: flex-end;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid rgba(255,255,255,.12);
    color: #fff; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
  }
  .mobile-drawer__close:hover { border-color: var(--accent); color: var(--accent); }

  .mobile-drawer__links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 16px;
    padding: 0;
  }

  .mobile-drawer__links > a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    letter-spacing: -.01em;
    line-height: 1.2;
    text-decoration: none;
  }
  .mobile-drawer__links > a.active { color: var(--accent); }
  .mobile-drawer__links > a.btn,
  .mobile-drawer__links > a.btn--primary {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 28px;
    border-bottom: 0;
    justify-content: center;
    padding: 14px 22px;
    color: #04221d;
    text-align: center;
  }

  /* Mobile lang pills inside drawer */
  .mobile-drawer__links .lang--mobile {
    display: inline-flex !important;
    margin: 22px 0 4px !important;
    align-self: flex-start;
    border: 1px solid rgba(255,255,255,.16);
    padding: 6px 8px;
    background: rgba(255,255,255,.02);
  }
  .mobile-drawer__links .lang--mobile a {
    color: rgba(255,255,255,.85);
    padding: 4px 10px;
  }
  .mobile-drawer__links .lang--mobile a.on {
    background: var(--accent); color: #04221d; font-weight: 700;
  }
  /* Hide desktop lang pill if it got cloned */
  .mobile-drawer__links .lang--desktop { display: none !important; }

  /* Animate hamburger to X when drawer is open (header gets .is-open) */
  .site-header.is-open .menu-toggle .x-line-1 { transform: translateY(6px) rotate(45deg); }
  .site-header.is-open .menu-toggle .x-line-2 { opacity: 0; }
  .site-header.is-open .menu-toggle .x-line-3 { transform: translateY(-6px) rotate(-45deg); }

  /* Body scroll lock when drawer open */
  body.menu-open { overflow: hidden; touch-action: none; }
  body.menu-open .site-header { /* keep header below drawer, don't blur it */ }
}

/* ---- Footer responsive ---- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .footer-top .footer-col--industries { display: none; }
}
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding-bottom: 40px;
  }
  .footer-top .footer-col--brand { grid-column: 1 / -1; }
  .footer-top .footer-col--newsletter { grid-column: 1 / -1; }
  .footer-top .footer-col--industries { display: block; }
  .site-footer { padding: 72px 0 28px; }
  .footer-bottom, .site-footer .legal { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-form { flex-direction: column; border-radius: 16px; }
  .newsletter-form input { padding: 14px 18px; }
  .newsletter-form button { padding: 14px 20px; justify-content: center; border-top: 1px solid rgba(255,255,255,.08); }
}

/* =========================================================
   GENERAL RESPONSIVE — typography, spacing, hero, sections
   ========================================================= */

/* Tablet polish ≤980 */
@media (max-width: 980px) {
  :root {
    --fs-hero: clamp(2.2rem, 7vw, 3.8rem);
    --fs-h1:   clamp(1.85rem, 5vw, 2.8rem);
    --fs-h2:   clamp(1.45rem, 3.6vw, 2rem);
    --fs-body: 1rem;
  }
  .section { padding: 72px 0; }
  .section--tight { padding: 48px 0; }
  .hero { padding: 88px 0 80px; }
  .hero p { font-size: 1.05rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-stats .num { font-size: 1.7rem; }
  .cta-block { padding: 48px 36px; }
}

/* Phone ≤640 */
@media (max-width: 640px) {
  :root {
    --fs-hero: clamp(2rem, 9vw, 2.8rem);
    --fs-h1:   clamp(1.7rem, 6vw, 2.2rem);
    --fs-h2:   clamp(1.35rem, 5vw, 1.7rem);
  }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .hero { padding: 64px 0 60px; }
  .hero p { font-size: 1rem; max-width: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.06); padding-top: 14px; }
  .hero-stats .num { font-size: 1.55rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 22px 18px; }
  .stats .num { font-size: 2rem; }
  .card { padding: 22px; }
  .industry-card { padding: 24px; min-height: auto; }
  .industry-card .num { font-size: 2rem; }
  .industry-card h3 { font-size: 1.3rem; }
  .cta-block { padding: 36px 22px; border-radius: 18px; }
  .cta-block h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); }
  .quote { font-size: 1.15rem; padding: 8px 18px; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; }
  .step .n { font-size: 1.7rem; }
  .step h3 { font-size: 1.2rem; }
  .faq summary { font-size: 1.05rem; gap: 16px; }
  .marquee .track { font-size: 1.1rem; gap: 36px; }
  .site-header .container { height: 64px; }
  .brand { font-size: 1.2rem; }
  .btn { padding: 12px 18px; font-size: .9rem; }
}

/* Very small phones ≤380 */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div:nth-child(3) { border-top: 0; padding-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; }
}

/* Prevent horizontal overflow on any device */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }
