/* ============================================================
   A14 — Practical AI Solutions
   styles.css — v3  Dark Premium
   ============================================================ */

/* ─── 1. Design Tokens ─── */
:root {
  /* ── Core palette ── */
  --c-page:        #0d0f1c;   /* base page bg */
  --c-page-alt:    #111326;   /* alt section bg */
  --c-header:      #1a1d2b;   /* header = logo base */
  --c-card:        #161929;   /* card / panel bg */
  --c-card-hover:  #1a1d2f;
  --c-input:       #0f1120;   /* form input bg */
  --c-footer:      #02040e;   /* footer — deepest */

  /* ── Text ── */
  --c-heading:     #eceffe;
  --c-text:        #b8bcd8;
  --c-text-soft:   #8890b0;
  --c-text-muted:  #555d7a;

  /* ── Borders ── */
  --c-border:      rgba(255,255,255,0.07);
  --c-border-mid:  rgba(255,255,255,0.12);
  --c-border-hi:   rgba(255,255,255,0.20);

  /* ── Accent ── */
  --c-teal:        #00d4d4;
  --c-teal-dim:    rgba(0,212,212,0.18);
  --c-purple:      #8b5cf6;
  --c-purple-dim:  rgba(139,92,246,0.18);
  --c-success:     #10b981;
  --c-error:       #f87171;

  /* ── Gradients ── */
  --grad-cta:      linear-gradient(130deg, #00d4d4 0%, #8b5cf6 100%);
  --grad-cta-h:    linear-gradient(130deg, #00b8b8 0%, #7c3aed 100%);
  --grad-brand:    linear-gradient(90deg,  #00d4d4 0%, #8b5cf6 100%);
  --grad-hero:     linear-gradient(155deg, #07091a 0%, #0d1028 55%, #131840 100%);

  /* ── Glows ── */
  --glow-teal:     0 0 40px rgba(0,212,212,0.12);
  --glow-purple:   0 0 40px rgba(139,92,246,0.12);
  --glow-cta:      0 4px 24px rgba(0,212,212,0.28), 0 2px 10px rgba(139,92,246,0.2);
  --glow-cta-h:    0 8px 36px rgba(0,212,212,0.38), 0 4px 16px rgba(139,92,246,0.28);

  /* ── Typography ── */
  --font:          'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-feat:     'cv01' 1, 'ss01' 1, 'kern' 1;

  /* ── Spacing scale ── */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px;
  --sp-6:24px; --sp-8:32px; --sp-10:40px; --sp-12:48px;
  --sp-16:64px; --sp-20:80px; --sp-24:96px; --sp-28:112px;

  /* ── Component tokens ── */
  --header-h:      172px;
  --radius-xs:     6px;
  --radius-sm:     10px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-full:   999px;

  --shadow-xs:  0 1px 6px  rgba(0,0,0,0.5);
  --shadow-sm:  0 2px 14px rgba(0,0,0,0.55);
  --shadow:     0 4px 28px rgba(0,0,0,0.6);
  --shadow-md:  0 8px 48px rgba(0,0,0,0.65);
  --shadow-lg:  0 16px 72px rgba(0,0,0,0.72);

  --max-w:         1180px;
  --transition:    0.2s ease;
}

/* ─── 2. Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-feature-settings: var(--font-feat);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-feature-settings: var(--font-feat); }

/* ─── 3. Typography ─── */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--c-heading);
}
h4 {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--c-text-muted);
}

h1 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); line-height: 1.14; margin-bottom: var(--sp-3); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: var(--sp-3); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: var(--sp-2); }
h4 { margin-bottom: var(--sp-3); }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.08rem; line-height: 1.82; color: var(--c-text-soft); }

/* ─── 4. Eyebrow labels ─── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--c-teal);
  margin-bottom: var(--sp-3);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  background: rgba(0,212,212,0.08);
  border: 1px solid rgba(0,212,212,0.22);
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-teal);
  margin-bottom: var(--sp-5);
}
.eyebrow-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 8px var(--c-teal);
  flex-shrink: 0;
}

/* ─── 5. Layout ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.max-700    { max-width: 700px; }
.text-center { text-align: center; }
.text-center .max-700 { margin-left: auto; margin-right: auto; }

/* ─── 6. Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 3px;
}

/* Primary gradient CTA */
.btn-cta {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--glow-cta);
}
.btn-cta::after {
  content: '→';
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
  font-weight: 400;
  font-size: 1.05em;
  line-height: 1;
}
.btn-cta:hover {
  background: var(--grad-cta-h);
  transform: translateY(-3px);
  box-shadow: var(--glow-cta-h);
}
.btn-cta:hover::after { transform: translateX(4px); }
.btn-cta:active { transform: translateY(-1px); }

/* Ghost outline (hero) */
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
}
.btn-outline::after {
  content: '→';
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
  font-weight: 400;
  font-size: 1.05em;
  opacity: 0.65;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-3px);
}
.btn-outline:hover::after { transform: translateX(4px); opacity: 1; }

/* ─── 7. Header ─── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Exact match of logo background */
  background: var(--c-header);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 0 var(--c-border), 0 4px 24px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  height: 100%;
}

/* Logo */
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo       { height: 164px; width: auto; display: block; object-fit: contain; }
.logo-footer{ height: 44px; width: auto; display: block; object-fit: contain; }

/* Nav */
#main-nav { flex: 1; }
#main-nav ul { display: flex; gap: var(--sp-1); }

.nav-link {
  display: block;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-soft);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--c-heading); background: rgba(255,255,255,0.05); }

/* Active: gradient underline */
.nav-link.active { color: var(--c-heading); font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 1px; left: 13px; right: 13px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 1px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }

/* Language toggle */
.lang-toggle { display: flex; align-items: center; gap: var(--sp-1); }
.lang-sep    { color: var(--c-border-mid); font-size: 0.8rem; user-select: none; }

.lang-btn {
  padding: 5px 9px;
  border: none;
  background: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-text-muted);
  border-radius: var(--radius-xs);
  letter-spacing: 0.07em;
  transition: color var(--transition), background var(--transition);
}
.lang-btn:hover { color: var(--c-heading); background: rgba(255,255,255,0.06); }
.lang-btn.active { color: var(--c-teal); }

/* Header CTA — smaller, no arrow */
.header-cta { padding: 9px 20px; font-size: 0.86rem; }
.header-cta::after { content: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: none;
  background: none;
  border-radius: var(--radius-xs);
  padding: 9px;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text-soft);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav footer — hidden on desktop, shown only inside the mobile drawer */
.nav-mobile-footer { display: none; }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,6,15,0.72);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}
.nav-overlay.open { opacity: 1; }

/* ─── 8. Sections ─── */
.section         { display: block; }
.section[hidden] { display: none; }

.section-block           { padding: var(--sp-24) 0; }
.section-block.bg-alt    { background: var(--c-page-alt); }
.section-block--compact  { padding: var(--sp-20) 0; }

/* ─── 9. Hero ─── */
.hero {
  background: var(--grad-hero);
  padding: var(--sp-28) 0 var(--sp-20);
  overflow: hidden;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
}
/* Glowing orbs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 75% 45%, rgba(139,92,246,0.22) 0%, transparent 62%),
    radial-gradient(ellipse 35% 55% at 18% 65%, rgba(0,212,212,0.13) 0%, transparent 58%);
  pointer-events: none;
}
/* Dot-grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}

.hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.12rem;
  line-height: 1.78;
  margin-bottom: var(--sp-8);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.hero-ctas .btn-cta    { padding: 15px 30px; font-size: 1rem; }
.hero-ctas .btn-outline { padding: 14px 26px; font-size: 1rem; }

.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(0,212,212,0.22));
  animation: floatSvg 7s ease-in-out infinite;
}
@keyframes floatSvg {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40%       { transform: translateY(-10px) rotate(.4deg); }
  70%       { transform: translateY(-5px) rotate(-.2deg); }
}

/* ─── 10. Cards — shared ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-10);
}

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--c-border-mid);
  box-shadow: var(--shadow-md), var(--glow-teal);
}

/* ─── 11. Case Study Cards ─── */
.card-visual { height: 180px; overflow: hidden; background: #0d0f1e; }
.card-visual svg { width: 100%; height: 100%; }

.card-body { padding: var(--sp-6); }
.card-body h3 {
  color: var(--c-heading);
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: var(--sp-3);
}
.card-body p {
  font-size: 0.875rem;
  color: var(--c-text-soft);
  line-height: 1.72;
  margin: 0;
}

/* ─── 12. Service Cards ─── */
.services-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.service-card {
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
  overflow: hidden;
}
/* Gradient top bar on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow), var(--glow-purple); border-color: var(--c-border-mid); }

.service-icon { width: 52px; height: 52px; flex-shrink: 0; }
.service-card h3 { font-size: 1.02rem; color: var(--c-heading); margin-bottom: 0; }
.service-card p  { font-size: 0.875rem; color: var(--c-text-soft); line-height: 1.72; margin: 0; flex: 1; }

/* ─── 13. Contacts ─── */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-12);
  margin-top: var(--sp-10);
  align-items: start;
}

.contact-form-wrap { width: 100%; }
#contact-form { display: flex; flex-direction: column; gap: var(--sp-5); }

.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.field-optional { font-weight: 400; color: var(--c-text-muted); font-size: 0.78rem; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--c-input);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--c-heading);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-text-muted); }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555d7a' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
  cursor: pointer;
}
.form-group select option { background: var(--c-card); color: var(--c-heading); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(0,212,212,0.12);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(248,113,113,0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.char-count { font-size: 0.74rem; color: var(--c-text-muted); text-align: right; margin-top: 3px; }

.form-group input[type="file"] {
  padding: 9px 13px;
  font-size: 0.86rem;
  border-style: dashed;
  cursor: pointer;
  color: var(--c-text-soft);
}

.field-hint  { font-size: 0.74rem; color: var(--c-text-muted); margin-top: 2px; }
.field-error { font-size: 0.78rem; color: var(--c-error); font-weight: 500; min-height: 1.1em; display: block; }

/* ─── Custom Select Dropdown ─── */
.custom-select-wrap { position: relative; width: 100%; }

.cs-trigger {
  width: 100%;
  padding: 13px 16px;
  background: var(--c-input);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--c-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, border-radius 0.18s ease;
  text-align: left;
  line-height: 1.5;
}
.cs-trigger:hover { border-color: var(--c-border-hi); }
.cs-trigger:focus-visible {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(0,212,212,0.12);
}
.cs-trigger[aria-expanded="true"] {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(0,212,212,0.12);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.cs-trigger.invalid {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(248,113,113,0.1);
}

.cs-value { flex: 1; color: var(--c-heading); }
.cs-value.placeholder { color: var(--c-text-muted); }

.cs-arrow {
  flex-shrink: 0;
  color: var(--c-text-muted);
  transition: transform 0.22s ease, color 0.18s ease;
}
.cs-trigger[aria-expanded="true"] .cs-arrow { transform: rotate(180deg); color: var(--c-teal); }

.cs-list {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--c-card);
  border: 1px solid var(--c-teal);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,212,212,0.06);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  list-style: none;
  padding: 6px 0;
}
.cs-list.open { opacity: 1; transform: translateY(0); pointer-events: all; }

.cs-option {
  padding: 11px 16px;
  font-size: 0.915rem;
  color: var(--c-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: background 0.13s ease, color 0.13s ease;
  outline: none;
}
.cs-option::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.cs-option.cs-placeholder {
  color: var(--c-text-muted);
  font-size: 0.87rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 4px;
}
.cs-option.cs-placeholder::before { display: none; }
.cs-option:not(.cs-placeholder):hover { background: rgba(0,212,212,0.06); color: var(--c-heading); }
.cs-option:not(.cs-placeholder):hover::before { opacity: 1; }
.cs-option.selected { color: var(--c-teal); background: rgba(0,212,212,0.04); }
.cs-option.selected::before { opacity: 1; background: var(--c-teal); box-shadow: 0 0 6px rgba(0,212,212,0.5); }
.cs-option:focus-visible { background: rgba(0,212,212,0.08); color: var(--c-heading); }

/* Required asterisk */
.field-required { color: var(--c-teal); margin-left: 2px; font-weight: 700; }

/* Custom checkbox */
.form-check { flex-direction: row; align-items: flex-start; gap: 0; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--c-text);
  font-weight: 400;
  position: relative;
}
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox-custom {
  width: 20px; height: 20px; min-width: 20px;
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-xs);
  background: var(--c-input);
  transition: border-color 0.18s, background 0.18s;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.checkbox-custom::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease;
  margin-top: -2px;
}
.checkbox-label input:checked + .checkbox-custom { background: var(--c-teal); border-color: var(--c-teal); }
.checkbox-label input:checked + .checkbox-custom::after { transform: rotate(-45deg) scale(1); }
.checkbox-label input:focus-visible + .checkbox-custom { outline: 2px solid var(--c-teal); outline-offset: 2px; }

/* Submit — full-width pill */
.btn-submit { width: 100%; padding: 15px; font-size: 1rem; border-radius: var(--radius-full); margin-top: var(--sp-2); }

/* Form messages */
.form-message {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: var(--sp-2);
}
.form-message[hidden] { display: none; }
.form-error-msg { background: rgba(248,113,113,0.07); color: #fca5a5; border: 1px solid rgba(248,113,113,0.18); }

/* ─── Success Toast ─── */
.success-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  max-width: 380px;
  width: calc(100vw - 48px);
  pointer-events: none;
}
.success-toast[hidden] { display: none; }
.success-toast-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px 28px 20px;
  background: linear-gradient(135deg, #0d1b2a 0%, #112240 100%);
  border: 1px solid rgba(16,185,129,0.35);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(16,185,129,0.15);
  overflow: hidden;
  pointer-events: all;
  animation: toastIn 0.38s cubic-bezier(0.34,1.56,0.64,1) both;
}
.success-toast.hiding .success-toast-inner {
  animation: toastOut 0.3s ease-in forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(16px) scale(0.96); }
}
.success-toast-icon { flex-shrink: 0; }
.success-toast-icon svg .st-circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: drawCircle 0.5s ease forwards 0.15s;
}
.success-toast-icon svg .st-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.35s ease forwards 0.55s;
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.success-toast-body { flex: 1; min-width: 0; padding-top: 4px; }
.success-toast-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ecfdf5;
  margin: 0 0 4px;
}
.success-toast-msg {
  font-size: 0.875rem;
  color: #a7f3d0;
  margin: 0;
  line-height: 1.5;
}
.success-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(167,243,208,0.55);
  padding: 2px;
  line-height: 1;
  transition: color 0.15s;
  margin-top: 2px;
}
.success-toast-close:hover { color: #a7f3d0; }
.success-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #00d4d4);
  border-radius: 0 0 16px 16px;
  width: 100%;
  transform-origin: left;
  animation: toastProgress 3s linear forwards 0.1s;
}
@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
@media (max-width: 480px) {
  .success-toast { bottom: 16px; right: 16px; }
}

/* Contact info sidebar */
.contact-info-inner {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}
.contact-info-inner > p { font-size: 0.9rem; color: var(--c-text-soft); line-height: 1.75; margin: 0; }

.contact-detail { display: flex; flex-direction: column; gap: 5px; }
.contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--c-text-muted);
}
.contact-email { font-size: 0.9rem; font-weight: 600; color: var(--c-teal); word-break: break-all; transition: opacity var(--transition); }
.contact-email:hover { opacity: 0.75; }
.contact-detail span:last-child { font-size: 0.9rem; color: var(--c-text-soft); }

/* ─── 14. Vacancies ─── */
.vacancies-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-10); }

.vacancy-card { padding: var(--sp-8); position: relative; overflow: hidden; }

/* Gradient left accent on hover */
.vacancy-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-brand);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.vacancy-card:hover::before { opacity: 1; }
.vacancy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), var(--glow-teal); border-color: var(--c-border-mid); }

.vacancy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}
.vacancy-header h3 { font-size: 1.12rem; line-height: 1.3; margin: 0; flex: 1; min-width: 0; }

.vacancy-tag {
  background: rgba(139,92,246,0.1);
  color: rgba(167,139,250,0.9);
  border: 1px solid rgba(139,92,246,0.22);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 3px;
}

.vacancy-card > p { font-size: 0.93rem; color: var(--c-text-soft); margin-bottom: var(--sp-5); line-height: 1.7; }

.vacancy-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.vacancy-col ul { display: flex; flex-direction: column; gap: 9px; }
.vacancy-col ul li {
  font-size: 0.86rem;
  color: var(--c-text);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}
.vacancy-col ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grad-cta);
}

.vacancy-apply p { font-size: 0.86rem; color: var(--c-text-muted); margin-bottom: var(--sp-2); }
.link-inline { color: var(--c-teal); font-weight: 600; transition: opacity var(--transition); }
.link-inline:hover { opacity: 0.75; }

.culture-line {
  font-style: italic;
  color: var(--c-text-muted) !important;
  border-left: 2px solid var(--c-border-mid);
  padding-left: var(--sp-3);
  margin-top: var(--sp-2) !important;
  font-size: 0.84rem !important;
}

/* ─── 15. About Pillars ─── */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.about-pillar {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.about-pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.about-pillar:hover { transform: translateY(-4px); border-color: var(--c-border-mid); box-shadow: var(--shadow-md), var(--glow-teal); }
.about-pillar:hover::before { transform: scaleX(1); }
.about-pillar-icon { width: 48px; height: 48px; }
.about-pillar h3 { font-size: 1.02rem; color: var(--c-heading); margin-bottom: 0; }
.about-pillar p  { font-size: 0.875rem; color: var(--c-text-soft); line-height: 1.72; margin: 0; flex: 1; }

/* ─── 16. Footer ─── */
#site-footer {
  background: var(--c-footer);
  padding: var(--sp-16) 0 var(--sp-10);
  position: relative;
}
#site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--c-border-mid);
}
/* Gradient accent line inside the border */
#site-footer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0.5;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-6);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.28); margin: 0; }

.footer-nav { display: flex; gap: var(--sp-1); flex-wrap: wrap; justify-content: center; }
.footer-nav .nav-link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  padding: 6px 10px;
}
.footer-nav .nav-link:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.05); }
.footer-nav .nav-link.active::after { display: none; }

.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); text-align: right; margin: 0; }

/* ─── 16. Utilities ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
*:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }

/* ─── 17. Responsive — Large tablet (≤1024px) ─── */
@media (max-width: 1024px) {
  .hero { min-height: auto; padding: var(--sp-20) 0 var(--sp-16); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub   { margin: 0 auto var(--sp-8); }
  .hero-ctas  { justify-content: center; }
  .hero-visual { display: none; }

  .contacts-layout { grid-template-columns: 1fr; }
  .contact-info     { order: -1; }
  .contact-info-inner { position: static; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: var(--sp-5); }
  .footer-brand { align-items: center; }
  .footer-copy  { text-align: center; }
}

/* ─── 18. Responsive — Mobile (≤768px) ─── */
@media (max-width: 768px) {
  :root { --header-h: 100px; }
  .logo { height: 84px; }
  .about-pillars { grid-template-columns: 1fr; }

  /* Mobile nav drawer — dark */
  #main-nav {
    position: fixed;
    top: var(--header-h); right: 0; bottom: 0;
    width: min(300px, 88vw);
    background: var(--c-card);
    border-left: 1px solid var(--c-border-mid);
    box-shadow: -6px 0 48px rgba(0,0,0,0.65);
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 95;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  #main-nav.open { transform: translateX(0); }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: var(--sp-5) var(--sp-3) var(--sp-3);
    flex: 1;
  }
  .nav-link { display: block; padding: 14px 18px; font-size: 0.97rem; border-radius: var(--radius-sm); }
  .nav-link.active::after  { display: none; }
  .nav-link.active { background: rgba(255,255,255,0.05); color: var(--c-heading); }

  .nav-overlay { display: block; }
  .hamburger   { display: flex; }
  .header-cta  { display: none; }
  .header-inner { gap: var(--sp-3); }

  /* Mobile nav footer */
  .nav-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--c-border);
    margin-top: auto;
  }
  .nav-mobile-lang { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) 0; }
  .nav-mobile-lang .lang-btn { font-size: 0.85rem; padding: 7px 14px; }
  .nav-cta-mobile { width: 100%; padding: 14px; font-size: 0.95rem; justify-content: center; border-radius: var(--radius-full); }

  /* Hero — left-aligned on mobile */
  .hero { padding: var(--sp-16) 0 var(--sp-12); min-height: auto; }
  .hero-inner { text-align: left; }
  .hero-text h1 { font-size: clamp(1.85rem, 7.5vw, 2.6rem); }
  .hero-sub { margin-left: 0; margin-right: 0; font-size: 1rem; }
  .hero-ctas { justify-content: flex-start; }

  /* Sections */
  .section-block          { padding: var(--sp-16) 0; }
  .section-block--compact { padding: var(--sp-12) 0; }

  /* Cards */
  .cards-grid    { grid-template-columns: 1fr; gap: var(--sp-4); margin-top: var(--sp-8); }
  .services-grid { grid-template-columns: 1fr; }

  /* Vacancies */
  .vacancy-card    { padding: var(--sp-6) var(--sp-5); }
  .vacancy-details { grid-template-columns: 1fr; gap: var(--sp-5); }

  /* Footer */
  .footer-inner { gap: var(--sp-4); }
}

/* ─── 19. Two-col services / about at mid-mobile ─── */
@media (min-width: 500px) and (max-width: 768px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-pillars  { grid-template-columns: repeat(2, 1fr); }
}


/* ─── 20. Small phones (≤420px) ─── */
@media (max-width: 420px) {
  .container { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .contact-info-inner { padding: var(--sp-5); }
  .vacancy-header { flex-direction: column; align-items: flex-start; }
}

/* ─── 21. Print ─── */
@media print {
  body { background: #fff; color: #000; }
  #site-header, .hero-ctas, .btn, .hamburger, .lang-toggle { display: none; }
  .section[hidden] { display: block !important; }
  .hero { background: none; padding: 16px 0; }
  .hero::before, .hero::after { display: none; }
  .hero-text h1, .hero-sub { color: #000; }
  .card { border: 1px solid #ddd; }
}
