/* DESIGN SYSTEM: Rationalist Blueprint & Terracotta */
:root {
  --color-accent: #e05d3a; /* Terracotta */
  --color-dark: #1a1a1a;
  --color-gray: #e5e5e5;
  --color-light: #f4f1ea; /* Cream White */
  --border-color: #333;

  --font-head: "Archivo", sans-serif;
  --font-mono: "Space Mono", monospace;

  --grid-line: rgba(0, 0, 0, 0.1);
  --pad-cont: 20px;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-light);
  color: var(--color-dark);
  font-family: var(--font-head);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  position: relative;
}

/* BLUEPRINT GRID BACKGROUND */
.blueprint-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.bp-line {
  position: absolute;
  background: var(--grid-line);
}
.v1 {
  width: 1px;
  height: 100%;
  left: 10%;
}
.v2 {
  width: 1px;
  height: 100%;
  left: 50%;
}
.v3 {
  width: 1px;
  height: 100%;
  left: 90%;
}
.h1 {
  height: 1px;
  width: 100%;
  top: 20%;
}
.h2 {
  height: 1px;
  width: 100%;
  top: 80%;
}

/* UTILS */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transition: 0.5s;
}
img:hover {
  filter: grayscale(0%);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-cont);
  position: relative;
  z-index: 2;
}
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}
.center {
  text-align: center;
}
.narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 18px 36px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary:hover {
  background: transparent;
  color: var(--color-accent);
}

.btn-text {
  font-family: var(--font-mono);
  font-weight: 700;
  border-bottom: 2px solid var(--color-dark);
  padding-bottom: 2px;
}
.btn-text:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* HEADER: Asymmetric Slab */
.arch-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: grid;
  grid-template-columns: 250px 1fr 100px;
  background: var(--color-light);
  border-bottom: 1px solid var(--border-color);
}
.header-block {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}
.logo-block {
  justify-content: flex-start;
  padding-left: 30px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
}
.logo-sq {
  width: 20px;
  height: 20px;
  background: var(--color-accent);
}

.nav-block {
  display: flex;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.nav-block a:hover {
  color: var(--color-accent);
}

.cta-block {
  border-right: none;
  background: var(--color-dark);
  color: #fff;
}
.menu-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* FULLSCREEN MENU */
.fs-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-dark);
  color: #fff;
  z-index: 200;
  transform: translateY(-100%);
  transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 40px;
}
.fs-menu.active {
  transform: translateY(0);
}
.fs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}
.fs-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-accent);
}
.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
}
.fs-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fs-links a {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: 0.3s;
}
.fs-links a:hover {
  color: var(--color-accent);
  padding-left: 20px;
}
.fs-footer {
  margin-top: auto;
  font-family: var(--font-mono);
  color: #666;
}

/* HERO: SLICE */
.hero-slice {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.slice-top {
  flex: 1;
  background: var(--color-light);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
}
.slice-bottom {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 50px 0 100px;
}
.hero-meta {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -2px;
  line-height: 0.95;
}
.highlight {
  color: transparent;
  -webkit-text-stroke: 2px var(--color-dark);
}

.hero-text {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}

.iso-shape {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  border: 20px solid var(--color-accent);
  transform: translateY(-50%) rotateX(45deg) rotateZ(45deg);
  opacity: 0.2;
}

/* SECTION 2: PANEL */
.panel-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.panel-left h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.decor-bar {
  width: 100px;
  height: 10px;
  background: var(--color-dark);
}
.lead {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 30px;
}
.stat-row {
  display: flex;
  gap: 60px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}
.stat strong {
  font-size: 2.5rem;
  display: block;
  color: var(--color-accent);
}
.stat span {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* SECTION 3: COLUMNS */
.section-cols {
  background: #fff;
}
.sect-label {
  font-family: var(--font-mono);
  margin-bottom: 40px;
  text-align: center;
  color: var(--color-accent);
}
.cols-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.col-card {
  border: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s;
  background: var(--color-light);
}
.col-card:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-10px);
}
.col-card i {
  margin-bottom: 20px;
  width: 40px;
  height: 40px;
}
.col-card h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.col-card p {
  font-size: 0.9rem;
}
.col-card:hover p {
  color: rgba(255, 255, 255, 0.8);
}

/* SECTION 4: SCHEME */
.scheme-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 50px;
  position: relative;
}
.node {
  width: 100px;
  height: 100px;
  border: 2px solid var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  z-index: 2;
}
.path {
  flex: 1;
  height: 2px;
  background: var(--color-dark);
  position: relative;
}
.path::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  animation: move 2s infinite linear;
}
@keyframes move {
  0% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}

/* SECTION 5: BIG TYPE */
.section-bigtype {
  background: var(--color-dark);
  color: #fff;
  overflow: hidden;
}
.full-w {
  width: 100%;
  max-width: 100%;
  padding: 0 40px;
}
.bt-row {
  font-size: 10vw;
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1px #fff;
}
.solid {
  color: var(--color-accent);
  padding-left: 10%;
}
.bt-desc {
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  font-family: var(--font-mono);
  color: #888;
  text-align: right;
}

/* SECTION 6: FRAGMENTS */
.frag-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  grid-template-rows: 250px 250px;
}
.frag {
  border: 1px solid var(--border-color);
  padding: 30px;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}
.frag:hover {
  box-shadow: 10px 10px 0 var(--color-accent);
}
.f1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.f2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.f3 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.main-frag {
  grid-column: 1 / 4;
  grid-row: 2 / 3;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.main-frag h3 {
  font-size: 3rem;
}
.main-frag p {
  color: #fff;
  max-width: 400px;
}
.link-arrow {
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: underline;
}

/* SECTION 7: BALANCE */
.bal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.bal-img {
  position: relative;
}
.img-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--color-accent);
  color: #fff;
  padding: 5px 15px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.check-list {
  margin-top: 30px;
}
.check-list li {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* FAQ */
.section-faq {
  background: #fff;
}
.accordion-group {
  margin-top: 40px;
  border-top: 2px solid var(--color-dark);
}
.acc-item {
  border-bottom: 1px solid var(--border-color);
}
.acc-head {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 25px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.acc-head::after {
  content: "+";
  color: var(--color-accent);
}
.acc-item.active .acc-head::after {
  content: "-";
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s;
}
.acc-body p {
  padding-bottom: 25px;
  margin: 0;
}

/* FORM */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.info-box {
  margin-top: 40px;
  padding: 30px;
  border: 1px dashed var(--border-color);
  font-family: var(--font-mono);
}
.arch-form {
  background: #fff;
  padding: 40px;
  border: 2px solid var(--color-dark);
  box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.05);
}
.inp-wrap {
  margin-bottom: 25px;
}
.inp-wrap label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: var(--color-accent);
}
.inp-wrap input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  background: var(--color-light);
  font-family: var(--font-head);
  font-size: 1rem;
}
.inp-wrap input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}
.check-wrap {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 30px;
  line-height: 1.4;
}
.check-wrap a {
  text-decoration: underline;
  color: var(--color-accent);
}
.full {
  width: 100%;
}

/* FOOTER */
.arch-footer {
  background: var(--color-dark);
  color: #fff;
  padding: 80px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.f-logo {
  font-weight: 800;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 15px;
  color: var(--color-accent);
}
.f-col h4 {
  font-family: var(--font-mono);
  margin-bottom: 20px;
  color: #888;
  font-size: 0.9rem;
}
.f-col a,
.f-col p {
  display: block;
  margin-bottom: 10px;
  color: #ccc;
  font-size: 0.95rem;
}
.f-col a:hover {
  color: var(--color-accent);
}
.footer-btm {
  border-top: 1px solid #333;
  margin-top: 60px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  font-family: var(--font-mono);
}

/* COOKIE POPUP */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: var(--color-dark);
  color: #fff;
  padding: 20px;
  z-index: 500;
  display: none;
  border: 1px solid var(--color-accent);
}
.cp-inner p {
  color: #fff;
  margin-bottom: 15px;
  font-size: 0.9rem;
}
#acceptCookie {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-family: var(--font-mono);
  cursor: pointer;
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .nav-block {
    display: none;
  }
  .arch-header {
    grid-template-columns: 1fr 80px;
  }
  .logo-block {
    padding-left: 20px;
  }

  h2 {
    font-size: 2rem !important;
  }

  .panel-layout,
  .bal-grid,
  .form-layout,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cols-grid {
    grid-template-columns: 1fr 1fr;
  }
  .frag-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .main-frag {
    grid-column: 1;
    grid-row: auto;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .stat-row {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .cols-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .container {
    padding: 0 15px;
  }
  .scheme-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .path {
    width: 2px;
    height: 50px;
  }
  .iso-shape {
    display: none;
  }
  .path::after {
    width: 6px;
    height: 10px;
    top: 0;
    left: -2px;
    animation: moveVert 2s infinite linear;
  }
  @keyframes moveVert {
    0% {
      top: 0;
    }
    100% {
      top: 100%;
    }
  }
}

.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(--ink);
  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(--ink);
}

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