:root {
  --bg: #0a0a0a;
  --text: #e0e0e0;
  --accent: #4f46e5; /* Indigo */
  --line: #333333;
  --panel: #111111;
  --font-main: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid Overlay Pattern */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

/* Header */
.header-monolith {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  gap: 10px;
}

.logo-box {
  width: 20px;
  height: 20px;
  background: var(--accent);
}

.accent {
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.nav-btn {
  border: 1px solid var(--accent);
  padding: 8px 20px;
  color: var(--accent) !important;
}

.nav-btn:hover {
  background: var(--accent);
  color: #fff !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 30px;
  height: 2px;
  background: #fff;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 2000;
  transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  right: 0;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.mobile-links a {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  text-transform: uppercase;
}

/* Hero */
.hero-architect {
  padding-top: 160px;
  padding-bottom: 100px;
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.meta-label {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 30px;
  font-weight: 800;
  text-transform: uppercase;
}

.outline-text {
  -webkit-text-stroke: 1px #fff;
  color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: #a0a0a0;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 20px;
}

.btn-solid {
  background: var(--accent);
  color: #fff;
  padding: 15px 30px;
  font-weight: 600;
  border: 1px solid var(--accent);
}

.btn-line {
  border: 1px solid #fff;
  padding: 15px 30px;
  font-weight: 600;
}

.btn-line:hover {
  background: #fff;
  color: #000;
}

.visual-structure {
  position: relative;
  height: 400px;
  width: 100%;
}

.v-block {
  position: absolute;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid var(--accent);
}

.v1 {
  top: 0;
  left: 0;
  width: 60%;
  height: 60%;
}
.v2 {
  bottom: 0;
  right: 0;
  width: 50%;
  height: 70%;
  border-color: #fff;
}
.v3 {
  top: 30%;
  left: 30%;
  width: 40%;
  height: 40%;
  background: var(--accent);
}

/* Section Panel */
.section-panel {
  padding: 100px 0;
}

.panel-wrapper {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 300px 1fr;
}

.panel-header {
  background: var(--panel);
  padding: 40px;
  border-right: 1px solid var(--line);
}

.panel-header h2 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
}

.panel-body {
  padding: 40px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.p-item {
  border: 1px solid var(--line);
  padding: 20px;
}

.p-item.active {
  border-color: var(--accent);
  background: rgba(79, 70, 229, 0.05);
}

/* Dividers */
.section-dividers {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 60px;
  font-family: var(--font-mono);
  display: flex;
  justify-content: center;
}

.section-title.center {
  text-align: center;
}

.dividers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.div-col {
  padding: 40px;
  border-right: 1px solid var(--line);
}

.div-col:last-child {
  border-right: none;
}

.div-head {
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

/* Fragments */
.section-fragments {
  padding: 100px 0;
  overflow: hidden;
}

.frag-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.frag-large {
  background: var(--panel);
  padding: 60px;
  grid-row: 1 / 3;
  border-left: 5px solid var(--accent);
}

.frag-small {
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
}

.frag-medium {
  border: 1px solid var(--line);
  padding: 30px;
}

/* Module */
.section-module {
  padding: 100px 0;
  background: var(--panel);
}

.main-module {
  border: 1px solid var(--line);
  padding: 80px;
  text-align: center;
  background: var(--bg);
  max-width: 800px;
  margin: 0 auto;
}

.btn-solid.invert {
  background: #fff;
  color: #000;
  border-color: #fff;
  display: inline-block;
  margin-top: 20px;
}

.btn-solid.invert:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Columns */
.section-columns {
  padding: 100px 0;
}

.col-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line); /* creates borders via gap */
}

.col-item {
  background: var(--bg);
  padding: 30px;
  text-align: center;
}

.col-item h4 {
  color: var(--accent);
  margin-bottom: 15px;
  font-family: var(--font-mono);
}

/* Scheme */
.section-scheme {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scheme-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.tech-svg {
  width: 400px;
  max-width: 100%;
}

.tech-svg text {
  fill: #666;
}

/* Isometry */
.section-isometry {
  padding: 100px 0;
}

.iso-block {
  display: flex;
  justify-content: space-between;
  background: var(--panel);
  padding: 50px;
  transform: perspective(1000px) rotateX(2deg);
  border: 1px solid var(--line);
}

.iso-shape {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--accent), transparent);
  transform: rotate(45deg);
}

/* Typography */
.section-typography {
  padding: 100px 0;
  overflow: hidden;
}

.typo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
}

.typo-big {
  font-size: 12vw;
  font-weight: 900;
  color: #1a1a1a;
}

.typo-big.outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
}

.typo-small {
  font-family: var(--font-mono);
  letter-spacing: 0.5em;
  color: var(--accent);
  margin: 20px 0;
}

/* Balance */
.section-balance {
  padding: 100px 0;
}

.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 300px;
}

.bal-empty {
  border-right: 1px solid var(--line);
}

.bal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 50px;
}

/* FAQ */
.section-faq {
  padding: 100px 0;
  background: var(--panel);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-head {
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  color: #a0a0a0;
}

.acc-item.active .acc-body {
  padding-bottom: 20px;
  max-height: 200px;
}

/* Form */
.section-form {
  padding: 100px 0;
}

.form-struct {
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: 40px;
}

.form-header {
  margin-bottom: 30px;
  text-align: center;
}

.tech-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inp-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inp-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #666;
}

.inp-group input {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px;
  color: #fff;
  font-family: var(--font-main);
}

.inp-group input:focus {
  border-color: var(--accent);
  outline: none;
}

.check-group {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  gap: 10px;
  align-items: start;
}

.check-group a {
  color: var(--accent);
  text-decoration: underline;
}

.btn-submit {
  background: #fff;
  color: #000;
  border: none;
  padding: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-mono);
}

.btn-submit:hover {
  background: var(--accent);
  color: #fff;
}

/* Footer */
.footer-arch {
  border-top: 1px solid var(--line);
  padding-top: 80px;
  background: var(--panel);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.f-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.f-col h4 {
  font-family: var(--font-mono);
  color: #666;
  margin-bottom: 20px;
}

.f-col a,
.f-col p {
  display: block;
  margin-bottom: 10px;
  color: #a0a0a0;
  font-size: 0.9rem;
}

.f-col a:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid var(--line);
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

/* Cookie */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  color: #000;
  padding: 20px;
  max-width: 300px;
  z-index: 5000;
  display: none;
  border: 1px solid #000;
}

.cookie-text {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

#cookieBtn {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
}

/* Media */
@media (max-width: 768px) {
  .header-grid {
    padding: 0 20px;
  }

  .nav-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  .panel-wrapper {
    grid-template-columns: 1fr;
  }

  .panel-header {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .dividers-grid {
    grid-template-columns: 1fr;
  }

  .div-col {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .frag-grid {
    grid-template-columns: 1fr;
  }

  .col-row {
    grid-template-columns: 1fr;
  }

  .scheme-wrap {
    flex-direction: column;
  }

  .balance-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .bal-empty {
    display: none;
  }

  .bal-content {
    padding: 40px 0;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }
}

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

@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 {
    margin: 80px 0 30px;
    font-size: 28px;
  }
}
