/* --- QUANTUM LAYERING DESIGN SYSTEM --- */
:root {
  --navy: #0f172a;
  --slate: #1e293b;
  --primary: #3b82f6;
  --accent: #60a5fa;
  --light: #f8fafc;
  --gray: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --font: "Inter", system-ui, sans-serif;
  --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  background: var(--light);
  color: var(--navy);
  font-family: var(--font);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.center {
  text-align: center;
}
.relative {
  position: relative;
}
.mt-40 {
  margin-top: 40px;
}

/* HEADER - MONOLITH */
.arch-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.95);
  border-bottom: 2px solid var(--navy);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}
.header-monolith {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-wrap img {
  width: 50px;
  height: 50px;
}
.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1px;
  text-transform: uppercase;
}
.logo-text span {
  color: var(--primary);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-list a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}
.nav-cta {
  background: var(--navy);
  color: var(--light) !important;
  padding: 10px 20px;
  border-radius: 4px;
}

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger-btn span {
  width: 30px;
  height: 2px;
  background: var(--navy);
}

/* MOBILE MENU */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 2000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.fullscreen-menu.active {
  display: flex;
}
.close-menu {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 50px;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}
.mobile-nav a {
  color: var(--light);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

/* HERO - 3D LAYERED */
.hero-3d {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-3d-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-3d-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transform: scale(1.1);
  filter: grayscale(50%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy) 30%, transparent);
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-glass-panel {
  max-width: 700px;
  padding: 60px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--primary);
  color: var(--light);
}
.hero-glass-panel h1 {
  font-size: clamp(40px, 8vw, 80px);
  line-height: 0.9;
  margin-bottom: 25px;
}
.hero-glass-panel h1 span {
  color: var(--primary);
}
.badge {
  background: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}
.btn-primary {
  background: var(--primary);
  color: var(--light);
  padding: 18px 40px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.btn-ghost {
  border: 2px solid var(--light);
  color: var(--light);
  padding: 16px 38px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  width: 26px;
  height: 44px;
  border: 2px solid var(--light);
  border-radius: 20px;
  position: relative;
}
.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll 2s infinite;
}
@keyframes scroll {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

/* SECTION PANEL */
.section-panel {
  padding: 120px 0;
}
.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.panel-main {
  position: relative;
}
.num {
  font-size: 120px;
  font-weight: 900;
  color: var(--navy);
  opacity: 0.05;
  position: absolute;
  top: -60px;
  left: -20px;
}
.panel-visual img {
  width: 100%;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.panel-visual:hover img {
  transform: scale(1.05);
  transition: all 0.3 ease;
}

/* DIVIDERS */
.section-dividers {
  padding: 100px 0;
  background: var(--navy);
  color: var(--light);
}
.dividers-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.div-item {
  padding: 40px;
  border-right: 1px solid var(--border);
}
.div-item:last-child {
  border-right: none;
}
.div-item h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 24px;
  text-transform: uppercase;
}

/* SCHEMATIC */
.section-schematic {
  padding: 120px 0;
}
.schematic-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 80px 0;
}
.node {
  text-align: center;
  flex: 1;
}
.node-box {
  background: var(--navy);
  color: var(--light);
  padding: 25px;
  font-weight: 900;
  border: 2px solid var(--primary);
}
.node-label {
  margin-top: 15px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gray);
  text-transform: uppercase;
}
.flow-line {
  flex: 0.5;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.flow-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--navy);
  border-top: 2px solid var(--navy);
  transform: rotate(45deg);
}

/* FRAGMENTS */
.section-fragments {
  padding: 100px 0;
  background: var(--light);
}
.fragments-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.frag-card {
  padding: 50px;
  border: 1px solid var(--navy);
}
.f-large {
  grid-row: span 2;
  background: var(--light);
  border-left: 10px solid var(--navy);
}
.f-accent {
  background: var(--primary);
  color: var(--light);
  text-align: center;
}
.f-accent i {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}
.f-dark {
  background: var(--navy);
  color: var(--light);
}

/* MONOLITH */
.section-monolith {
  padding: 120px 0;
  display: flex;
  justify-content: center;
  background: #eee;
}
.monolith-box {
  width: 80%;
  background: var(--navy);
  color: var(--light);
  padding: 100px;
  position: relative;
  overflow: hidden;
}
.monolith-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: var(--primary);
  transform: translate(50%, -50%) rotate(45deg);
}
.tag {
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 20px;
}

/* COLUMNS */
.section-columns {
  padding: 120px 0;
}
.column-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.col-icon {
  color: var(--primary);
  margin-bottom: 25px;
}
.col-item h4 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* TYPO */
.section-typo {
  padding: 150px 0;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--light);
}
.typo-bg {
  position: absolute;
  font-size: 250px;
  font-weight: 900;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.typo-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* FAQ */
.section-faq {
  padding: 120px 0;
}
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}
.faq-header h2 {
  font-size: 60px;
  line-height: 0.9;
  color: var(--navy);
  border-bottom: 5px solid var(--primary);
  display: inline-block;
  padding-bottom: 20px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  border: 1px solid var(--navy);
  overflow: hidden;
}
.faq-trigger {
  padding: 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.5s ease;
  background: var(--light);
}
.faq-content p {
  padding: 30px;
  border-top: 1px solid var(--navy);
}
.faq-item.active .faq-content {
  max-height: 500px;
}
.faq-item.active i {
  transform: rotate(180deg);
  color: var(--primary);
}

/* CONTACT SLAB - VERTICAL ONLY */
.section-contact {
  padding: 120px 0;
  background: var(--navy);
  color: var(--light);
}
.contact-slab {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.arch-form-vertical {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 50px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group label {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
}
input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gray);
  padding: 15px 0;
  color: var(--light);
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}
input:focus {
  border-bottom-color: var(--primary);
}
.captcha-wrap {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  padding: 20px;
}
.captcha-wrap input {
  width: 100px;
  border-bottom: none;
  text-align: center;
  font-weight: 900;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.form-check a {
  text-decoration: underline;
  color: var(--accent);
}
.form-check label {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.4;
}
.submit-monolith {
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 25px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 2px;
}

/* FOOTER */
.arch-footer {
  padding: 100px 0 50px;
  background: var(--navy);
  color: var(--light);
  border-top: 5px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 80px;
}
.footer-brand h5 {
  font-size: 20px;
  margin-bottom: 20px;
}
.footer-legal h5,
.footer-contacts h5 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 30px;
  letter-spacing: 2px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
}
.footer-contacts a {
  color: var(--light);
  text-decoration: none;
  font-weight: 700;
}
.copyright {
  margin-top: 60px;
  font-size: 12px;
  opacity: 0.3;
}

/* COOKIE */
.cookie-modal {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 5000;
  background: var(--light);
  color: var(--navy);
  padding: 30px;
  border-left: 8px solid var(--primary);
  display: none;
  max-width: 450px;
  box-shadow: 20px 20px 0 var(--navy);
}
#acceptCookie {
  background: var(--navy);
  color: var(--light);
  border: none;
  padding: 12px 25px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-zone {
    display: none;
  }
  .dividers-wrap {
    flex-direction: column;
    display: flex;
  }
  .burger-btn {
    display: flex;
  }
  .panel-grid,
  .schematic-flow,
  .fragments-grid,
  .column-row,
  .faq-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-3d-bg img {
    height: 100%;
    width: auto;
  }
  .hero-actions {
    flex-direction: column;
  }
  .schematic-flow {
    flex-direction: column;
    gap: 40px;
  }
  .flow-line {
    width: 2px;
    height: 50px;
  }
  .monolith-box {
    padding: 40px;
    width: 95%;
  }
  .contact-slab {
    padding: 40px 20px;
  }
  .faq-header h2 {
    font-size: 40px;
  }
}

/* HERO-3D - RESPONSIVE TWEAKS */
@media (max-width: 1024px) {
  .hero-3d {
    height: 80vh;
    align-items: flex-end;
    padding-bottom: 40px;
    margin-top: 100px;
  }

  .hero-3d-bg img {
    transform: scale(1.15);
    object-position: center right;
    opacity: 0.65;
  }

  .hero-glass-panel {
    max-width: 520px;
    padding: 40px;
    border-left-width: 3px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-glass-panel h1 {
    font-size: clamp(28px, 6vw, 48px);
    line-height: 1;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-3d {
    height: auto;
    min-height: 70vh;
    padding: 80px 20px;
    align-items: center;
    margin-top: 100px;
  }

  .hero-3d-bg img {
    width: auto;
    height: 110%;
    transform: scale(1.05);
    object-position: center;
    opacity: 0.6;
    filter: blur(1px) brightness(0.65);
  }

  .hero-glass-panel {
    max-width: 92%;
    padding: 30px;
    border-left-width: 4px;
  }

  .hero-glass-panel h1 {
    font-size: clamp(20px, 8vw, 36px);
  }

  .badge {
    padding: 4px 12px;
    font-size: 11px;
  }

  .btn-primary,
  .btn-ghost {
    padding: 12px 22px;
    font-size: 14px;
    width: auto;
  }

  .hero-scroll-indicator {
    bottom: 18px;
  }

  .mouse {
    width: 22px;
    height: 38px;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.9) 30%,
      rgba(15, 23, 42, 0.6) 60%,
      transparent
    );
  }
}

@media (max-width: 480px) {
  .hero-3d {
    padding: 60px 14px;
  }

  .hero-glass-panel {
    padding: 22px;
  }

  .hero-glass-panel h1 {
    font-size: clamp(18px, 9vw, 28px);
  }

  .hero-actions {
    gap: 12px;
    flex-direction: column;
  }

  .hero-3d-bg img {
    opacity: 0.5;
    filter: blur(2px) brightness(0.6);
    transform: scale(1);
  }
}

.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;
  }
}
