/* =============================================
   Synesys Kft. — synesys.hu
   Dark premium-tech marketing site
   ============================================= */

:root {
  /* Dark theme (default) — aligned with topintel.pro */
  --bg-primary:    #0d1117;
  --bg-secondary:  #161b22;
  --bg-card:       #1c2128;
  --bg-card-hover: #232b34;
  --accent:        #8c44f0;
  --accent-glow:   rgba(140, 68, 240, 0.15);
  --accent2:       #3fb1cd;
  --accent2-glow:  rgba(63, 177, 205, 0.15);
  --text-primary:  #e6edf3;
  --text-muted:    #8b949e;
  --text-faint:    #6e7681;
  --border:        rgba(240, 246, 252, 0.10);
  --border-hover:  rgba(140, 68, 240, 0.45);
  --btn-text:      #ffffff;
  --nav-bg:        rgba(13, 17, 23, 0.82);
  --panel-bg:      rgba(22, 27, 34, 0.98);
  --grid-line:     rgba(140, 68, 240, 0.03);
  --shadow:        rgba(1, 4, 9, 0.6);
  --shadow-soft:   rgba(140, 68, 240, 0.12);
  --hairline:      rgba(240, 246, 252, 0.06);
  --track:         rgba(240, 246, 252, 0.07);
  --radius:        8px;
  --radius-lg:     16px;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --font-display:  'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw:          1140px;
}

[data-theme="light"] {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f3f4f8;
  --bg-card:       #ffffff;
  --bg-card-hover: #f6f6fb;
  --accent:        #7c3aed;
  --accent-glow:   rgba(124, 58, 237, 0.12);
  --accent2:       #1597b8;
  --accent2-glow:  rgba(63, 177, 205, 0.14);
  --text-primary:  #0d1117;
  --text-muted:    #57606a;
  --text-faint:    #8b949e;
  --border:        rgba(13, 17, 23, 0.10);
  --border-hover:  rgba(124, 58, 237, 0.45);
  --btn-text:      #ffffff;
  --nav-bg:        rgba(255, 255, 255, 0.82);
  --panel-bg:      rgba(255, 255, 255, 0.98);
  --grid-line:     rgba(13, 17, 23, 0.035);
  --shadow:        rgba(13, 17, 23, 0.12);
  --shadow-soft:   rgba(124, 58, 237, 0.12);
  --hairline:      rgba(13, 17, 23, 0.08);
  --track:         rgba(13, 17, 23, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- Grid noise texture overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.accent  { color: var(--accent); }
.accent2 { color: var(--accent2); }
.mono    { font-family: var(--font-mono); font-size: 0.85em; }

a { color: inherit; }

/* ===================== NAV ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-bottom 0.3s;
}
#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo .accent { color: var(--accent); }
.logo-sep { color: var(--accent); opacity: 0.7; }
.nav-logo-img { height: 30px; width: auto; display: block; }
.footer-brand .nav-logo { font-size: 1.2rem; }
.footer-brand .nav-logo-img { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.25;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; }
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Dropdown */
.has-dropdown > .dropdown-toggle { cursor: pointer; background: none; border: none; font: inherit; color: var(--text-muted); }
.has-dropdown:hover > .dropdown-toggle,
.has-dropdown.open > .dropdown-toggle { color: var(--accent); }
.dropdown-toggle svg { transition: transform 0.25s; opacity: 0.7; }
.has-dropdown:hover .dropdown-toggle svg,
.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 16px 50px var(--shadow);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  width: 100%;
}
.dropdown-menu a .dd-title { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; }
.dropdown-menu a .dd-desc  { color: var(--text-faint); font-size: 0.72rem; line-height: 1.4; }
.dropdown-menu a:hover { background: var(--accent-glow); }
.dropdown-menu a:hover .dd-title { color: var(--accent); }

/* Language toggle */
.lang-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-left: 0.75rem;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.lang-toggle button.active {
  background: var(--accent);
  color: var(--btn-text);
  border-radius: 20px;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  margin-left: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }

.nav-cta {
  margin-left: 0.5rem;
}
.nav-cta a {
  background: var(--accent);
  color: var(--btn-text) !important;
  font-weight: 700;
  padding: 0.45rem 1rem;
}
.nav-cta a:hover { filter: brightness(1.1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav — breakpoint raised: the menu grew (consulting label, pricing, news items) */
@media (max-width: 1360px) {
  #navbar { padding: 0 1.25rem; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.75rem 1rem; font-size: 1rem; }
  .nav-links > li { width: 100%; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    min-width: 0;
    background: transparent;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin: 0.25rem 0 0.5rem 0.75rem;
    padding: 0 0 0 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .has-dropdown.open .dropdown-menu { max-height: 400px; }

  .lang-toggle { margin: 0.5rem 0 0; align-self: flex-start; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta a { display: inline-block; text-align: center; }
}

/* ===================== LAYOUT / SECTIONS ===================== */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 2rem;
}
@media (max-width: 600px) { .section-inner { padding: 3.5rem 1.25rem; } }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.section-title { margin-bottom: 3rem; max-width: 720px; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.center .section-label { display: block; }
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 1.05rem;
}
.section-title.center p { margin-left: auto; margin-right: auto; }

.alt-bg { background: var(--bg-secondary); }

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.78rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(140, 68, 240, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent2-glow);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.78rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--accent2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  background: var(--accent2-glow);
  box-shadow: 0 0 18px rgba(63, 177, 205, 0.30);
}

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===================== HERO (generic) ===================== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(140,68,240,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(63,177,205,0.10) 0%, transparent 60%);
}
.hero.compact { min-height: 70vh; }

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-inner.single { grid-template-columns: 1fr; max-width: 860px; text-align: center; }
.hero-inner.single .hero-cta,
.hero-inner.single .hero-badge { justify-content: center; }
.hero-inner.single .hero-sub { margin-left: auto; margin-right: auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-inner.single .hero-stats { justify-content: center; }
.stat-item { text-align: left; }
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
}

/* ===================== DASHBOARD MOCKUP (SVG/CSS) ===================== */
.hero-visual { position: relative; }
.mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 24px 70px var(--shadow);
  position: relative;
  overflow: hidden;
}
.mock::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%, var(--accent2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.mock-bar { display: flex; gap: 0.4rem; margin-bottom: 0.85rem; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--text-faint); opacity: 0.5; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.mock-tile {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem;
}
.mock-tile.wide { grid-column: 1 / -1; }
.mock-tile .mk-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.mock-tile .mk-num { font-size: 1.3rem; font-weight: 800; color: var(--accent); font-family: var(--font-mono); margin-top: 0.2rem; }
.mock-tile .mk-num.purple { color: var(--accent2); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 38px; margin-top: 0.5rem; }
.spark i {
  display: block; flex: 1;
  background: linear-gradient(180deg, var(--accent), rgba(140,68,240,0.2));
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: rise 1.2s ease both;
}
@keyframes rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.gauge {
  height: 6px; border-radius: 3px; margin-top: 0.6rem;
  background: linear-gradient(90deg, var(--accent) 0 var(--w, 70%), var(--track) var(--w, 70%));
}

/* ===================== CARDS GRID (generic) ===================== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-soft);
}

.icon-box {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--accent-glow);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
}
.icon-box.purple { background: var(--accent2-glow); border-color: rgba(63,177,205,0.35); color: var(--accent2); }
.icon-box svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* Product card (linked) */
.product-card { display: flex; flex-direction: column; }
.product-card .card-link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.product-card:hover .card-link { gap: 0.7rem; }
.product-card .tag-mini {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.product-card.top-accent { position: relative; overflow: hidden; }
.product-card.top-accent::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.product-card.top-accent:hover::before { transform: scaleX(1); }

/* Bulleted feature lists inside cards */
.feature-list { list-style: none; margin-top: 0.4rem; }
.feature-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: flex-start; gap: 0.6rem;
  line-height: 1.5;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '▸'; color: var(--accent); flex-shrink: 0; font-size: 0.65rem; margin-top: 0.35rem;
}

/* ===================== SOURCE / CHANNEL CHIPS ===================== */
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--text-primary); transform: translateY(-2px); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.chip .dot.p { background: var(--accent2); }

/* ===================== SPLIT FEATURE (text + visual) ===================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split.reverse .split-visual { order: -1; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split.reverse .split-visual { order: 0; } }
.split h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.split p { color: var(--text-muted); margin-bottom: 1rem; }

/* ===================== HIGHLIGHT / CASE BAND ===================== */
.highlight {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(63,177,205,0.12) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 700px) { .highlight { grid-template-columns: 1fr; padding: 1.75rem; } }
.highlight .big-num {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.highlight h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.highlight p { color: var(--text-muted); }

/* ===================== SCREENSHOT FRAME ===================== */
.screenshot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  margin: 0;
  box-shadow: 0 24px 70px var(--shadow);
  position: relative;
}
.screenshot::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 45%, var(--accent2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}
.screenshot img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.screenshot figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  padding: 0.7rem 0.4rem 0.2rem;
}
.screenshot img { cursor: zoom-in; }

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
  background: rgba(1, 4, 9, 0.9);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lb-in 0.2s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lightbox-close:hover { color: var(--accent); border-color: var(--accent); }

/* ===================== PRICING ===================== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 50px var(--shadow-soft); }
.price-card .tier-name { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.price-card .tier-tag { display: inline-block; font-size: 0.65rem; font-weight: 700; background: var(--accent); color: var(--btn-text); padding: 0.15rem 0.55rem; border-radius: 20px; margin-bottom: 0.75rem; }
.price-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.price-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin: 0.1rem 0 0.9rem; }
.price-amount .per { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-left: 0.3rem; }
.price-card .tier-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.25rem; }
.price-card .feature-list { flex: 1; margin-bottom: 1.5rem; }
.price-card .btn-secondary, .price-card .btn-primary { width: 100%; justify-content: center; }

/* ===================== TEAM CARDS ===================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow-soft); }
.team-card .role { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.team-card .role-sub { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.team-card.span-2 { grid-column: span 2; }
@media (max-width: 760px) { .team-card.span-2 { grid-column: span 1; } }
.subroles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.subrole { border-left: 2px solid var(--border); padding-left: 0.9rem; }
.subrole .sr-title { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.subrole .sr-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; line-height: 1.5; }

/* ===================== ABOUT (consulting) ===================== */
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-muted); margin-bottom: 1.25rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.profile-card img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(15%) contrast(1.05);
  margin-bottom: 1rem;
}
.profile-card .pc-name { font-weight: 700; font-size: 1.05rem; }
.profile-card .pc-role { color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; margin-top: 0.25rem; }

/* ===================== PARTNER BAND ===================== */
.partner-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.partner-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 2rem; text-align: center; }
.partner-inner .partner-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.25rem; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; }
.partner-logos span { font-weight: 700; font-size: 1.05rem; color: var(--text-muted); opacity: 0.75; transition: opacity 0.2s, color 0.2s; letter-spacing: -0.01em; }
.partner-logos span:hover { opacity: 1; color: var(--text-primary); }

/* ===================== CTA BAND ===================== */
.cta-band {
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(140,68,240,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(63,177,205,0.10) 0%, transparent 60%),
    var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.cta-inner { max-width: 720px; margin: 0 auto; padding: 5rem 2rem; text-align: center; }
.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 2rem; line-height: 1.7; }
.cta-inner .btn-row { justify-content: center; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.contact-link:hover { border-color: var(--accent); background: var(--accent-glow); transform: translateY(-3px); }
.contact-link svg { flex-shrink: 0; color: var(--accent); }
.contact-link .cl-label { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-link .cl-value { font-weight: 600; font-size: 0.95rem; }

/* ===================== CONTACT FORM ===================== */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-field select { cursor: pointer; }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.form-consent input { margin-top: 0.15rem; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.form-consent a { color: var(--accent); text-decoration: none; }
.form-consent a:hover { text-decoration: underline; }
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 0.3rem; }
.form-note {
  display: none;
  margin-top: 0.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--accent2-glow);
  border: 1px solid var(--accent2);
}
.form-note.show { display: block; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===================== FOOTER ===================== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-brand .nav-logo { font-size: 1.2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.75rem; max-width: 320px; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 1rem; font-weight: 700; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.875rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact { margin-top: 1.1rem; font-style: normal; font-size: 0.82rem; color: var(--text-muted); line-height: 1.75; }
.footer-contact strong { color: var(--text-primary); font-weight: 700; }
.footer-contact a { color: var(--accent); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-bottom .mono { font-family: var(--font-mono); }
.footer-bottom a { color: var(--text-faint); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ===================== SCROLL ANIMATIONS ===================== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 0.40s; }
.stagger.visible > *:nth-child(7) { opacity:1; transform:none; transition-delay: 0.47s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .fade-up, .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ===================== SCROLLBAR / SELECTION ===================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::selection { background: rgba(140,68,240,0.30); color: var(--text-primary); }

/* ===================== COOKIE CONSENT ===================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 16px);
  width: min(720px, calc(100vw - 2rem));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.4rem;
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.show { opacity: 1; transform: translate(-50%, 0); }

.cookie-title { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.4rem; }
.cookie-text { font-size: 0.84rem; line-height: 1.55; color: var(--text-muted); margin: 0 0 0.9rem; }

.cookie-details { margin: 0 0 0.9rem; display: grid; gap: 0.6rem; }
.cookie-cat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  background: var(--bg-secondary);
}
.cookie-cat-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 600; color: var(--text-primary);
  cursor: default;
}
.cookie-cat-title input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
label.cookie-cat-title { cursor: pointer; }
.cookie-cat-desc { font-size: 0.76rem; line-height: 1.5; color: var(--text-faint); margin: 0.35rem 0 0; }

.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-actions .btn-primary, .cookie-actions .btn-secondary {
  padding: 0.55rem 1.1rem; font-size: 0.82rem;
}

.cookie-meta { display: flex; gap: 1.1rem; margin-top: 0.8rem; }
.cookie-link {
  background: none; border: none; padding: 0; font: inherit;
  font-size: 0.76rem; color: var(--text-faint);
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; transition: color 0.2s;
}
.cookie-link:hover { color: var(--accent); }

.cookie-settings-link {
  background: none; border: none; padding: 0; font: inherit;
  font-size: 0.8rem; color: var(--text-faint);
  cursor: pointer; transition: color 0.2s;
}
.cookie-settings-link:hover { color: var(--accent); }

@media (max-width: 560px) {
  .cookie-banner { bottom: 0.5rem; padding: 1rem 1.1rem; }
  .cookie-actions .btn-primary, .cookie-actions .btn-secondary { width: 100%; justify-content: center; }
}

/* ===================== PRICE TABLE (arak.html) ===================== */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 560px; }
.price-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.price-table td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.price-table td:first-child { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.price-table td:last-child { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr.group td {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  background: var(--bg-secondary);
  padding: 0.55rem 1.1rem;
  white-space: normal;
}
.price-note { text-align: center; margin-top: 1.75rem; color: var(--text-faint); font-size: 0.85rem; }
.pricing-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ===================== NEWS / ARTICLES ===================== */
.news-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.article-body { max-width: 760px; margin: 0 auto; }
.article-body p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }
.article-body h2 { font-size: 1.35rem; margin: 2.1rem 0 0.75rem; color: var(--text-primary); }
.article-body ul { color: var(--text-muted); margin: 0 0 1rem 1.4rem; line-height: 1.7; }
.article-body li { margin-bottom: 0.4rem; }
.article-back { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2rem; }
.news-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top left;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  display: block;
}
.article-body .screenshot { margin: 1.5rem 0; }
