/* ══════════════════════════════════════
   AVAARA — Global Design System
   Sharp. Black. White. Editorial.
══════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --white: #FFFFFF;
  --off-white: #F7F7F7;
  --black: #0A0A0A;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-300: #D1D1D1;
  --gray-400: #A0A0A0;
  --gray-500: #6E6E6E;
  --gray-600: #4A4A4A;
  --gray-700: #2A2A2A;
  --card-dark: #0A0A0A;
  --font-heading: 'Urbanist', -apple-system, sans-serif;
  --font-body: 'Google Sans', 'Product Sans', 'Urbanist', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --nav-height: 64px;
}

/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

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

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

/* ── UTILITY ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--gray-200);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 320px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--black);
  transition: opacity 0.2s;
  position: relative;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s var(--ease);
}

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

.nav-link--active {
  opacity: 0.4;
}

/* Center Logo */
.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  user-select: none;
}

.nav-logo-text {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--black);
  font-family: var(--font-heading);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 320px;
  justify-content: flex-end;
}

.nav-login {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}

.nav-login:hover {
  opacity: 0.5;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  padding: 10px 24px;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--gray-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Mobile Nav ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 40px 48px;
  gap: 24px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--black);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu .mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  padding: 16px 32px;
  margin-top: 16px;
  border-bottom: none;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  padding: 16px 36px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--gray-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.btn-primary .arr {
  transition: transform 0.25s var(--ease);
  font-weight: 400;
}

.btn-primary:hover .arr {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--black);
  background: transparent;
  border: 1.5px solid var(--black);
  padding: 15px 35px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  padding: 18px 40px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.2);
}

.btn-white .arr {
  transition: transform 0.25s var(--ease);
}

.btn-white:hover .arr {
  transform: translateX(4px);
}

/* ══════════════════════════════════════
   FINAL CTA (Shared across pages)
══════════════════════════════════════ */
.final-cta {
  padding: 120px 48px;
  display: flex;
  justify-content: center;
}

.final-cta-card {
  background: var(--black);
  padding: 100px 80px;
  text-align: center;
  max-width: 900px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.final-cta-card h2 {
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  font-family: var(--font-heading);
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}

.final-cta-card p {
  font-size: 17px;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer-section {
  padding: 80px 48px 60px;
}

.footer-tagline {
  font-size: 18px;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 24px;
}

.footer-brand {
  font-weight: 800;
  font-size: clamp(60px, 10vw, 140px);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--black);
  margin-bottom: 60px;
  user-select: none;
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.footer-logo-mark {
  font-weight: 800;
  font-size: 10px;
  font-family: var(--font-heading);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--black);
}

.footer-columns {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-heading);
  color: var(--black);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--gray-500);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--black);
}

.footer-copy {
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--gray-400);
  text-align: center;
  padding: 24px 48px 40px;
}

/* ══════════════════════════════════════
   FOOTER CONTACT FORM
══════════════════════════════════════ */
.footer-contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 48px 0;
}

.footer-contact h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.footer-contact p {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-row {
  display: flex;
  gap: 16px;
}

.cf-row > * {
  flex: 1;
}

.cf-field {
  position: relative;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

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

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--gray-400);
}

.cf-field select {
  cursor: pointer;
  color: var(--gray-400);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23A0A0A0' stroke-width='1.5'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.cf-field select.has-value {
  color: var(--black);
}

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

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  padding: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.cf-submit:hover {
  background: var(--gray-700);
}

.cf-success {
  display: none;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  padding: 16px;
  border: 1.5px solid var(--gray-200);
}

.cf-success.visible {
  display: block;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .nav {
    padding: 0 24px;
  }

  .nav-left .nav-link {
    display: none;
  }

  .nav-right .nav-login,
  .nav-right .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .container {
    padding: 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 40px;
  }

  .footer-columns {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-section {
    padding: 60px 24px 40px;
  }

  .footer-copy {
    padding: 24px 24px 40px;
  }

  .final-cta {
    padding: 80px 24px;
  }

  .final-cta-card {
    padding: 60px 32px;
  }

  .footer-contact {
    padding: 40px 24px 0;
  }

  .cf-row {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .nav-left {
    min-width: auto;
  }

  .nav-right {
    min-width: auto;
  }

  .footer-columns {
    flex-direction: column;
    gap: 32px;
  }

  .footer-brand {
    font-size: 48px;
    margin-bottom: 40px;
  }
}
