:root {
  --bg: #0d0e12;
  --bg-sec: #16181d;
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --accent: #3b82f6;
  --border: #27272a;
  --white: #ffffff;

  --font-main: "Plus Jakarta Sans", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

/* TYPOGRAPHY - NO OVERFLOW CLAMP */
h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
h2.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}
.faq-title {
  display: flex;
  justify-content: center;
  align-items: center;
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
p {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 75ch;
}
.accent-text {
  color: var(--accent);
}
.center {
  text-align: center;
}
.center-title {
  text-align: center;
  margin: 0 auto;
}

/* SPACING SYSTEM */
section {
  padding: clamp(80px, 12vw, 160px) 0;
  border-bottom: 1px solid var(--border);
}
.narrow-content {
  max-width: 900px;
  margin: 0 auto;
}

/* HEADER */
.system-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 14, 18, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header-wrap {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--font-mono);
}
.brand-svg {
  color: var(--accent);
}

.nav-desktop a {
  text-decoration: none;
  color: var(--text-dim);
  margin-left: 2.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s;
}
.nav-desktop a:hover {
  color: var(--accent);
}
.nav-cta {
  border: 1px solid var(--accent);
  padding: 10px 20px;
  color: var(--accent) !important;
}

/* HERO */
.hero-module {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;

  background-image: url("./images/futuristic-robotic-arm-working-complex-machinery-generated-by-ai\ \(1\).jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.sys-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: 1.25rem;
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-background-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
  padding: 1.25rem 2.5rem;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  transition: var(--transition);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--border);
}

/* VISUAL SECTIONS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.visual-box {
  position: relative;
}
.visual-box img {
  width: 100%;
  border-radius: 4px;
  filter: grayscale(0.5);
  border: 1px solid var(--border);
}
.visual-decor {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: -1;
}

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
}
.bento-item {
  background: var(--bg-sec);
  padding: 40px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-item.large {
  background: linear-gradient(135deg, var(--bg-sec), #1a1e26);
}
.bento-item i {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 20px;
}

/* SCALE MONOLITH */
.scale-monolith {
  background: var(--bg-sec);
  border: 2px solid var(--border);
  padding: clamp(40px, 8vw, 100px);
  text-align: center;
}
.scale-monolith p {
  margin: 0 auto 2rem;
}

/* SCHEMATIC */
.schematic-wrap {
  display: flex;
  align-items: center;
  gap: 80px;
}
.arch-svg {
  width: 100%;
  color: var(--accent);
  opacity: 0.4;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat-card {
  border-left: 2px solid var(--accent);
  padding-left: 30px;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  margin-bottom: 10px;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-trigger {
  width: 100%;
  padding: 2rem 0;
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 700;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}
.faq-content p {
  padding-bottom: 2rem;
}
.faq-item.active .faq-content {
  max-height: 300px;
}
.faq-item.active .faq-trigger i {
  transform: rotate(180deg);
  color: var(--accent);
}

.security-image img {
  width: 100%;
}

/* AUTH PANEL / FORM - ALWAYS ONE COLUMN */
.auth-panel {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-sec);
  border: 1px solid var(--border);
  padding: clamp(40px, 8vw, 80px);
}
.auth-header {
  text-align: center;
  margin-bottom: 4rem;
}
.vertical-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 700;
}
.form-group input {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  color: var(--text);
  font-family: var(--font-mono);
  outline: none;
  transition: 0.3s;
  width: 100%;
  border-radius: 0;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}
.captcha-box {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}
.captcha-box label {
  font-size: 1.25rem;
  white-space: nowrap;
  margin-bottom: 0;
  color: var(--text);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.form-check a {
  text-decoration: underline;
  color: var(--accent);
}
.form-check input {
  width: auto;
  margin-top: 0.4rem;
}
.form-check label {
  font-size: 0.875rem;
  color: var(--text-dim);
}
.submit-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: var(--transition);
}
.submit-btn:hover {
  letter-spacing: 0.4em;
  background: #2563eb;
}

/* FOOTER */
.system-footer {
  padding: 100px 0 40px;
  background: #08080a;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-nav h4,
.footer-contacts h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 0.2em;
}
.footer-nav nav a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  transition: 0.3s;
}
.footer-nav nav a:hover {
  color: var(--white);
}
.footer-contacts p {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.footer-contacts i {
  width: 18px;
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  font-size: 0.75rem;
  color: #4b5563;
  font-family: var(--font-mono);
}

/* COOKIE */
.cookie-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 5000;
  display: none;
}
.cookie-wrap {
  background: var(--bg-sec);
  border: 1px solid var(--accent);
  padding: 1.5rem 2rem;
  box-shadow: 20px 20px 0 var(--bg);
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.cookie-wrap button {
  background: var(--accent);
  border: none;
  padding: 8px 20px;
  color: white;
  margin-left: 15px;
  cursor: pointer;
  font-weight: 800;
  height: 50px;
  border-radius: 10px;
}

/* BURGER & MENU */
.burger-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  z-index: 2001;
}
.burger-btn span {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  justify-content: center;
  flex-direction: column;
  transform: translateY(-100%);
  transition: var(--transition);
}
.overlay-close {
  width: 50px;
  height: 50px;
  display: flex;
  align-self: flex-end;
  margin-right: 30px;
}
.mobile-overlay.active {
  transform: translateY(0);
}
.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  cursor: pointer;
}
.mobile-links a {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2rem;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }
  h2.section-title {
    font-size: 20px;
  }
  .burger-btn {
    display: flex;
  }
  .grid-2,
  .bento-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .schematic-wrap {
    flex-direction: column;
  }
  .visual-decor {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }
  .captcha-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}
