/* AXYZTANT corporate site v5.1 — logo palette v1.0 + NVIRIA accent */

:root {
  /* Logo palette — AXYZTANT-LOGO-DESIGN-v1.0.md §3 */
  --axyz-navy-900: #002070;
  --axyz-navy-800: #003090;
  --axyz-navy-700: #03267a;
  --axyz-royal-600: #0040b0;
  --axyz-royal-500: #0050c8;
  --axyz-blue-400: #0068e0;
  --axyz-cyan-300: #0080f0;
  --axyz-cyan-200: #0090f8;
  --axyz-sky-100: #85d1fb;
  --axyz-ice-050: #daffff;
  --axyz-white-glow: #f0f8f8;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: rgba(240, 248, 248, 0.9);
  --border: rgba(218, 255, 255, 0.55);
  --tint-ice: rgba(218, 255, 255, 0.35);
  --tint-ice-soft: rgba(218, 255, 255, 0.14);
  --text: #1e293b;
  --heading: var(--axyz-navy-900);
  --muted: #4a5d78;
  --muted-2: #64748b;

  /* Semantic — mapped from logo tokens */
  --blue: var(--axyz-royal-600);
  --blue-dark: var(--axyz-navy-900);
  --blue-bright: var(--axyz-blue-400);
  --brand-tagline: #0068e0;
  --cyan: var(--axyz-cyan-300);
  --blue-soft: rgba(0, 64, 176, 0.1);
  --blue-soft-border: rgba(0, 64, 176, 0.2);
  --blue-soft-tag: rgba(0, 64, 176, 0.15);
  --blue-slogan: var(--axyz-royal-500);
  --blue-shadow: rgba(0, 32, 112, 0.22);
  --hero-tint: var(--tint-ice);

  --indigo: var(--axyz-blue-400);
  --nviria-bg: #f0fafb;
  --nviria-border: #c8e8ec;
  --nviria-cyan: #1ed2d2;
  --nviria-blue: #005aaa;
  --nviria-text: #001e3c;

  --grad-hero: radial-gradient(ellipse 90% 70% at 50% -15%, rgba(133, 209, 251, 0.28), transparent 68%);
  --grad-brand: linear-gradient(135deg, #0040b0 0%, #0068e0 55%, #0080f0 100%);
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-3: 0 24px 64px rgba(15, 23, 42, 0.1);
  --r-md: 14px;
  --r-lg: 20px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: "Space Grotesk", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: 0.01ms !important; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

.skip {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  padding: 10px 16px; background: var(--text); color: #fff; z-index: 999; border-radius: 8px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6vw, 80px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt {
  background: linear-gradient(180deg, var(--tint-ice-soft), #fff 68%);
  border-block: 1px solid var(--border);
}
.center { text-align: center; }
.measure { max-width: 58ch; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.eyebrow--nviria { color: var(--nviria-blue); }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; color: var(--heading); }
.h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); color: var(--heading); }
.h1 .text-gradient { color: transparent; }
.h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); margin-top: 6px; }
.h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); line-height: 1.5; margin-top: 16px; }
.body { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px var(--blue-shadow); }
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text); border-color: #cbd5e1; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-nviria {
  background: linear-gradient(135deg, var(--nviria-cyan), var(--nviria-blue));
  color: #fff; box-shadow: 0 10px 28px rgba(0, 90, 170, 0.25);
}
.btn-nviria:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 999px; }
.btn-block { width: 100%; }
.icon-inline { flex-shrink: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding-block: 4px;
}
.brand-mark-wrap {
  flex-shrink: 0;
  width: 58px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark {
  width: 58px;
  height: 58px;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  display: block;
  transform: translateY(6px);
}
.brand-text-wrap {
  display: flex; flex-direction: column; justify-content: center;
  gap: 0;
  font-family: var(--font-brand);
}
.brand-wordmark {
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.brand-name.brand-wordmark { font-size: 1.265rem; }
.brand-name-a,
.brand-name-ant {
  color: var(--axyz-navy-900);
  letter-spacing: 0.03em;
}
.brand-name-xyzt {
  color: var(--axyz-cyan-300);
  letter-spacing: 0.05em;
}
.brand-accent {
  display: block;
  height: 1px;
  width: 100%;
  margin: 5px 0 4px;
  border-radius: 0.5px;
  background: linear-gradient(90deg, var(--axyz-cyan-300) 0%, var(--axyz-navy-900) 100%);
}
.brand-slogan {
  display: block;
  font-family: inherit;
  font-size: 10.8px;
  font-weight: 400;
  color: var(--brand-tagline);
  text-transform: lowercase;
  letter-spacing: 0.26em;
  line-height: 1.25;
  white-space: nowrap;
}
.brand-slogan--i18n {
  text-transform: none;
  letter-spacing: 0.12em;
  font-size: 11.4px;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 14px; font-weight: 600;
  color: var(--axyz-navy-800);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--axyz-cyan-300); }
.nav-contact-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex; padding: 4px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border);
}
.lang-btn {
  border: none; background: transparent; padding: 6px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--axyz-royal-600); cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-btn:hover { color: var(--axyz-cyan-300); }
.lang-btn.active { background: #fff; color: var(--axyz-navy-900); box-shadow: var(--shadow-1); }
.nav-burger { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--axyz-navy-900); }

.hero { position: relative; background: linear-gradient(180deg, var(--hero-tint), #fff 48%); border-bottom: 1px solid var(--border); }
.hero-glow { position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.hero-inner { position: relative; padding-block: clamp(36px, 6vw, 64px); }
.hero-badge {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(218, 255, 255, 0.55);
  border: 1px solid rgba(133, 209, 251, 0.32);
  color: var(--axyz-royal-600); font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-inner > .h1 { margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

.card-grid { display: grid; gap: 18px; margin-top: 28px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); }
.card p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 14px;
  background: var(--blue-soft);
}
.card-icon--sm { width: 44px; height: 44px; }
.card-icon-svg { flex-shrink: 0; }
.card-icon-blue { background: var(--blue-soft); color: var(--blue); }
.card-icon-cyan { background: rgba(0, 128, 240, 0.12); color: var(--cyan); }
.card-icon-indigo { background: rgba(0, 104, 224, 0.1); color: var(--axyz-blue-400); }

.section--nviria {
  background: var(--nviria-bg);
  border-block: 1px solid var(--nviria-border);
}
.nviria-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
.nviria-head {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 8px 0 18px;
}
.nviria-logo-wrap {
  width: 112px;
  height: 112px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 2px solid var(--nviria-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: var(--shadow-2);
  flex-shrink: 0;
  transform: translateY(3px);
}
.nviria-logo-wrap img { width: 100%; height: auto; object-fit: contain; }
.nviria-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 112px;
  font-family: var(--font-brand);
}
.nviria-wordmark {
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nviria-text);
  line-height: 1;
}
.nviria-lockup-accent {
  display: block;
  height: 1px;
  width: 100%;
  max-width: 12rem;
  margin: 8px 0 7px;
  border-radius: 0.5px;
  background: linear-gradient(90deg, var(--nviria-cyan) 0%, var(--nviria-blue) 100%);
}
.nviria-product-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nviria-blue);
  line-height: 1.3;
}
.nviria-headline {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--heading);
}
.nviria-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card--nviria { background: rgba(255, 255, 255, 0.95); border-color: var(--nviria-border); }
.feat-num { font-size: 11px; font-weight: 800; color: var(--nviria-cyan); letter-spacing: 0.1em; }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 16px; margin-bottom: 20px;
}
.tab-switch { display: flex; gap: 4px; padding: 4px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 10px; }
.tab-btn {
  border: none; background: transparent; padding: 10px 18px;
  border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer;
}
.tab-btn.active { background: var(--blue); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.domain-card { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); }
.domain-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.domain-card li { padding: 8px 0; color: var(--muted); font-weight: 600; border-bottom: 1px solid rgba(0,0,0,0.04); }
.domain-card li:last-child { border-bottom: none; }
.domain--blue { background: var(--blue-soft); border-color: var(--blue-soft-border); }
.domain--cyan { background: rgba(0, 128, 240, 0.08); border-color: rgba(0, 128, 240, 0.2); }
.domain--indigo { background: rgba(0, 104, 224, 0.08); border-color: rgba(0, 104, 224, 0.18); }

.card--model .model-sub { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); margin: 0 0 8px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.portfolio-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
}
.portfolio-media {
  background: var(--surface);
  height: 200px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.portfolio-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.portfolio-media--rammdex {
  padding: 28px 32px;
}
.portfolio-media--rammdex img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 6px;
}
.portfolio-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.portfolio-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.portfolio-sub { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px; background: var(--surface-3); color: var(--muted);
}
.tag--blue { background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-soft-tag); }

.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 28px; text-align: center;
}
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; align-items: center;
}
.team-avatar {
  width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; box-shadow: var(--shadow-2); margin-bottom: 12px; background: var(--surface-3);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-role {
  font-family: var(--font-brand);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--axyz-royal-600);
  margin: 4px 0 10px;
  line-height: 1.4;
}
.team-bio { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.contact-section { background: var(--surface); border-top: 1px solid var(--border); }
.contact-panel {
  max-width: 560px; margin: 20px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-2);
}
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field-optional { font-weight: 500; color: var(--muted-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-hint { font-size: 13px; color: var(--muted-2); margin-top: 12px; text-align: center; }
.form-error { color: #b91c1c; font-size: 14px; margin-top: 12px; text-align: center; }
.form-success { text-align: center; padding: 24px 0; color: var(--muted); }
.contact-panel.is-submitted .contact-form { display: none; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 40px 20px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo {
  font-family: var(--font-brand);
  font-size: 1.155rem; font-weight: 700;
  line-height: 1;
  display: block; margin-bottom: 12px;
}
.footer-contact { list-style: none; padding: 0; margin: 16px 0 0; }
.footer-contact li { margin-bottom: 8px; }
.footer-contact a:hover { color: var(--blue-bright); }
.footer-col h4 { color: var(--heading); margin: 0 0 12px; font-size: 1rem; }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--blue-bright); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-2); }
.site-ver { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--border); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-contact-mobile { display: block; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .brand-slogan { font-size: 9.6px; letter-spacing: 0.18em; white-space: normal; max-width: 11rem; }
  .brand-slogan--i18n { letter-spacing: 0.09em; font-size: 10.2px; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--header-h); left: 0; right: 0; z-index: 99;
    background: #fff; padding: 20px var(--gutter) 28px;
    border-bottom: 1px solid var(--border); align-items: flex-start;
  }
  .nviria-grid, .footer-grid { grid-template-columns: 1fr; }
  .nviria-head { gap: 16px; margin-bottom: 14px; }
  .nviria-logo-wrap { width: 96px; height: 96px; padding: 12px; }
  .nviria-lockup { min-height: 96px; }
  .nviria-feats { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .card-grid--3, .portfolio-grid, .team-grid { grid-template-columns: 1fr; }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
