/* ===== Lexera AI Egypt — Cyber Green Theme ===== */
:root {
  --bg-deep: #030806;
  --bg: #050d0a;
  --bg-elevated: #0a1612;
  --bg-card: rgba(10, 28, 22, 0.65);
  --border: rgba(0, 255, 136, 0.12);
  --border-hover: rgba(0, 255, 136, 0.35);
  --green: #00ff88;
  --green-dim: #00cc6a;
  --green-glow: rgba(0, 255, 136, 0.4);
  --green-muted: rgba(0, 255, 136, 0.15);
  --cyan: #00e5c7;
  --text: #e8f5ef;
  --text-muted: #8aab9a;
  --text-dim: #5a7a6a;
  --font-sans: 'Outfit', 'Cairo', system-ui, sans-serif;
  --font-ar: 'Cairo', 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-ar);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

main,
header,
footer,
section {
  max-width: 100%;
  min-width: 0;
}

html[lang="en"] body { font-family: var(--font-sans); }

::selection {
  background: var(--green-muted);
  color: var(--green);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.nav-inner.container {
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

/* Grid canvas background */
#grid-canvas,
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: screen;
}

body:hover .cursor-glow { opacity: 0.15; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

.nav.scrolled {
  background: rgba(3, 8, 6, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  min-width: 0;
  flex-shrink: 1;
  max-width: 100%;
}

.logo-mark {
  width: 36px;
  height: 36px;
  color: var(--green);
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px var(--green-glow)); }
  50% { filter: drop-shadow(0 0 14px var(--green)); }
}

.logo-text { letter-spacing: -0.02em; }
.logo-ai { color: var(--green); font-weight: 600; }

.logo-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: var(--green-muted);
  color: var(--green);
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-width: 0;
}

.nav-links a {
  white-space: nowrap;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: border-color var(--transition), background var(--transition);
}

.lang-toggle:hover {
  border-color: var(--border-hover);
  background: var(--green-muted);
}

.lang-active { color: var(--green); font-weight: 600; }
.lang-inactive { color: var(--text-dim); }
.lang-sep { color: var(--text-dim); opacity: 0.5; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: rgba(3, 8, 6, 0.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}

.nav-mobile.is-open {
  display: flex;
}

@media (min-width: 769px) {
  .nav-mobile,
  .nav-mobile.is-open {
    display: none !important;
  }
}

.nav-mobile a {
  padding: 0.75rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-mobile a:hover {
  background: var(--green-muted);
  color: var(--green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dim) 100%);
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px var(--green-glow), 0 8px 24px rgba(0,0,0,0.3);
}

.btn-ghost {
  border: 1px solid var(--border-hover);
  color: var(--green);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--green-muted);
  border-color: var(--green);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  z-index: 2;
  overflow: hidden;
  width: 100%;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: min(900px, 100%);
  height: min(500px, 60vh);
  background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 65%);
  opacity: 0.25;
  pointer-events: none;
  animation: hero-breathe 6s ease-in-out infinite;
  transform: translate(-50%, 0);
}

@keyframes hero-breathe {
  0%, 100% { opacity: 0.2; transform: translate(-50%, 0) scale(1); }
  50% { opacity: 0.35; transform: translate(-50%, 0) scale(1.05); }
}

.hero-inner {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding-inline: 0.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--green);
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); opacity: 1; }
  50% { box-shadow: 0 0 0 8px transparent; opacity: 0.7; }
}

.hero-title {
  font-size: clamp(1.65rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero-title span { display: block; }

.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 50%, var(--green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  font-size: clamp(0.92rem, 3.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  width: 100%;
  margin: 0 auto 2rem;
  padding-inline: 0.25rem;
  overflow-wrap: break-word;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  max-width: 560px;
  margin: 0 auto;
}

.stat { text-align: center; }
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-mono);
}
.stat-suffix { font-size: 1rem; color: var(--green-dim); font-family: var(--font-mono); }
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal */
.hero-visual {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.terminal {
  width: 100%;
  max-width: 640px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 40px var(--green-muted);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-bar code {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  min-height: 200px;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--green);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.terminal-body .line,
.terminal-body .term-line {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.terminal-body .term-dim { color: var(--text-muted); padding-inline-start: 0.25rem; }
.terminal-body .term-success { color: var(--cyan); }
.terminal-body .term-warn { color: #ffc857; }
.terminal-body .line { opacity: 0; animation: type-in 0.3s forwards; }
.terminal-body .comment { color: var(--text-dim); }
.terminal-body .success { color: var(--cyan); }

@keyframes type-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* Tools Grid */
.tools { background: linear-gradient(180deg, transparent, var(--bg) 20%, var(--bg) 80%, transparent); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  width: 100%;
}

.tool-card {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 24px var(--green-muted);
}

.tool-card:hover::before { opacity: 1; }

.tool-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-muted);
  border-radius: 10px;
  color: var(--green);
  margin-bottom: 1rem;
}

.tool-icon svg { width: 22px; height: 22px; }

.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tool-link {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
  transition: gap var(--transition);
}

.tool-card:hover .tool-link { text-decoration: underline; }

/* Suite */
.suite {
  background: var(--bg);
  border-block: 1px solid var(--border);
}

.suite-header { text-align: center; margin-bottom: 3rem; }
.suite-header h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; margin: 0.5rem 0; }
.suite-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.suite-showcase { display: flex; flex-direction: column; gap: 2rem; }

.suite-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.suite-tab {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.suite-tab:hover,
.suite-tab.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-muted);
}

.suite-panel {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 320px;
}

.suite-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
}

.suite-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.suite-features li {
  position: relative;
  padding-inline-start: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.suite-features li::before {
  content: '▸';
  position: absolute;
  inset-inline-start: 0;
  color: var(--green);
}

.suite-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
}

.orbit-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px dashed var(--border-hover);
  border-radius: 50%;
  animation: orbit-spin 20s linear infinite;
}

.orbit-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-core {
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg));
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green);
  box-shadow: 0 0 40px var(--green-muted), inset 0 0 20px var(--green-muted);
  animation: core-pulse 3s ease-in-out infinite;
}

.orbit-core small {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 30px var(--green-muted); }
  50% { box-shadow: 0 0 50px var(--green-glow); }
}

/* Pipeline */
.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.pipe-step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.pipe-step:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
}

.pipe-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.pipe-step h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pipe-step p { font-size: 0.85rem; color: var(--text-muted); }

.pipe-connector {
  color: var(--green);
  opacity: 0.4;
  flex-shrink: 0;
}

html[dir="rtl"] .pipe-connector svg { transform: scaleX(-1); }

/* ===== News ===== */
.news-section {
  background: linear-gradient(180deg, transparent, var(--bg) 10%, var(--bg) 90%, transparent);
  border-block: 1px solid var(--border);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 24px var(--green-muted);
}

.news-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.news-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.news-card h3 a {
  color: var(--text);
  transition: color var(--transition);
}

.news-card h3 a:hover { color: var(--green); }

.news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.news-read {
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.news-read:hover { text-decoration: underline; }

/* Article page */
.article-page {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  min-height: 60vh;
}

.article-full {
  max-width: 760px;
  margin-inline: auto;
}

.article-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.article-back:hover { text-decoration: underline; }

.article-header {
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0.5rem 0 0.75rem;
}

.article-header time {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-hero-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 1.05rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-not-found {
  text-align: center;
  padding: 3rem 1rem;
}

.article-not-found h1 {
  margin-bottom: 1rem;
}

/* Security */
.security {
  position: relative;
  overflow: hidden;
}

.security-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--green-muted), transparent),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  pointer-events: none;
}

.security-header {
  text-align: center;
  margin-bottom: 3rem;
}

.shield-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--green);
  animation: shield-float 4s ease-in-out infinite;
}

@keyframes shield-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.sec-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.sec-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 30px var(--green-muted);
}

.sec-metric {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--green);
  margin-bottom: 0.5rem;
}

.sec-card h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.sec-card p { font-size: 0.85rem; color: var(--text-muted); }

.security-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sec-col h4 {
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sec-col li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-inline-start: 1rem;
  position: relative;
}

.sec-col li::before {
  content: '—';
  position: absolute;
  inset-inline-start: 0;
  color: var(--green);
  opacity: 0.6;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact-item svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.contact-item:hover { color: var(--green); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-muted);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--green); }

.admin-link {
  opacity: 0.35;
  font-size: 1rem !important;
  transition: opacity var(--transition), color var(--transition);
}
.admin-link:hover { opacity: 1; color: var(--green); }

.maintenance-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: linear-gradient(90deg, #1a3d2e, #0d2818);
  border-bottom: 1px solid var(--green);
  color: var(--green);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}
.maintenance-banner[hidden] { display: none; }
body.maintenance-active:has(.maintenance-banner:not([hidden])) .nav { top: 44px; }
body.maintenance-active:has(.maintenance-banner:not([hidden])) { padding-top: 44px; }

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 8, 6, 0.97);
  backdrop-filter: blur(12px);
}
.maintenance-overlay-card {
  max-width: 480px;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 16px;
  background: linear-gradient(160deg, #0a1612, #05100c);
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.12);
}
.maintenance-overlay-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.maintenance-overlay-card h1 {
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: 12px;
}
.maintenance-overlay-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
body.maintenance-full > *:not(.maintenance-overlay):not(script) {
  visibility: hidden;
  pointer-events: none;
}
body.maintenance-full .maintenance-overlay {
  visibility: visible;
  pointer-events: auto;
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none !important; }
  #grid-canvas,
  .particle-canvas { opacity: 0.4; }
  .tool-card:hover,
  .pipe-step:hover,
  .btn-primary:hover { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .suite-panel { grid-template-columns: 1fr; }
  .suite-visual { order: -1; height: 180px; }
  .security-details { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-burger { display: flex; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .tools-grid,
  .security-grid,
  .security-details {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-burger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .nav-actions .lang-toggle {
    display: flex;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
  }
  .logo { font-size: 1rem; gap: 0.4rem; }
  .logo-mark { width: 30px; height: 30px; }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 1.5rem) 0 2.5rem;
  }
  .hero-visual { margin-top: 2rem; padding: 0 0.5rem; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 0.5rem;
  }
  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
  }
  .hero-stats {
    gap: 1rem;
    padding: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .stat { flex: 1 1 28%; min-width: 90px; }
  .stat-divider { display: none; }

  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2rem; padding-inline: 0.25rem; }
  .section-head p { padding-inline: 0.5rem; }

  .tools-grid { grid-template-columns: 1fr; gap: 1rem; }
  .news-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 1.35rem; }

  .suite-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-inline: 0;
    padding-inline: 0;
    max-width: 100%;
  }
  .suite-tabs::-webkit-scrollbar { display: none; }
  .suite-tab {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  .suite-panel {
    padding: 1.5rem;
    min-height: auto;
    gap: 1.5rem;
  }
  .suite-content h3 { font-size: 1.25rem; }

  .contact-wrap { grid-template-columns: 1fr; padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .contact-form textarea { min-height: 120px; }

  .pipe-connector { display: none; }
  .pipeline-flow { flex-direction: column; align-items: stretch; }
  .pipe-step { max-width: 100%; min-width: 0; width: 100%; }

  .security-grid { grid-template-columns: 1fr; }
  .security-details { grid-template-columns: 1fr; gap: 1.5rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .scroll-hint { display: none; }

  .terminal-body {
    font-size: 0.72rem;
    min-height: 200px;
    max-height: 240px;
    padding: 1rem;
  }
  .terminal-bar code {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: max(0.875rem, env(safe-area-inset-left)) max(0.875rem, env(safe-area-inset-right));
  }

  .hero-title { font-size: clamp(1.45rem, 8vw, 1.85rem); }
  .hero-sub { font-size: 0.92rem; line-height: 1.65; }
  .hero-badge { font-size: 0.72rem; padding: 0.35rem 0.85rem; }

  .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }
  .stat { flex: none; text-align: center; }

  .btn { min-height: 48px; }
  .btn-sm { min-height: 44px; padding: 0.65rem 1rem; }

  .nav-mobile a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .terminal {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }
  .terminal-body {
    font-size: 0.62rem;
    line-height: 1.6;
    min-height: 200px;
    max-height: 240px;
    padding: 0.75rem;
  }
  .terminal-bar {
    padding: 0.5rem 0.65rem;
  }
  .terminal-bar code {
    font-size: 0.58rem;
    max-width: 70%;
  }

  .contact-wrap {
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .contact-info h2 {
    font-size: 1.45rem;
  }

  .contact-item {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .suite-panel {
    padding: 1.15rem;
  }

  .section-head h2,
  .suite-header h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .tool-card h3 { font-size: 1.05rem; }
  .sec-card { padding: 1.25rem; }
  .sec-metric { font-size: 1.5rem; }

  #grid-canvas,
  .particle-canvas { opacity: 0.35; }
}

@media (max-width: 360px) {
  .logo-text { font-size: 0.9rem; }
  .logo-badge { display: none; }
  .lang-toggle { font-size: 0.72rem; padding: 0.4rem 0.6rem; }
  .hero-cta .btn { font-size: 0.88rem; padding: 0.75rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
