/* =========================================================================
   Mayatech — Design System
   Palette: ink/black base + brand orange accent (logo: orange + black)
   ========================================================================= */

:root {
  /* Neutrals (warm-neutral, not cold gray) */
  --ink-900: #0E0E10;
  --ink-800: #17181B;
  --ink-700: #24262B;
  --ink-600: #34373E;
  --slate-500: #6B6E76;
  --slate-400: #6B7079;
  --slate-300: #B6B8BE;
  --mist-200: #ECEAE6;
  --mist-100: #F6F5F3;
  --white: #FFFFFF;

  /* Brand accent (orange) — calibrate HEX from real logo later */
  --accent: #F26A1B;
  --accent-hover: #D8550C;
  /* Small text needs AA contrast on light surfaces; icons, buttons, the CTA
     band and the logotype keep the bright brand orange. */
  --accent-ink: #AD4208;
  --focus-ring: #AD4208;
  --control-border: #858992;
  --error: #B5381D;
  --accent-soft: #FFF1E8;
  --accent-glow: rgba(242, 106, 27, 0.28);

  /* Signals */
  --signal-green: #2FA36B;

  /* Semantic tokens */
  --bg: var(--white);
  --bg-alt: var(--mist-100);
  --bg-dark: var(--ink-900);
  --text: var(--ink-900);
  --text-muted: var(--slate-500);
  --text-on-dark: #EDECEA;
  --text-on-dark-muted: #9FA2A9;
  --border: var(--mist-200);
  --border-dark: rgba(255, 255, 255, 0.10);

  /* Typography */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(14,14,16,.06), 0 2px 8px rgba(14,14,16,.05);
  --shadow-md: 0 8px 24px rgba(14,14,16,.08), 0 2px 6px rgba(14,14,16,.05);
  --shadow-lg: 0 24px 60px rgba(14,14,16,.14);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;
}

/* -------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { color: var(--text); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }

/* -------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--text-on-dark-muted); }

.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head.center .eyebrow { justify-content: center; }

.lede { font-size: 1.2rem; color: var(--text-muted); margin-top: 1rem; }
.section--dark .lede { color: var(--text-on-dark-muted); }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 22px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink-900); }
.section--dark .btn--ghost { color: var(--white); border-color: var(--border-dark); }
.section--dark .btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

.btn--light { background: var(--white); color: var(--ink-900); }
.btn--light:hover { background: var(--mist-100); }

.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--accent-ink);
}
.link-arrow .arrow { transition: transform .2s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 74px; }

.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink-900); }
.brand img.brand-logo { height: 30px; width: auto; display: block; }
/* Stacked header logo: cube on top, MAYATECH wordmark beneath */
.brand-stacked { flex-direction: column; gap: .22rem; line-height: 1; }
.brand-stacked .brand-cube { height: 32px; width: auto; display: block; }
.brand-stacked .wordmark { font-size: 1.02rem; letter-spacing: .02em; color: var(--ink-900); }
/* Text wordmark fallback (e.g. footer) */
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink-900); color: var(--accent);
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 700;
}
.brand .brand-mark span { color: var(--accent); }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.wordmark .t { color: var(--accent); }

.nav-list { display: flex; align-items: center; gap: .35rem; margin-left: 1rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  padding: .55rem .8rem; border-radius: 9px; color: var(--ink-800);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--accent-ink); background: var(--accent-soft); }
.nav-link .caret { width: 9px; height: 9px; transition: transform .2s var(--ease); opacity: .6; }
.nav-item:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .6rem; min-width: 280px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
/* Invisible bridge across the gap so the dropdown stays open while the
   pointer travels from the trigger to the menu. */
.dropdown::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.dropdown.wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-group-label {
  grid-column: 1 / -1; font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400);
  padding: .7rem .8rem .3rem;
}
.dropdown a {
  display: block; padding: .6rem .8rem; border-radius: 9px;
  font-size: .95rem; color: var(--ink-800); transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.dropdown a small { display: block; color: var(--slate-400); font-size: .8rem; font-weight: 400; margin-top: .1rem; }
.dropdown a:hover small { color: var(--accent-ink); }

.nav-tail { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.lang-switch { display: flex; gap: .15rem; font-family: var(--font-head); font-size: .85rem; font-weight: 600; }
.lang-switch a { padding: .3rem .5rem; border-radius: 7px; color: var(--slate-400); }
.lang-switch a.active { color: var(--ink-900); background: var(--mist-100); }
.lang-switch a:hover { color: var(--accent-ink); }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--ink-900); }
.nav-toggle svg { width: 26px; height: 26px; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { position: relative; background: var(--ink-900); color: var(--text-on-dark); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(242,106,27,.22), transparent 60%),
    radial-gradient(50% 50% at 15% 90%, rgba(242,106,27,.10), transparent 60%);
}
/* subtle grid */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(75% 75% at 50% 40%, #000 55%, transparent);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: clamp(4rem, 9vw, 7.5rem); }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--accent-ink); }
.hero .lede { color: var(--text-on-dark-muted); max-width: 34rem; font-size: 1.25rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.badge {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid var(--border-dark); color: var(--text-on-dark);
  background: rgba(255,255,255,.04); display: inline-flex; align-items: center; gap: .45rem;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
/* Ghost button on the dark hero must read against the dark background */
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Hero visual — AI illustration with a small MAYATECH wordmark inside it */
.hero-visual { position: relative; max-width: 480px; margin-inline: auto; width: 100%; }
.hero-visual img {
  width: 100%; height: auto; object-fit: contain;
  mix-blend-mode: screen;          /* near-black pixels drop into the hero bg */
  /* soft-fade the edges so the image blends without a visible square box */
  -webkit-mask-image: radial-gradient(75% 75% at 50% 46%, #000 62%, transparent 100%);
          mask-image: radial-gradient(75% 75% at 50% 46%, #000 62%, transparent 100%);
  animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
.hero-wordmark {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(.85rem, 1.5vw, 1.05rem); letter-spacing: .32em;
  color: #fff; opacity: .9; text-shadow: 0 2px 10px rgba(0,0,0,.5); pointer-events: none;
  white-space: nowrap;
}
.hero-wordmark .t { color: var(--accent); }

/* Legacy CSS-orb placeholder (kept for reference; no longer rendered) */
.orb {
  position: absolute; inset: 8%; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), #ff9d4d, var(--accent));
  filter: blur(2px); opacity: .9;
  -webkit-mask: radial-gradient(closest-side, transparent 60%, #000 61%);
          mask: radial-gradient(closest-side, transparent 60%, #000 61%);
  animation: spin 28s linear infinite;
}
.orb.orb-2 { inset: 22%; animation-duration: 20s; animation-direction: reverse; opacity: .55;
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 59%);
          mask: radial-gradient(closest-side, transparent 58%, #000 59%); }
.hero-visual .core {
  position: absolute; inset: 34%; border-radius: 28px; background: var(--ink-800);
  border: 1px solid var(--border-dark); display: grid; place-items: center;
  box-shadow: 0 0 60px var(--accent-glow);
}
.hero-visual .core svg { width: 46%; color: var(--accent); }
.hero-nodes span {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent-glow);
}
.hero-nodes span:nth-child(1){ top: 6%; left: 46%; }
.hero-nodes span:nth-child(2){ top: 48%; right: 3%; background:#fff; }
.hero-nodes span:nth-child(3){ bottom: 8%; left: 30%; }
.hero-nodes span:nth-child(4){ top: 30%; left: 2%; background:#fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------------
   Compliance strip
   ------------------------------------------------------------------------- */
.compliance-strip { border-block: 1px solid var(--border); background: var(--white); }
.compliance-strip .container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; padding-block: 1.4rem; }
.compliance-strip .label { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); }
.compliance-strip ul { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.compliance-strip li { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink-700); display: inline-flex; align-items: center; gap: .5rem; }
.compliance-strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* -------------------------------------------------------------------------
   Cards grid (products / services)
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.group-label {
  display: flex; align-items: center; gap: .8rem; margin: 2.5rem 0 1.2rem;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500);
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.group-label .n { color: var(--accent-ink); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column; gap: .7rem; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mist-200); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: .3rem;
}
.card .card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--text-muted); font-size: .98rem; margin-top: -.1rem; }
.card .link-arrow { margin-top: auto; padding-top: .6rem; }

/* -------------------------------------------------------------------------
   Value cards (dark)
   ------------------------------------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.value-card {
  border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.value-card h3 { color: var(--white); font-size: 1.25rem; }
.value-card p { margin-top: .5rem; }

/* -------------------------------------------------------------------------
   Logo walls (references / partners)
   ------------------------------------------------------------------------- */
.logo-wall { display: flex; flex-wrap: wrap; gap: .8rem; }
.logo-chip {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink-700);
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  padding: .65rem 1.25rem; transition: border-color .2s, color .2s, transform .2s;
}
.logo-chip:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.section--alt .logo-chip { background: var(--white); }

/* Image logo grid (partners / customers) */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.logo-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.logo-cell {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  height: 92px; display: grid; place-items: center; padding: 1.2rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.logo-cell:hover { border-color: var(--mist-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.logo-cell img {
  max-width: 100%; max-height: 44px; object-fit: contain; object-position: center;
  filter: grayscale(1); opacity: .62; transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }

.customer-logos { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2.8rem; }
.customer-logos .logo-cell { width: clamp(190px, 26vw, 250px); height: 104px; padding: 1.5rem 2rem; }
/* Featured customer logos read best in full colour, not greyed out */
.customer-logos .logo-cell img { filter: none; opacity: 1; max-height: 56px; }

/* Reference logos: two seamless tracks, with an identical hidden second copy. */
.marquee { overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: 1.1rem; }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 46s linear infinite; will-change: transform; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }
.m-item {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  width: clamp(168px, 18vw, 200px); height: 126px; padding: 1.1rem;
  font-family: var(--font-body); font-weight: 500; font-size: .75rem; color: var(--ink-600);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  white-space: nowrap; overflow: hidden; transition: border-color .2s;
}
.m-logo { display: grid; place-items: center; width: 144px; max-width: 100%; height: 56px; overflow: hidden; }
.m-item img { width: 144px; height: 56px; max-width: 100%; object-fit: contain; }
/* These source assets include generous whitespace around the original mark. */
.m-item img.m-logo--padded { object-fit: cover; }
.m-item img.m-logo--inset { transform: scale(1.6); }
.m-item img.m-logo--compact { width: 95px; }
.m-item--dark { background: #172c50; color: var(--white); border-color: #172c50; }
.m-item:hover { border-color: var(--accent); }

.ref-cols { columns: 3; column-gap: 2rem; }
.ref-group { break-inside: avoid; margin-bottom: 1.8rem; }
.ref-group h4 { font-family: var(--font-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .7rem; }
.ref-group li { color: var(--text-muted); padding: .22rem 0; display: flex; align-items: center; gap: .5rem; }
.ref-group li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--slate-300); flex: none; }

/* -------------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------------- */
.cta-band { --focus-ring: var(--ink-900); background: var(--accent); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(60% 120% at 50% -20%, rgba(255,255,255,.22), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 40rem; margin-inline: auto; margin-top: .8rem; }
.cta-band .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.cta-band .hero-actions { justify-content: center; margin-top: 1.8rem; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--text-on-dark-muted); padding-top: clamp(3.5rem,6vw,5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-dark); }
.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { color: var(--text-on-dark-muted); max-width: 24rem; }
.footer-col h4 { font-family: var(--font-head); color: var(--white); font-size: .95rem; letter-spacing: .04em; margin-bottom: 1rem; }
.footer-col p, .footer-col a { display: flex; align-items: flex-start; gap: .6rem; padding: .28rem 0; color: var(--text-on-dark-muted); font-size: .95rem; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-col svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: .2rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; font-size: .88rem; }
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--accent-ink); }

/* -------------------------------------------------------------------------
   Forms (contact / demo request)
   ------------------------------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form-aside .eyebrow { margin-bottom: 1rem; }
.form-aside h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.form-aside .lede { margin-bottom: 2rem; }
.form-points { margin-top: 2rem; display: grid; gap: 1.1rem; }
.form-point { display: flex; gap: .9rem; align-items: flex-start; }
.form-point .tick { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.form-point .tick svg { width: 15px; height: 15px; }
.form-point h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: .1rem; }
.form-point p { color: var(--text-muted); font-size: .92rem; }

.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.5rem); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink-800); }
.field label .req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--text);
  padding: .8rem .95rem; border: 1.5px solid var(--control-border); border-radius: var(--radius-sm);
  background: var(--mist-100); transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--focus-ring); background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.field .error { color: var(--error); font-size: .82rem; display: none; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }

.consent { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: flex-start; margin-top: .3rem; }
.consent input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.consent label { font-size: .88rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; line-height: 1.5; }
.form-fineprint { grid-column: 1 / -1; font-size: .8rem; color: var(--slate-400); line-height: 1.55; margin-top: .2rem; }
.form-fineprint a { color: var(--accent-ink); text-decoration: underline; }
.form-card .btn { grid-column: 1 / -1; width: 100%; margin-top: .4rem; }

.form-status { grid-column: 1 / -1; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #E7F6EE; color: #1b7a4e; border: 1px solid #bfe6d1; }
.form-status.error { background: #FDECE7; color: #b5381d; border: 1px solid #f6c8ba; }

.form-success-panel { display: none; text-align: center; padding: 2rem 1rem; }
.form-success-panel.show { display: block; }
.form-success-panel .ok-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.form-success-panel .ok-mark svg { width: 32px; height: 32px; }

@media (max-width: 860px) {
  .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Inner-page content blocks
   ------------------------------------------------------------------------- */
.container.narrow { max-width: 820px; }
.prose { overflow-wrap: anywhere; word-break: break-word; }
.prose p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split .eyebrow { margin-bottom: 1rem; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .65rem; color: var(--ink-800); font-size: .98rem; }
.feature-list li svg { width: 20px; height: 20px; flex: none; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 3px; margin-top: .1rem; }

.prose.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .9rem; }
.prose.legal h2:first-child { margin-top: 0; }
.legal-list { display: grid; gap: .7rem; margin: .4rem 0 1.2rem; }
.legal-list li { position: relative; padding-left: 1.4rem; color: var(--text-muted); font-size: 1.04rem; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

.mini-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.mini-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.mini-card p { color: var(--text-muted); font-size: .96rem; }

.linkcard { transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.linkcard:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.linkcard h3 { color: var(--accent-ink); }

/* Regulation cards */
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.reg-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.reg-logo { height: 54px; display: flex; align-items: center; margin-bottom: 1rem; }
.reg-logo img { max-height: 54px; max-width: 160px; object-fit: contain; }
.reg-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.reg-card p { color: var(--text-muted); font-size: .97rem; }

/* Office cards */
.office-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.office-card h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.office-card p { display: flex; align-items: center; gap: .6rem; color: var(--text-muted); padding: .3rem 0; }
.office-card svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.office-card a:hover { color: var(--accent-ink); }


@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-list { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Page hero (inner pages)
   ------------------------------------------------------------------------- */
.page-hero { background: var(--mist-100); color: var(--text); padding-block: clamp(2.4rem, 4.5vw, 3.8rem); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(45% 90% at 92% 0%, rgba(242,106,27,.07), transparent 62%); }
.page-hero h1 { color: var(--ink-900); font-size: clamp(1.9rem, 4vw, 3rem); margin-top: .2rem; }
.page-hero .lede { color: var(--text-muted); margin-top: .7rem; max-width: 46rem; }

/* -------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

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

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; max-width: 320px; }
  .grid-3, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .ref-cols { columns: 2; }
  .logo-grid, .logo-grid.cols-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .nav-list, .nav-tail .lang-switch, .nav-tail .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-tail { margin-left: auto; }
  .grid-3, .grid-2, .value-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .ref-cols { columns: 1; }
  .logo-grid, .logo-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .logo-cell { height: 76px; padding: .8rem; }

  /* Mobile drawer */
  .mobile-drawer {
    display: block; position: fixed; inset: 0; z-index: 200;
    background: var(--ink-900); color: var(--text-on-dark);
    padding: 1.5rem var(--gutter); overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease);
  }
  .mobile-drawer.is-open { transform: none; }
  .mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
  .mobile-drawer .brand { color: var(--white); }
  .mobile-drawer .drawer-close { background: none; border: 0; color: var(--white); }
  .mobile-drawer .drawer-close svg { width: 28px; height: 28px; }
  .mobile-drawer .m-group-label { font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); margin: 1.4rem 0 .5rem; }
  .mobile-drawer a:where(:not(.btn)) { display: block; padding: .6rem 0; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; color: var(--text-on-dark); border-bottom: 1px solid var(--border-dark); }
  .mobile-drawer a:where(:not(.btn)):hover { color: var(--accent-ink); }
  .mobile-drawer .btn { margin-top: 1.5rem; width: 100%; }
  body.drawer-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  /* The reference marquee is a core, gentle, decorative loop — keep it moving
     even under reduced-motion so it never looks broken/static. */
  .marquee-track { animation-duration: 46s !important; animation-iteration-count: infinite !important; }
  .marquee.rev .marquee-track { animation-duration: 54s !important; }
}

/* Inner pages share the header's left edge and a readable text measure. */
.inner-page .section { padding-block: clamp(3rem, 5vw, 4rem); }
.inner-page .reading-container { max-width: var(--maxw); }
.inner-page .prose { max-width: 72ch; }
.inner-page .prose p, .inner-page .legal-list li { color: var(--ink-700); }
.product-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.product-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.product-hero h1 { max-width: 20ch; line-height: 1.12; }
.product-hero .lede { font-size: 1.1rem; line-height: 1.75; color: var(--ink-700); max-width: 57ch; }
.product-hero .hero-actions { margin-top: 1.5rem; }
.capability-panel { padding: 1.75rem 2rem; background: var(--ink-900); color: var(--white); border-radius: var(--radius-lg); border-top: 3px solid var(--accent); }
.capability-panel .eyebrow { color: #ff9d64; }
.capability-panel li { padding-block: 1.2rem; border-bottom: 1px solid var(--border-dark); line-height: 1.5; }
.capability-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.overview-title { font-size: 1.5rem; margin-bottom: 1rem; }
.drawer-languages { display: flex; gap: 1.5rem; }
.drawer-languages [aria-current] { color: #ff9d64; }
html[lang="tr"] .eyebrow, html[lang="tr"] .group-label { letter-spacing: .06em; }
@media (max-width: 900px) { .product-intro { grid-template-columns: 1fr; } .product-hero h1 { max-width: 24ch; } }
@media (max-width: 760px) { .capability-panel { padding: 1.5rem; } .product-hero .hero-actions { gap: .7rem; } }

/* Turkish labels are longer; keep the home headline balanced with the visual. */
html[lang="tr"] .hero h1 { font-size: clamp(2.25rem, 4.8vw, 3.5rem); }

/* Keep the brighter accent legible on dark surfaces. */
.hero, .section--dark, .site-footer, .mobile-drawer, .capability-panel {
  --accent-ink: var(--accent);
  --focus-ring: #FF9D64;
}
.mobile-drawer .m-group-label { color: var(--text-on-dark-muted); }
.mobile-drawer .btn--primary, .mobile-drawer .btn--primary:hover { color: var(--white); border-color: transparent; }

/* ---------- AI chat assistant (assets/js/chat.js) ---------- */
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 56px; padding: 0 1.25rem 0 .4rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink-900); color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  box-shadow: 0 12px 30px rgba(14,14,16,.28), 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(14,14,16,.32), 0 0 0 1px rgba(255,255,255,.18); }
.chat-launcher:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.chat-avatar {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #FF8A3D 0%, var(--accent) 45%, var(--accent-hover) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.chat-avatar svg { width: 32px; height: 32px; overflow: visible; }
.chat-avatar .i-close { width: 22px; height: 22px; color: var(--white); }
.chat-launcher .i-close, .chat-launcher[aria-expanded="true"] .i-bot, .chat-launcher[aria-expanded="true"] .chat-launcher-label { display: none; }
.chat-launcher[aria-expanded="true"] { padding: 0 .4rem; }
.chat-launcher[aria-expanded="true"] .i-close { display: block; }
.chat-eye { transform-box: fill-box; transform-origin: center; animation: chat-blink 4.5s infinite; }
.chat-spark { transform-box: fill-box; transform-origin: center; animation: chat-twinkle 3s ease-in-out infinite; }
@keyframes chat-blink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.1); } }
@keyframes chat-twinkle { 0%, 70%, 100% { transform: none; opacity: 1; } 82% { transform: scale(.55); opacity: .5; } }
body.drawer-open .chat-launcher { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: 88px; z-index: 160;
  width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); font-family: var(--font-body);
}
.chat-panel[hidden], .chat-panel [hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: var(--ink-900); }
.chat-who { display: flex; align-items: center; gap: .75rem; }
.chat-who .chat-avatar { width: 40px; height: 40px; }
.chat-who .chat-avatar svg { width: 28px; height: 28px; }
.chat-title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--white); }
.chat-sub { display: flex; align-items: center; gap: .45rem; margin: .15rem 0 0; font-size: .78rem; color: var(--text-on-dark-muted); }
.chat-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-green); }
.chat-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-on-dark); cursor: pointer; }
.chat-close:hover { background: var(--ink-700); }
.chat-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chat-close svg { width: 20px; height: 20px; }

.chat-log { position: relative; flex: 1; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-alt); }
.chat-msg { max-width: 85%; padding: .65rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg--assistant { align-self: flex-start; background: var(--white); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--ink-900); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg--error { align-self: stretch; max-width: none; background: #FDF0EC; color: var(--error); border: 1px solid #F3C9BC; }
.chat-msg a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.chat-typing { display: flex; gap: 4px; padding: .85rem 1rem; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-300); animation: chat-dot 1.2s infinite ease-in-out; }
.chat-dot:nth-child(3) { animation-delay: .15s; }
.chat-dot:nth-child(4) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .8rem; background: var(--bg-alt); }
.chat-suggest button { padding: .4rem .75rem; border: 1px solid var(--control-border); border-radius: 999px; background: var(--white); color: var(--text); font: inherit; font-size: .82rem; cursor: pointer; }
.chat-suggest button:hover { border-color: var(--accent); color: var(--accent-ink); }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .75rem .75rem .5rem; border-top: 1px solid var(--border); }
.chat-form textarea { flex: 1; min-height: 42px; max-height: 132px; padding: .55rem .75rem; resize: none; border: 1px solid var(--control-border); border-radius: 12px; background: var(--white); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.4; }
.chat-form textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.chat-send { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--accent); color: var(--white); cursor: pointer; }
.chat-send:hover:not(:disabled) { background: var(--accent-hover); }
.chat-send:disabled { background: var(--mist-200); color: var(--slate-500); cursor: default; }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: 0 1rem .75rem; font-size: .75rem; line-height: 1.45; color: var(--text-muted); }
.chat-note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.chat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  .chat-launcher, .chat-launcher[aria-expanded="true"] { right: 16px; bottom: 16px; height: auto; padding: 0; background: none; border-radius: 50%; box-shadow: 0 10px 26px rgba(242,106,27,.4), 0 2px 6px rgba(14,14,16,.15); }
  .chat-launcher:hover { box-shadow: 0 10px 26px rgba(242,106,27,.4), 0 2px 6px rgba(14,14,16,.15); }
  .chat-launcher .chat-avatar { width: 56px; height: 56px; }
  .chat-launcher .chat-avatar svg { width: 38px; height: 38px; }
  .chat-launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-panel { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
  body.chat-open { overflow: hidden; }
  body.chat-open .chat-launcher { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher { transition: none; }
  .chat-eye, .chat-spark { animation: none; }
  .chat-dot { animation: none; opacity: .7; }
}
