/* ============================================================
   Twinbit Frontend Interactions & Dynamic Styles
   Extracted from static templates (tw_02)
   ============================================================ */

/* ============================================================
   Base button reset & keyboard focus styles
   ============================================================ */
.tw-btn-reset {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.tw-btn-reset:focus-visible,
.tw-navlink:focus-visible,
.tw-footlink:focus-visible,
.tw-chip:focus-visible,
a.tw-s148:focus-visible,
.tw-s148:focus-visible,
button.tw-s219:focus-visible,
.tw-s219:focus-visible,
button.tw-s232:focus-visible,
.tw-s232:focus-visible {
  outline: 2px solid var(--acc, #5b8cff);
  outline-offset: 3px;
}

/* ============================================================
   Header glass scrolled state (FR-1.5)
   ============================================================ */
.tw-s4.is-scrolled {
  background: rgba(8, 9, 12, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, .08);
}

/* ============================================================
   Navigation links (shared header across all 7 pages)
   ============================================================ */
.tw-navlink {
  display: inline-block;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #aeb2bc;
  padding: 8px 13px;
  border-radius: 9px;
  text-decoration: none;
  transition: color .2s, background .2s;
}

.tw-navlink:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.tw-navlink.is-active {
  color: #fff;
}

/* Header CTAs (all pages) */
.tw-s11:hover {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

.tw-s12:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--acc, #5b8cff) 55%, transparent);
}

/* ============================================================
   Footer links (shared footer across all 7 pages)
   ============================================================ */
.tw-s85:hover,
.tw-footlink:hover {
  color: #fff;
}

.tw-s88:hover {
  color: #fff;
}

/* ============================================================
   Page: index.html (Home)
   ============================================================ */
.hero2__cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--acc, #5b8cff) 55%, transparent);
}

.hero2__cta-secondary:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .06);
}

.tw-s59:hover {
  transform: translateY(-2px);
}

.tw-s76:hover {
  transform: translateY(-2px);
}

.tw-s77:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-2px);
}

/* ============================================================
   Page: apps.html
   ============================================================ */
.ap-cta__btn:hover {
  transform: translateY(-2px);
}

/* ============================================================
   Page: company.html
   ============================================================ */
.tw-s130:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-2px);
}

/* ============================================================
   Page: careers.html
   ============================================================ */
.tw-chip {
  display: inline-block;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #cfd3db;
  text-decoration: none;
  transition: all .2s;
  user-select: none;
}

.tw-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
}

.tw-chip.is-active {
  background: linear-gradient(135deg, var(--acc, #5b8cff), var(--acc2, #f7941d));
  border-color: transparent;
  color: #fff;
}

.tw-chip.is-active:hover {
  filter: brightness(1.08);
}

.tw-s148:hover {
  border-color: color-mix(in srgb, var(--acc, #5b8cff) 50%, transparent);
  background: rgba(255, 255, 255, .06);
  transform: translateX(4px);
}

.tw-s157:hover {
  color: #fff;
}

.tw-s164:hover {
  transform: translateY(-2px);
}

/* ============================================================
   Page: job.html
   ============================================================ */
.tw-s110:hover {
  transform: translateY(-2px);
}

.tw-s165:hover {
  color: #fff;
}

.tw-s184:hover {
  border-color: color-mix(in srgb, var(--acc, #5b8cff) 45%, transparent);
}

.tw-s187:hover {
  border-color: color-mix(in srgb, var(--acc, #5b8cff) 60%, transparent);
  background: color-mix(in srgb, var(--acc, #5b8cff) 20%, transparent);
}

.tw-s195:hover {
  transform: translateY(-2px);
}

/* ============================================================
   Page: apply.html
   ============================================================ */
.tw-s201:hover {
  transform: translateY(-2px);
}

.tw-s209:focus,
.tw-s209:focus-visible,
.tw-s210:focus,
.tw-s210:focus-visible,
.tw-s215:focus,
.tw-s215:focus-visible {
  border-color: var(--acc, #5b8cff);
  outline: none;
}

.tw-s211:hover {
  border-color: var(--acc, #5b8cff);
}

.tw-s219:hover {
  transform: translateY(-2px);
}

.tw-field-error {
  font-size: 12px;
  margin-top: 4px;
  color: #ff6b6b;
  display: block;
}

/* ============================================================
   Page: contact.html
   ============================================================ */
.tw-s232:hover {
  transform: translateY(-2px);
}

/* ============================================================
   Legal Page (privacy-policy / terms)
   ============================================================ */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 80px;
  color: #c3c7d0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 12px;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e8e9ec;
  margin: 24px 0 8px;
}

.legal-body ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body p {
  margin: 0 0 1.5em;
}

.legal-body ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.legal-body strong {
  font-weight: 700;
  color: #fff;
}

.legal-body a {
  color: var(--acc, #5b8cff);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: #fff;
}

.legal-body blockquote {
  margin: 16px 0;
  padding: 10px 18px;
  border-left: 3px solid var(--acc, #5b8cff);
  color: #a3a8b2;
  line-height: 1.6;
}

.legal-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin: 20px 0;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}

.legal-body th,
.legal-body td {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
}

.legal-body th {
  font-weight: 600;
  color: #e8e9ec;
}

.legal-body td {
  color: #c3c7d0;
}

.legal-body__updated {
  color: #8a8f9a;
  font-size: 14px;
  margin-top: 12px;
}

/* ============================================================
   Contact Page Form & Channel Enhancements
   ============================================================ */
.tw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.tw-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.tw-s232 {
  border: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  width: 100%;
  display: block;
  transition: transform .2s ease;
}

.tw-form-success {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .35);
  color: #86efac;
  font-size: 14px;
  line-height: 1.5;
}

.tw-s228 a {
  color: inherit;
  text-decoration: none;
}

.tw-s228 a:hover {
  text-decoration: underline;
}

.tw-s230 .tw-field-error {
  margin-top: -6px;
  margin-bottom: 2px;
}


/* ============================================================
   Phase 3: Public Careers, Open Roles & Job Details Enhancements
   ============================================================ */
a.tw-s148 {
  display: flex;
  color: inherit;
  text-decoration: none;
}

button.tw-chip {
  font-family: inherit;
  line-height: inherit;
}

button.tw-s157 {
  color: var(--acc, #5b8cff);
}

a.tw-s184,
a.tw-s187 {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Job Rich Text Content (.job-richtext)
   Reproduces Summernote sanitized HTML styling matching template.
   ============================================================ */
.job-richtext h3,
.job-richtext h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #e8e9ec;
  margin: 20px 0 12px;
}

.job-richtext h3:first-child,
.job-richtext h4:first-child {
  margin-top: 0;
}

.job-richtext p {
  font-size: 15px;
  color: #a3a8b2;
  line-height: 1.65;
  margin: 0 0 12px;
}

.job-richtext ul,
.job-richtext ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.job-richtext li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  color: #c3c7d0;
  line-height: 1.5;
  align-items: baseline;
}

.job-richtext li::before {
  content: '›';
  color: var(--acc, #5b8cff);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  flex: none;
}

.job-richtext a {
  color: var(--acc, #5b8cff);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job-richtext a:hover {
  color: #fff;
}

.job-richtext h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #e8e9ec;
  margin: 22px 0 12px;
}

.job-richtext h2:first-child {
  margin-top: 0;
}

.job-richtext h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #e8e9ec;
  margin: 18px 0 10px;
}

.job-richtext h5:first-child {
  margin-top: 0;
}

.job-richtext blockquote {
  margin: 16px 0;
  padding: 10px 18px;
  border-left: 3px solid var(--acc, #5b8cff);
  color: #a3a8b2;
  line-height: 1.6;
}

.job-richtext hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin: 20px 0;
}

.job-richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}

.job-richtext th,
.job-richtext td {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
}

.job-richtext th {
  font-weight: 600;
  color: #e8e9ec;
}

.job-richtext td {
  color: #c3c7d0;
}

.tw-job-closed-note {
  font-size: 15px;
  font-weight: 600;
  color: #ff6b6b;
  margin-top: 10px;
}

.tw-s189 .tw-job-closed-note {
  text-align: center;
  margin-top: 20px;
}

/* ============================================================
   Job Application Form & Alert Enhancements
   ============================================================ */
.tw-form-alert {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 107, 107, .1);
  border: 1px solid rgba(255, 107, 107, .3);
  color: #ff8a8a;
  font-size: 14px;
  line-height: 1.5;
}

label.tw-s211 {
  cursor: pointer;
  display: block;
}

.tw-s211.is-dragover {
  border-color: var(--acc, #5b8cff);
}

.tw-resume-name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--acc, #5b8cff);
}

.tw-resume-name[hidden] {
  display: none !important;
}

button.tw-s219 {
  border: 0;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}

.tw-s220 a {
  color: var(--acc, #5b8cff);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tw-s220 a:hover {
  color: #fff;
}

.tw-apply-actions {
  margin-top: 14px;
}

/* ============================================================
   Accessibility: Skip link & focus (Plan §7.5, NFR-3.1)
   ============================================================ */
.tw-skip-link {
  position: absolute;
  top: -9999px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: #08090c;
  color: #fff;
  border: 2px solid var(--acc, #ef4136);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}

.tw-skip-link:focus,
.tw-skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--acc, #ef4136);
  outline-offset: 2px;
}

/* ============================================================
   Footer link columns navigation wrapper
   ============================================================ */
.tw-footernav {
  display: contents;
}

/* ============================================================
   Form submit loading spinner & interactive state
   ============================================================ */
button.tw-s232,
button.tw-s219 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.tw-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tw-spin .7s linear infinite;
  flex-shrink: 0;
  box-sizing: border-box;
}

.is-loading .tw-btn-spinner {
  display: inline-block;
}

button.is-loading {
  cursor: progress;
  opacity: .85;
}

button.is-loading:hover,
button.tw-s232.is-loading:hover,
button.tw-s219.is-loading:hover,
.tw-s232.is-loading:hover,
.tw-s219.is-loading:hover {
  transform: none;
}

@keyframes tw-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   Reduced motion: disable transitions/animations/transforms
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .tw-btn-spinner {
    animation-duration: 1.5s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ============================================================
   Office Location Google Maps Embed
   ============================================================ */
.tw-map-embed {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  border-radius: inherit;
  display: block;
  filter: grayscale(.2) contrast(1.05);
}

.tw-s126.tw-has-map,
.tw-s126:has(.tw-map-embed) {
  overflow: hidden;
  padding: 0;
  position: relative;
  display: block;
}

.tw-s233.tw-has-map,
.tw-s233:has(.tw-map-embed) {
  justify-content: flex-start;
}

.tw-s234.tw-has-map,
.tw-s234:has(.tw-map-embed) {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16/10;
  position: relative;
  display: block;
  padding: 0;
}

.tw-map-link {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--acc, #ef4136);
  background: rgba(14, 16, 22, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}

.tw-map-link:hover {
  color: #fff;
  border-color: var(--acc, #ef4136);
  text-decoration: underline;
}

.tw-map-link:focus-visible {
  outline: 2px solid var(--acc, #ef4136);
  outline-offset: 2px;
}

/* ============================================================
   Footer: Social Links & Contact Details
   ============================================================ */
.tw-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.tw-footer-social__link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #aeb2bc;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.tw-footer-social__link:hover,
.tw-footer-social__link:focus-visible {
  color: #fff;
  border-color: var(--acc, #ef4136);
}

.tw-footer-offices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tw-footer-office {
  display: flex;
  flex-direction: column;
  font-style: normal;
}

.tw-footer-label {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
  color: #6f7480;
  margin-bottom: 4px;
}

.tw-footer-office .tw-s85,
.tw-footer-contact .tw-s85 {
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tw-footer-contact address {
  font-style: normal;
}

@media (max-width: 599px) {
  .tw-footer-social {
    justify-content: center;
  }

  .tw-footer-office {
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   Contact Form: Subject dropdown styling
   ============================================================ */
.tw-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aeb2bc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

.tw-select:focus,
.tw-select:focus-visible {
  border-color: var(--acc, #5b8cff);
  outline: none;
}

.tw-select option {
  background: #12141a;
  color: #e8e9ec;
}

/* ============================================================
   Footer: Bottom Bar Layout & Apple Trademark Notice
   ============================================================ */
.tw-s86 {
  align-items: flex-start;
}

.tw-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.tw-footer-legal-note {
  font-size: 11px;
  color: #6f7480;
  line-height: 1.5;
  max-width: 760px;
  margin: 0;
}

.tw-s87 {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .tw-s86 {
    flex-direction: column;
    align-items: center;
  }

  .tw-footer-legal {
    align-items: center;
    text-align: center;
  }

  .tw-s87 {
    margin-left: 0;
  }
}





