/* ==========================================================================
   Heing(R) Venture Architecture — Landing Page Stylesheet
   Derived from heing-global.webflow design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Webflow Token Mapping)
   -------------------------------------------------------------------------- */
:root {
  --wf-bg: black;
  --wf-text: #fff;
  --wf-border: #fff;
  --wf-heing-yellow: #ffed00;
  --wf-heing-green: #85bc22;
  --wf-heing-violet: #3f3487;
  --wf-heing-purple: #951981;
  --wf-heing-blue: #10bae7;
  --wf-white-5: #ffffff0d;
  --wf-white-10: #ffffff1a;
  --wf-white-15: #ffffff26;
  --wf-white-20: #fff3;
  --wf-white-40: #fff6;
  --wf-white-60: #fff9;
  --wf-black-30: #0000004d;
  --wf-black-50: #00000080;
  --wf-neutral: #666;
  --wf-neutral-light: #aaa;
  --wf-neutral-lighter: #ccc;
  --wf-font-body: 'Ubuntu', Helvetica, sans-serif;
  --wf-font-heading: 'Ubuntu', Helvetica, sans-serif;
  --wf-font-accent: 'Playfair Display', Georgia, serif;
  --wf-font-mono: 'Inconsolata', 'Consolas', monospace;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.landing-page {
  background-color: var(--wf-bg);
  font-family: var(--wf-font-body);
  color: var(--wf-text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--wf-text); text-decoration: underline; }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: inline-block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wf-font-heading);
  font-weight: 500;
  margin: 0;
}

h1 { font-size: 7rem; line-height: 1; letter-spacing: -8px; }
h2 { font-size: 3rem; line-height: 1.1; letter-spacing: -3px; }
h3 { font-size: 2.5rem; line-height: 1.1; letter-spacing: -3px; }
h4 { font-size: 2rem; line-height: 1.3; letter-spacing: -2px; }
h5 { font-size: 1.5rem; line-height: 1.4; letter-spacing: -1px; }

p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   3. Layout Primitives (Webflow grid system)
   -------------------------------------------------------------------------- */
.page-wrapper { position: relative; }

.main-wrapper { position: relative; z-index: 1; }

.lp-section {
  border-bottom: 1px solid var(--wf-border);
}

.padding-global {
  padding-left: 5%;
  padding-right: 5%;
}

.container-large {
  border-right: 1px solid var(--wf-border);
  border-left: 1px solid var(--wf-border);
  text-align: left;
  width: 100%;
  max-width: 100rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.grid_outer {
  grid-column-gap: 0;
  grid-row-gap: 0;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  display: grid;
  min-height: 50vh;
}

.grid_outer.footer-grid-second {
  text-align: left;
  min-height: 20vh;
}

.grid_outer.grid-auto-height {
  min-height: auto;
}

.grid_child {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.grid_child.blur.bottom-left {
  justify-content: flex-end;
  align-items: flex-start;
  display: flex;
}

.grid_child.top-bottom {
  gap: 4rem;
  flex-flow: column;
  justify-content: space-between;
  display: flex;
}

.grid_child-boarder {
  border-right: 1px solid var(--wf-border);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.grid_child-boarder.blur {
  -webkit-backdrop-filter: blur(3rem);
  backdrop-filter: blur(3rem);
}

.grid_child-boarder.blur.bottom-left {
  flex-flow: row;
  justify-content: flex-start;
  align-items: flex-end;
  display: flex;
}

.grid_child-boarder.top-bottom {
  flex-flow: column;
  justify-content: space-between;
  display: flex;
}

.grid_child_rightalign {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.grid_child_rightalign.top-bottom {
  gap: 4rem;
  flex-flow: column;
  justify-content: space-between;
  display: flex;
}

.blur {
  -webkit-backdrop-filter: blur(3rem);
  backdrop-filter: blur(3rem);
}

.content {
  gap: 1.5rem;
  text-align: left;
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 50rem;
  display: flex;
}

.content.medium { gap: 0.75rem; }
.content.small { gap: 0.5rem; }
.content.w25rem { max-width: 25rem; }

.spacer-xxhuge { padding-top: 12rem; }

/* --------------------------------------------------------------------------
   4. Background & Grain
   -------------------------------------------------------------------------- */
.background_wrap {
  z-index: -1;
  position: fixed;
  inset: 0;
  background: url('../images/landing-bg.jpg') center / cover no-repeat fixed;
}

.background_overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.55) 100%);
  position: absolute;
  inset: 0;
}

.grain {
  z-index: 99999;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  width: 100%;
  height: 100vh;
  position: fixed;
}

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
.navbar_component {
  border-bottom: 1px solid var(--wf-border);
  background-color: transparent;
  align-items: center;
  width: 100%;
  height: auto;
  padding-left: 5%;
  padding-right: 5%;
  display: flex;
  position: fixed;
  top: 0;
  z-index: 1000;
}

.navbar_container {
  gap: 1rem;
  border-right: 1px solid var(--wf-border);
  border-left: 1px solid var(--wf-border);
  -webkit-backdrop-filter: blur(5rem);
  backdrop-filter: blur(5rem);
  grid-template-rows: auto;
  grid-template-columns: .375fr 1fr .375fr;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  display: grid;
}

.navbar_logo-link {
  padding-left: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar_logo-text {
  color: var(--wf-text);
  letter-spacing: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s;
}

.navbar_logo-text:hover {
  letter-spacing: 2px;
}

.navbar_menu {
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 0;
}

.navbar_link {
  color: var(--wf-text);
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  text-decoration: none;
  font-size: 0.9375rem;
}

.navbar_link:hover {
  background-color: var(--wf-white-10);
  opacity: 1;
}

.navbar_button-wrapper {
  gap: 1rem;
  margin-left: 1rem;
  display: flex;
  justify-content: flex-end;
}

/* Mobile nav toggle */
.navbar_menu-button {
  display: none;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon2 {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  display: flex;
}

.menu-icon2_line-top,
.menu-icon2_line-bottom {
  background-color: var(--wf-text);
  width: 24px;
  height: 2px;
  transition: all 0.3s;
}

.menu-icon2_line-middle {
  background-color: var(--wf-text);
  width: 24px;
  height: 2px;
}

/* --------------------------------------------------------------------------
   6. Buttons (Webflow)
   -------------------------------------------------------------------------- */
.wf-button {
  background-color: #fff;
  background-image: linear-gradient(225deg, var(--wf-heing-yellow), var(--wf-heing-green));
  color: var(--wf-heing-violet);
  text-align: center;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  padding: 0.65rem 1.5rem;
  font-family: var(--wf-font-mono);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  transition: all 0.275s;
  cursor: pointer;
  display: inline-block;
}

.wf-button:hover {
  background-color: #ffffff4d;
  background-image: linear-gradient(to bottom, #ffffff30, #ffffff30),
                     linear-gradient(225deg, var(--wf-heing-yellow), var(--wf-heing-green));
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
  color: var(--wf-heing-violet);
  opacity: 1;
}

.wf-button.is-secondary {
  background-color: transparent;
  background-image: none;
  color: var(--wf-text);
  border: 1px solid var(--wf-white-20);
}

.wf-button.is-secondary:hover {
  background-color: var(--wf-white-10);
  background-image: none;
}

.wf-button.is-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.wf-button.is-large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   7. Typography Helpers
   -------------------------------------------------------------------------- */
.text-secondary {
  font-family: var(--wf-font-accent);
  font-style: italic;
}

.text-size-huge {
  letter-spacing: -3px;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
}

.text-size-xhuge {
  letter-spacing: -6px;
  font-size: 10rem;
  font-weight: 500;
  line-height: 0.8;
}

.text-size-logo-huge {
  letter-spacing: 0;
  margin-top: 0.5rem;
  margin-left: -5px;
  font-size: 3.55rem;
  font-weight: 700;
  line-height: 1;
}

.text-span-2 { font-size: 0.8rem; }

.hero_heading {
  letter-spacing: -5px;
  font-size: 7rem;
  font-weight: 500;
  line-height: 0.9;
}

.heading-3 {
  letter-spacing: -1px;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   8. Hero Section + Login Card
   -------------------------------------------------------------------------- */
.hero-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  gap: 0;
}

.hero-left {
  border-right: 1px solid var(--wf-border);
  padding: 6rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  -webkit-backdrop-filter: blur(3rem);
  backdrop-filter: blur(3rem);
}

.hero-right {
  padding: 6rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-card h4 {
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.login-card .form-group {
  margin-bottom: 1rem;
}

.login-card .form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--wf-white-60);
  font-family: var(--wf-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-card .form-input {
  width: 100%;
  color: var(--wf-text);
  background-color: var(--wf-white-5);
  border: 1px solid var(--wf-white-20);
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--wf-font-body);
  font-size: 0.9375rem;
  border-radius: 0;
  transition: border-color 0.2s;
}

.login-card .form-input:focus {
  outline: none;
  border-color: var(--wf-heing-yellow);
}

.login-card .form-input::placeholder {
  color: var(--wf-neutral-light);
}

.login-card .login-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 3rem;
}

.login-card__footer {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--wf-neutral-light);
  text-align: center;
}

.login-card__footer a {
  color: var(--wf-heing-yellow);
}

.login-card .alert {
  padding: 0.625rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border-left: 3px solid #b42318;
  background: rgba(180, 35, 24, 0.15);
  color: #fca5a5;
}

.login-card .alert__close {
  float: right;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   9. Platform Features Section
   -------------------------------------------------------------------------- */
.phase-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.phase-card {
  border-right: 1px solid var(--wf-border);
  padding: 2rem 1.5rem;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.3s;
}

.phase-card:last-child {
  border-right: none;
}

.phase-card:hover {
  background-color: var(--wf-white-5);
}

.phase-card__number {
  font-family: var(--wf-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wf-neutral-light);
  margin-bottom: 0.5rem;
}

.phase-card__title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.phase-card__desc {
  font-size: 0.875rem;
  color: var(--wf-neutral-lighter);
  line-height: 1.5;
}

.phase-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   10. Stats Bar
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  border-right: 1px solid var(--wf-border);
  padding: 2rem 1.5rem;
  text-align: left;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  letter-spacing: -4px;
  font-size: 5rem;
  font-weight: 500;
  line-height: 0.85;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--wf-neutral-lighter);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.lp-footer {
  border-top: 1px solid var(--wf-border);
}

.footer_content-bottom {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.footer_content-bottom-wrap {
  gap: 1rem;
  display: flex;
}

.footer_link {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--wf-neutral-lighter);
  transition: color 0.2s;
}

.footer_link:hover {
  color: var(--wf-text);
  opacity: 1;
}

.footer_socials {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.footer_socials-wrap {
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.footer_socials-link {
  transition: all 0.2s;
  text-decoration: none;
}

.footer_socials-link:hover {
  opacity: 0.5;
}

.logo-footer {
  width: 150px;
  height: auto;
  opacity: 0.9;
}

.icon-embed-xsmall {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 1rem;
  height: 1rem;
  display: flex;
}

/* --------------------------------------------------------------------------
   12. HTMX Indicator
   -------------------------------------------------------------------------- */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-request .htmx-hide-on-request { display: none; }

.spinner--sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--wf-heing-violet);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 0.375rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  h1, .hero_heading { font-size: 4.5rem; letter-spacing: -4px; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 2rem; }
  .text-size-huge { font-size: 3rem; }
  .text-size-xhuge { font-size: 6rem; letter-spacing: -4px; }

  .hero-login-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--wf-border);
    padding: 7rem 2rem 3rem;
    min-height: 50vh;
  }

  .hero-right {
    padding: 3rem 2rem;
  }

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

  .grid_child-boarder {
    border-right: none;
    border-bottom: 1px solid var(--wf-border);
  }

  .phase-pipeline {
    grid-template-columns: 1fr;
  }

  .phase-card {
    border-right: none;
    border-bottom: 1px solid var(--wf-border);
    min-height: auto;
    padding: 1.5rem;
  }

  .phase-card:last-child {
    border-bottom: none;
  }

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--wf-border);
  }

  .navbar_menu { display: none; }
  .navbar_menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(2rem);
    backdrop-filter: blur(2rem);
    border-bottom: 1px solid var(--wf-border);
    padding: 1rem 5%;
    z-index: 999;
  }

  .navbar_menu-button { display: block; }

  .navbar_container {
    display: flex;
    justify-content: space-between;
    position: relative;
  }

  .footer_content-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .spacer-xxhuge { padding-top: 6rem; }
}

@media (max-width: 767px) {
  h1, .hero_heading { font-size: 3.5rem; letter-spacing: -3px; }
  h2 { font-size: 1.75rem; letter-spacing: -1px; }
  h3, .heading-3 { font-size: 1.5rem; }
  .text-size-huge { font-size: 2.5rem; letter-spacing: -2px; }
  .text-size-xhuge { font-size: 4rem; letter-spacing: -3px; }

  .stat-number { font-size: 3.5rem; letter-spacing: -2px; }

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--wf-border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .padding-global {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid_child, .grid_child-boarder, .grid_child_rightalign {
    padding: 1rem;
  }

  .hero-left { padding: 6rem 1.5rem 2rem; }
  .hero-right { padding: 2rem 1.5rem; }

  .navbar_button-wrapper .wf-button.hide-mobile { display: none; }
}

@media (max-width: 479px) {
  h1, .hero_heading { font-size: 2.75rem; letter-spacing: -2px; }

  .login-card { max-width: 100%; }
}

/* --------------------------------------------------------------------------
   14. Print
   -------------------------------------------------------------------------- */
@media print {
  .navbar_component, .background_wrap, .grain { display: none; }
  body.landing-page { background: white; color: black; }
}
