/* ==========================================================
   MINTEK PRO — styles (shared by all pages and languages)
   Monochrome, light and dark themes.
   ========================================================== */

:root,
[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-2: #efeff1;
  --text: #0b0b0c;
  --muted: #5d6068;
  --faint: #6e7178;
  --border: rgba(0, 0, 0, .09);
  --border-strong: rgba(0, 0, 0, .18);
  --header: rgba(255, 255, 255, .78);
  --glow: rgba(0, 0, 0, 0);
  --halo: rgba(0, 0, 0, .08);
  --pop-shadow: 0 10px 30px -8px rgba(0, 0, 0, .18);
  --btn-bg: #0b0b0c;
  --btn-text: #ffffff;
  --btn-hover: #2a2b2e;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #08090a;
  --surface: #0f1011;
  --surface-2: #16171a;
  --text: #f7f8f8;
  --muted: #8a8f98;
  --faint: #7d8189;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --header: rgba(8, 9, 10, .72);
  --glow: rgba(255, 255, 255, .06);
  --halo: rgba(255, 255, 255, .12);
  --pop-shadow: 0 12px 32px -8px rgba(0, 0, 0, .7);
  --btn-bg: #f7f8f8;
  --btn-text: #08090a;
  --btn-hover: #d9dadc;
  color-scheme: dark;
}

:root {
  --radius: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--border-strong) var(--bg);
  accent-color: var(--text);
}
::selection { background: var(--text); color: var(--bg); }
[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 500; }

h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; color: var(--text); }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: 1.05rem; line-height: 1.35; letter-spacing: -.01em; font-weight: 500; }
p  { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
/* Two-tone headlines: the second clause steps back to grey. */
.accent { color: var(--muted); }

.arr { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  height: 44px;
  padding: 0 1.15em;
  border-radius: var(--radius-sm);
  font: 500 .95rem/1 var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover .arr { transform: translateX(2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-sm { height: 34px; padding: 0 .9em; font-size: .87rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.logo { display: inline-flex; align-items: center; margin-right: auto; color: var(--text); }
.logo-svg { height: 20px; width: auto; }
.logo-sm .logo-svg { height: 17px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--muted); font-size: .9rem; font-weight: 400; transition: color .15s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--text); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-menu { position: relative; display: inline-flex; align-items: center; gap: 2px; font-size: .8rem; font-weight: 500; }
/* no-JS fallback: plain links */
.lang-menu > a, .lang-menu > span { padding: .3em .5em; border-radius: 6px; color: var(--muted); }
.lang-menu > span[aria-current] { color: var(--text); background: var(--surface); }
.lang-btn {
  height: 34px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 9px 0 11px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: 500 .8rem/1 var(--font);
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.lang-btn:hover, .lang-menu.open .lang-btn { border-color: var(--border-strong); }
.chev, .tick { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chev { color: var(--muted); transition: transform .2s var(--ease); }
.lang-menu.open .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 190px;
  margin: 0; padding: 4px; list-style: none;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--pop-shadow);
}
.lang-list[hidden] { display: none; }
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .9rem; font-weight: 400;
}
.lang-list a:hover, .lang-list a:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.lang-list a[aria-current] { color: var(--text); font-weight: 500; }
.lang-list .code { font-size: .74rem; color: var(--faint); letter-spacing: .03em; }

.theme-toggle, .nav-toggle {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; color: var(--text); }
.nav-toggle span { width: 15px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero / page header ---------- */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero { padding: clamp(80px, 13vh, 144px) 0 clamp(72px, 11vh, 120px); }
.page-hero { padding: clamp(64px, 10vh, 112px) 0 clamp(40px, 6vh, 64px); }
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 70% 0%, var(--glow), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 40%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 40%, transparent);
  pointer-events: none;
}
.hero .container, .page-hero .container { position: relative; }
.hero-copy { max-width: 860px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 34em; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2.2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 38em; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  display: flex; flex-direction: column;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
a.card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .more {
  margin-top: auto; padding-top: 1.4rem;
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--text); font-weight: 500; font-size: .88rem;
}
a.card:hover .more .arr { transform: translateX(2px); }
.icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 36px;
}
.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* AI list */
.ai-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.ai-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.ai-list h3 { margin-bottom: .3em; }
.ai-list p { color: var(--muted); margin: 0; font-size: .93rem; }

/* Product */
.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
}
.product h2 { margin-bottom: .3em; }
.product .btn { margin-top: .6rem; }
.product-tag {
  display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 500;
  padding: .3em .75em;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--border); }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 15px 2px; font-size: .95rem; border-bottom: 1px solid var(--border); }
.checklist li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Steps: the order is the content */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }
.step-n {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: .8rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-bottom: 40px;
}

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.05rem; max-width: 34em; }
.about-values { display: grid; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.value { padding: 22px 24px; border-bottom: 1px solid var(--border); }
.value:last-child { border-bottom: 0; }
.value h3 { margin-bottom: .2em; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
}
section:has(> .container > .cta-band) { padding-top: 0; border-top: 0; }
.cta-band h2 { margin: 0 0 .25em; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta-band p { color: var(--muted); margin: 0; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--border); }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-list .label { width: 90px; flex-shrink: 0; color: var(--muted); font-size: .9rem; }
.contact-list a { font-weight: 400; text-decoration: underline; text-decoration-color: var(--border-strong); text-decoration-thickness: 1px; text-underline-offset: .25em; transition: text-decoration-color .15s var(--ease); }
.contact-list a:hover { text-decoration-color: currentColor; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .84rem; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: .7em .85em;
  color: var(--text);
  caret-color: var(--text);
  font: 300 .97rem/1.45 var(--font);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75em center; background-size: 16px; padding-right: 2.4em; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); opacity: 1; }
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px var(--bg) inset;
  transition: background-color 9999s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--halo); }
/* Monochrome system: an invalid field gets a heavier dashed edge plus the message below. */
.field .invalid, .field .invalid:focus { border: 1.5px dashed var(--text); }
.form-status { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.form-status.error, .form-status.ok { color: var(--text); font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.footer-note { color: var(--muted); margin: .85rem 0 0; font-size: .9rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: .9rem; transition: color .15s var(--ease); }
.footer-nav a:hover { color: var(--text); }
.copyright { grid-column: 1 / -1; color: var(--faint); font-size: .84rem; margin: 10px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---------- Theme switch: a quick crossfade ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ai-inner, .product, .about, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav .btn { margin-top: 16px; height: 44px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { gap: 10px; }
  .logo-svg { height: 17px; }
  h1 { font-size: clamp(2rem, 9.4vw, 2.8rem); }
  .card-grid, .ai-list, .steps, .field-row { grid-template-columns: 1fr; }
  .icon { margin-bottom: 24px; }
  .step-n { margin-bottom: 20px; }
  .product { padding: 26px 20px; }
  .contact-form { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .logo-svg { height: 15px; }
}
