﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #071426;
  --bg-nav: #0b1f3a;
  --bg-card: #08182f;
  --bg-card-2: #061221;
  --border: #1f2a44;
  --text-main: #ffffff;
  --text-sub: #a0a0a0;
  --blue: #2f80ed;
  --orange: #ff7a00;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* NAVBAR */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transform: translateY(0);
  transition: none;
  will-change: transform;
}

.nav {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  column-gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 92px;
  height: auto;
  display: block;
}

.nav-accent-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin-right: 18px;
  flex: 0 0 auto;
}

.nav-accent-block {
  display: block;
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background: #2f80ed;
  box-shadow: 0 0 12px rgba(47, 128, 237, 0.28);
}

.nav-main {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 24px;
  width: 100%;
}

.nav-dual-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 142px;
  min-height: 100%;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  flex: 0 0 auto;
}

.nav-dual-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease;
}

.nav-dual-btn:hover {
  filter: brightness(1.08);
}

.nav-dual-btn-clients {
  background:#E86a17;
  color: #ffffff;
}

.nav-dual-btn-builders {
  background: rgba(47, 128, 237, 0.3);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-right: 28px;
}

.nav-links a,
.login-link {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.login-link:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--orange);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

/* HERO */

.hero-section {
  position: relative;
  z-index: 1;
  padding-top: 28px;
  padding-bottom: 0;
  background: var(--bg-main);
}

.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-title {
  max-width: 1120px;
  font-size: 58px;
  line-height: 0.9;
  font-weight: 700;
}

.hero-sub {
  max-width: none;
  width: 100%;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-sub-light {
  color: #d8e2f0;
}

.hero-sub-accent {
  color: #2F80ED;
  background: linear-gradient(180deg, #B9DCFF 0%, #60A5FA 38%, #2F80ED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  text-shadow: 0 0 14px rgba(47, 128, 237, 0.45);
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 300px;
  margin-bottom: 25px;
  background: var(--bg-main);
  border: none;
  border-radius: 28px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* TABS */

.tabs-section {
  position: relative;
  z-index: 20;
  top: -25px;
  padding-top:25px;
  padding-bottom: 56px;
  background: transparent;
}

.tabs-container {
  position: relative;
  z-index: 20;
}

.tabs-row {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow: visible;
}

.tab-panel {
  position: relative;
  z-index: 5;
  flex: 0 0 33.333%;
  min-height: 360px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: visible;
  transition:
    flex-basis 280ms ease,
    background 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease;
}

.tabs-row:hover .tab-panel {
  flex-basis: 12.5%;
}

.tabs-row:hover .tab-panel:hover {
  flex-basis: 75%;
  background: linear-gradient(180deg, #0a1d37 0%, #071426 100%);
  border-color: var(--blue);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  z-index: 8;
}

.tab-head {
  position: absolute;
  top: -56px;
  left: 0;
  width: 100%;
  height: 56px;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.tab-head-inner {
  position: absolute;
  left: 14px;
  top: 0;
  width: 75%;
  height: 56px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--border);
  border-bottom: none;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.tab-title {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-content {
  height: 100%;
  padding: 72px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.tab-symbol {
  color: var(--blue);
  flex: 0 0 auto;
}

.tab-symbol svg {
  width: 28px;
  height: 28px;
  display: block;
}

.tab-text-small {
  font-size: 16px;
  line-height: 1.5;
  color: #e8eefb;
  max-width: 320px;
}

.tab-text-large {
  display: block;
  max-width: 650px;
}

.tab-lead {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 600;
}

.tab-copy {
  display: none;
  font-size: 17px;
  line-height: 1.65;
  color: #c9d6eb;
  margin-bottom: 18px;
}

.tab-cta {
  display: none;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
}

.tabs-row:hover .tab-panel:hover .tab-text-large {
  display: block;
}

.tabs-row:hover .tab-panel:hover .tab-copy,
.tabs-row:hover .tab-panel:hover .tab-cta {
  display: block;
}

.tabs-row:hover .tab-panel:not(:hover) .tab-text-large {
  display: none;
}

.tabs-row:hover .tab-panel:not(:hover) .tab-text-small {
  max-width: 150px;
}

.tabs-row:hover .tab-panel:not(:hover) .tab-title {
  font-size: 18px;
}

.tabs-row:hover .tab-panel:not(:hover) .tab-head-inner {
  width: calc(100% - 28px);
}

.tabs-row:hover .tab-panel:not(:hover) .tab-content {
  padding-left: 18px;
  padding-right: 18px;
}

/* BASE */

main section {
  position: relative;
}

main {
  position: relative;
  z-index: auto;
}

/* RESPONSIVE */

@media (max-width: 991px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav {
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-main {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav-dual-cta {
    width: 156px;
    min-height: 56px;
  }

  .nav-links {
    justify-content: flex-start;
    margin-right: 0;
    flex-wrap: wrap;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .brand-logo {
    width: 78px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-visual {
    height: 210px;
  }

  .tabs-section {
    top: 0;
    padding-top: 28px;
  }

  .tabs-row {
    flex-direction: column;
    gap: 20px;
    overflow: visible;
  }

  .tab-panel,
  .tabs-row:hover .tab-panel,
  .tabs-row:hover .tab-panel:hover {
    flex-basis: auto;
    min-height: auto;
  }

  .tab-head {
    position: relative;
    top: 0;
    height: auto;
  }

  .tab-head-inner {
    position: relative;
    left: 0;
    width: 75%;
  }

  .tab-content {
    padding-top: 28px;
  }

  .tab-text-large {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a,
  .login-link,
  .btn-primary {
    font-size: 14px;
  }

  .tab-title {
    font-size: 18px;
  }

  .tab-text-small,
  .tab-copy,
  .tab-lead {
    font-size: 15px;
  }
}
