:root {
  --bg-main: #f0f2f5;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --accent: #2c3e50;
  --accent-light: #34495e;
  --border-color: #a0a0a0;
  --grid-line: rgba(0, 0, 0, 0.1);
  --font-heading: "Helvetica Neue", "Arial", sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* HEADER: Architectural Grid */
.arch-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-main);
  border-bottom: 2px solid var(--text-primary);
}

.header-grid {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  height: 70px;
}

.logo-module {
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
}

.logo-text {
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-module {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
  gap: 30px;
}

.nav-item {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: 0.3s;
}

.nav-item:hover::after {
  width: 100%;
}

.action-module {
  border-left: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: right;
  cursor: pointer;
}

.menu-trigger {
  background: none;
  border: none;
  display: none; /* Desktop hidden */
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.line {
  width: 30px;
  height: 2px;
  background: var(--text-primary);
  display: block;
}

/* HERO: Split Monolith */
.hero-monolith {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--text-primary);
  padding-top: 70px;
  background-image: url("./images/geometric-abstract-background-technology-concept-connecting-dots-design\ \(1\).jpg");
  background-size: cover;
  background-position: center;
}

.monolith-visual {
  position: relative;
  background: #ccc;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

.hero-img-block {
  width: 100%;
  height: 100%;
  background: #dcdcdc;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

.monolith-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.content-wrapper h1 {
  font-size: 4rem;
  line-height: 0.9;
  margin-bottom: 30px;
  font-weight: 800;
  letter-spacing: -2px;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--text-primary);
}

.hero-desc-group p {
  margin-bottom: 20px;
  max-width: 500px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.arch-btn {
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid var(--text-primary);
  background: var(--text-primary);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arch-btn.btn-alt {
  background: transparent;
  color: var(--text-primary);
}

.arch-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* SECTION 1: Panel */
.section-panel {
  border-bottom: 1px solid var(--border-color);
}

.panel-container {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 400px;
}

.panel-left {
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 20px 0;
  background: #e0e0e0;
}

.vertical-title {
  font-size: 2rem;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.panel-right {
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.text-block h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-box {
  border: 1px solid var(--border-color);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* SECTION 2: Dividers */
.section-dividers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-color);
}

.divider-col {
  padding: 60px 20px;
  border-right: 1px solid var(--border-color);
  text-align: center;
  transition: 0.3s;
}

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

.divider-col:hover {
  background: #fff;
}

.icon-large {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  stroke-width: 1.5;
}

.divider-col h4 {
  margin-bottom: 15px;
  text-transform: uppercase;
}

/* SECTION 3: Typography */
.section-typography {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.typo-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.giant-text {
  font-size: 12rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
  position: absolute;
  top: -50px;
  left: -50px;
  z-index: 0;
  line-height: 1;
}

.typo-content {
  position: relative;
  z-index: 1;
  margin-left: 20%;
  max-width: 600px;
}

.typo-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.link-arrow {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* SECTION 4: Schema */
.section-schema {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.schema-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.schema-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.node-icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* Strict square */
  background: var(--bg-main);
}

.schema-line {
  flex: 1;
  height: 2px;
  background: var(--text-primary);
  margin: 0 10px;
  position: relative;
  top: -15px;
}

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

/* SECTION 5: Fragments */
.section-fragments {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  border-bottom: 1px solid var(--border-color);
}

.frag-item {
  padding: 40px;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  /* allow flex/grid children to shrink and avoid overflow */
  min-width: 0;
}

.frag-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.frag-large h3 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.frag-small {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}

.frag-medium {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--accent);
  color: #fff;
  /* allow this flex item to shrink inside the grid column */
  min-width: 0;
}

.frag-medium p {
  font-size: 1.2rem;
}

.date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.btn-text {
  border: 1px solid #fff;
  padding: 10px 20px;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-text:hover {
  transform: scale(1.05);
}

/* SECTION 6: Balance */
.section-balance {
  display: flex;
  height: 500px;
  border-bottom: 1px solid var(--border-color);
}

.balance-void {
  flex: 1;
  background-image: url("./images/business-partners-working-office\ \(2\).jpg");
  background-size: cover;
  background-position: center;
  border-right: 1px solid var(--border-color);
}

.balance-mass {
  flex: 1;
  background: var(--text-primary);
  color: #fff;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.balance-mass h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  border-left: 4px solid #fff;
  padding-left: 20px;
}

.btn-dark {
  background: #fff;
  color: var(--text-primary);
  margin-top: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-dark:hover {
  transform: scale(1.05);
}

/* SECTION 7: Isometric */
.section-isometric {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
  background: #eef;
  perspective: 1000px;
  overflow: hidden;
}

.iso-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  transform: rotateX(20deg) rotateY(10deg);
}

.iso-block {
  width: 200px;
  height: 200px;
  background: #fff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.1);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
}

/* FAQ */
.section-faq {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.faq-title {
  font-size: 3rem;
  margin-bottom: 50px;
  text-align: center;
  font-family: var(--font-mono);
}

.acc-item {
  border: 1px solid var(--border-color);
  margin-bottom: -1px; /* Collapse borders */
  background: #fff;
}

.acc-header {
  width: 100%;
  padding: 25px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
  border-top: 1px solid transparent;
}

.acc-item.active .acc-body {
  border-top-color: var(--border-color);
}

.acc-content {
  padding: 25px;
  color: var(--text-secondary);
}

/* FORM */
.section-form {
  padding: 100px 0;
  background: var(--bg-main);
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  border: 2px solid var(--text-primary);
  background: #fff;
}

.form-header {
  background: var(--text-primary);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arch-form {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-row.full-width {
  grid-column: 1 / -1;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.form-row input {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 0;
  font-family: var(--font-mono);
}

.checkbox-ui {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-ui label a {
  color: var(--text-primary);
  text-decoration: underline;
}

.submit-btn {
  grid-column: 1 / -1;
  padding: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.submit-btn:hover {
  background: var(--text-primary);
}

/* FOOTER */
.arch-footer {
  background: var(--text-primary);
  color: #fff;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-col {
  padding: 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

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

.footer-col h5,
.footer-col h6 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 4px solid var(--accent);
  padding: 30px;
  transform: translateY(100%);
  transition: 0.5s;
  z-index: 2000;
}

.cookie-modal.show {
  transform: translateY(0);
}

.cookie-body {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-btn {
  padding: 10px 30px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  cursor: pointer;
}

/* MOBILE PANEL */
.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  z-index: 2000;
  transform: translateX(100%);
  transition: 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
}

.mobile-panel.active {
  transform: translateX(0);
}

.panel-header {
  padding: 20px;
  display: flex;
  justify-content: flex-end;
}

.panel-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  padding: 40px;
  gap: 30px;
}

.panel-nav a {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-monolith {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 100vh;
  }
  .monolith-visual {
    height: 400px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .monolith-content {
    padding: 40px;
    max-width: 100%;
  }
  .content-wrapper h1 {
    font-size: 2.3rem;
  }
  .nav-module {
    display: none;
  }
  .menu-trigger {
    display: flex;
  }
  .panel-container {
    grid-template-columns: 1fr;
  }
  .panel-left {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 40px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    max-width: 100%;
  }
  .panel-right {
    grid-template-columns: 1fr;
  }
  .section-dividers {
    grid-template-columns: 1fr 1fr;
  }
  .section-fragments {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .frag-large,
  .frag-medium {
    grid-column: auto;
    grid-row: auto;
    max-width: 100%;
    flex-direction: column;
  }
  .section-balance {
    flex-direction: column;
    height: auto;
  }
  .balance-void {
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .form-wrapper {
    grid-template-columns: 1fr;
  }
  .arch-form {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .cookie-body {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .section-dividers {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .divider-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .giant-text {
    font-size: 6rem;
    top: 0;
  }
  .iso-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

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

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

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

.margin {
  margin: 120px 0 50px;
}
