/* Header */
header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  padding: 20px 0;
  color: #fff;
  transition: .35s var(--ease)
}

header .container {
  width: min(calc(100% - 48px), 1350px)
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px 0 14px;
  background: #08090b;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .16)
}

header.scrolled {
  height: 86px;
  padding: 12px 0
}

header.scrolled .nav {
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  background: rgba(8, 9, 11, .96);
  backdrop-filter: blur(18px)
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  line-height: 1;
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 155px;
  display: block;
  transition: transform .2s ease, opacity .2s ease;
}

.logo:hover .logo-img {
  opacity: .92;
  transform: translateY(-1px);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #ff5b36;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: .02em;
  box-shadow: 0 5px 15px rgba(0, 102, 220, .28)
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05
}

.logo-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #f7f7f5
}

.logo-sub {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7e8490;
  margin-top: 4px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px
}

.nav-links a {
  font-size: 16px;
  color: #aeb2ba;
  padding: 10px 13px;
  border-radius: 10px;
  transition: .25s
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, .07)
}

.nav-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 5px;
  padding: 10px 13px;
  color: #aeb2ba;
  font-family: monospace;
  font-size: 13px;
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, .1)
}

.email-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d084;
  box-shadow: 0 0 0 0 rgba(0, 208, 132, .6);
  animation: emailPulse 1.8s infinite
}

@keyframes emailPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, .55)
  }

  70% {
    box-shadow: 0 0 0 7px rgba(0, 208, 132, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0)
  }
}

.nav-cta {
  margin-left: 2px;
  padding: 12px 19px;
  border-radius: 13px;
  background: #ff5b36;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 91, 205, .3);
  transition: .3s var(--ease)
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(0, 91, 205, .4)
}

.menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  color: #fff;
  align-items: center;
  justify-content: center
}

.mobile-nav {
  display: none
}

/* Footer */
footer {
  background: #111214;
  color: #fff;
  padding: 70px 0 25px
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr .7fr;
  gap: 60px;
  padding-bottom: 70px
}

.footer-brand p {
  max-width: 310px;
  color: #777a75;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 22px
}

.footer-title {
  font-size: 10px;
  color: #777a75;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 20px
}

.footer-links {
  display: grid;
  gap: 12px
}

.footer-links a {
  font-size: 12px;
  color: #b0b1ab;
  transition: .2s
}

.footer-links a:hover {
  color: #fff
}

.footer-bottom {
  border-top: 1px solid #2b2d30;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #686a65;
  font-size: 10px
}

.footer-mark {
  font-size: clamp(60px, 13vw, 180px);
  line-height: .75;
  font-weight: 800;
  letter-spacing: -.1em;
  color: #1a1b1e;
  margin-top: 50px;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px
}

.modal.show {
  display: flex
}

.modal-box {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  padding: 38px;
  position: relative
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 35px;
  height: 35px;
  border: 1px solid #c9c7c0;
  font-size: 20px
}

.modal h2 {
  font-size: 43px;
  letter-spacing: -.06em;
  line-height: .95;
  max-width: 500px;
  margin-bottom: 10px
}

.modal>div>p {
  font-size: 12px;
  color: #777873;
  margin-bottom: 30px
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px
}

.field {
  margin-bottom: 15px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 7px
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: #fff;
  border: 1px solid #d5d3cc;
  padding: 13px;
  outline: none;
  font-size: 13px
}

.field textarea {
  min-height: 120px;
  resize: vertical
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent)
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select,
.page-form .field.has-error input,
.page-form .field.has-error textarea,
.page-form .field.has-error select {
  border-color: #ef4444 !important;
  background-color: #fff8f8;
}

.field-error-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #dc2626;
  margin-top: 5px;
  letter-spacing: normal;
  text-transform: none;
  animation: fieldFadeIn .2s ease;
}

.field-error-badge::before {
  content: '⚠';
  font-size: 11px;
  display: inline-block;
}

@keyframes fieldFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-submit {
  margin-top: 8px
}

@media(max-width:1150px) {
  header .container {
    width: min(calc(100% - 32px), 1230px)
  }

  .nav {
    gap: 12px
  }

  .nav-links a {
    padding: 10px 8px
  }

  .nav-email {
    display: none
  }
}

@media(max-width:1000px) {
  header {
    height: 86px;
    padding: 14px 0
  }

  header .container {
    width: min(calc(100% - 32px), 1230px)
  }

  .nav {
    height: 58px;
    padding: 0 9px 0 11px;
    border-radius: 18px
  }

  .nav-links {
    display: none
  }

  .nav>.nav-cta {
    display: none;
  }

  .menu {
    display: flex;
    margin-left: auto
  }

  .logo-img {
    height: 34px;
    max-width: 140px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px
  }

  .logo-name {
    font-size: 15px
  }

  .mobile-nav {
    position: fixed;
    z-index: 90;
    top: 78px;
    left: 16px;
    right: 16px;
    background: #08090b;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 20px;
    display: none;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .3)
  }

  .mobile-nav.show {
    display: block
  }

  .mobile-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid #292b2e;
    color: #ccc;
    font-size: 14px
  }

  .mobile-nav .nav-cta {
    display: block;
    text-align: center;
    margin: 15px 0 0;
    width: 100%
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px
  }

  .footer-brand {
    grid-column: 1/-1
  }

  .footer-bottom {
    display: block
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px
  }

  .footer-mark {
    font-size: 75px
  }

  .modal-box {
    padding: 28px 20px
  }

  .modal h2 {
    font-size: 37px
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .field.full {
    grid-column: auto
  }
}

@media(max-width:650px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px
  }

  .footer-brand {
    grid-column: auto
  }

  .footer-bottom {
    display: block
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px
  }

  .footer-mark {
    font-size: 60px
  }

  .modal-box {
    padding: 25px 16px
  }

  .modal h2 {
    font-size: 32px
  }
}

/* Laptop Typography Adjustments */
@media (min-width: 1024px) {
  .logo-name {
    font-size: 14px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .nav-email {
    font-size: 12px;
  }

  .nav-cta {
    font-size: 11px;
    padding: 10px 16px;
  }

  .footer-mark {
    font-size: clamp(50px, 10vw, 150px);
  }

  .modal h2 {
    font-size: 36px;
  }

  .footer-brand p {
    font-size: 11px;
  }

  .footer-links a {
    font-size: 11px;
  }
}