/* =======================================================
 * Terawave homepage — Origin-IC / ODG-inspired B2B layout
 * Site-wide Origin / ODG-inspired layout (.odg-style)
 * ======================================================= */

.odg-style {
  --tw-blue: #1f6fe5;
  --tw-blue-dark: #1557c0;
  --tw-ink: #1c2434;
  --tw-muted: #66758a;
  --tw-line: #e6ebf2;
  --tw-soft: #f5f8fc;
  --tw-panel: #eaf2ff;
  --tw-white: #ffffff;
  --tw-shadow: 0 10px 30px rgba(28, 52, 90, 0.08);
  --tw-shadow-lg: 0 18px 50px rgba(28, 52, 90, 0.12);
  --tw-radius: 16px;
  --tw-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  margin: 0;
  font-family: var(--tw-font);
  color: var(--tw-muted);
  background: var(--tw-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Prevent Bootstrap 3 .container / #page from fighting the new layout */
.odg-style #page,
.odg-style main {
  width: 100%;
  overflow: visible;
}

.odg-style .container {
  width: 100% !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px;
  padding-right: 24px;
}

.odg-style h1,
.odg-style h2,
.odg-style h3 {
  font-family: var(--tw-font);
  color: var(--tw-ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.odg-style p {
  margin: 0 0 16px;
}

.odg-style a {
  color: var(--tw-blue);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.odg-style img {
  max-width: 100%;
}

/* Neutralize legacy template chrome on this page */
.odg-style .fh5co-nav,
.odg-style .fh5co-loader,
.odg-style .gototop {
  display: none !important;
}

.odg-style #footers {
  margin-top: 0;
}

/* ---------- Header ---------- */
.tw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 235, 242, 0.9);
}

.tw-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.tw-header__logo img {
  height: 34px;
  width: auto;
  max-width: 110px;
  display: block;
  object-fit: contain;
}

.tw-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.tw-header__nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--tw-ink);
  padding: 8px 14px;
  border-radius: 999px;
}

.tw-header__nav a:hover,
.tw-header__nav a.is-active {
  color: var(--tw-blue);
  background: rgba(31, 111, 229, 0.08);
}

.tw-nav-item {
  position: relative;
}

.tw-nav-item > a {
  font-size: 14px;
  font-weight: 600;
  color: var(--tw-ink);
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tw-nav-item > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  margin-left: 2px;
}

.tw-nav-item > a:hover,
.tw-nav-item > a.is-active,
.tw-nav-item:hover > a {
  color: var(--tw-blue);
  background: rgba(31, 111, 229, 0.08);
}

.tw-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 340px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--tw-line);
  border-radius: 14px;
  box-shadow: var(--tw-shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
}

.tw-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.tw-nav-item:hover .tw-dropdown,
.tw-nav-item:focus-within .tw-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.tw-dropdown__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.tw-dropdown__grid a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tw-ink);
  line-height: 1.3;
}

.tw-dropdown__grid a:hover {
  color: var(--tw-blue);
  background: rgba(31, 111, 229, 0.08);
}

.tw-mobile-vendors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  padding: 4px 4px 10px;
  margin: 0 0 6px;
  border-left: 2px solid rgba(31, 111, 229, 0.25);
}

.tw-mobile-vendors a {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--tw-muted) !important;
  padding: 6px 8px !important;
}

.tw-header__menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--tw-line);
  border-radius: 10px;
  background: var(--tw-white);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.tw-header__menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--tw-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tw-header__menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tw-header__menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.tw-header__menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tw-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--tw-line);
  background: var(--tw-white);
}

.tw-mobile-nav a {
  font-weight: 600;
  color: var(--tw-ink);
  padding: 10px 4px;
}

/* ---------- Buttons ---------- */
.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--tw-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.tw-btn--primary {
  background: var(--tw-blue);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(31, 111, 229, 0.28);
}

.tw-btn--primary:hover {
  background: var(--tw-blue-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.tw-btn--ghost {
  background: transparent;
  color: var(--tw-ink) !important;
  border: 1px solid var(--tw-line);
}

.tw-btn--ghost:hover {
  border-color: #c9d5e6;
  background: var(--tw-soft);
}

.tw-btn--light {
  background: #fff;
  color: var(--tw-ink) !important;
}

.tw-btn--light:hover {
  transform: translateY(-1px);
  box-shadow: var(--tw-shadow);
}

.tw-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-blue);
}

.tw-kicker--on-dark {
  color: #8ebeff;
}

.tw-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tw-blue);
}

.tw-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.tw-link:hover::after,
.tw-market:hover .tw-link::after,
.tw-card:hover .tw-link::after {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */
.tw-hero {
  position: relative;
  padding: 56px 0 0;
  background:
    radial-gradient(900px 420px at 85% 15%, rgba(31, 111, 229, 0.12), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
  overflow: hidden;
}

.tw-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 48px;
}

.tw-hero__copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.tw-hero__lead {
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--tw-muted);
  margin-bottom: 28px;
}

.tw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tw-hero__visual {
  position: relative;
  min-height: 360px;
}

.tw-hero__panel {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--tw-shadow-lg);
  background: var(--tw-panel);
}

.tw-hero__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.tw-hero__orb {
  position: absolute;
  border-radius: 28px;
  background: rgba(31, 111, 229, 0.12);
  z-index: 0;
}

.tw-hero__orb--1 {
  width: 140px;
  height: 140px;
  top: -18px;
  right: -18px;
  animation: twFloat 6s ease-in-out infinite;
}

.tw-hero__orb--2 {
  width: 90px;
  height: 90px;
  left: -16px;
  bottom: 40px;
  background: rgba(31, 111, 229, 0.08);
  animation: twFloat 7s ease-in-out infinite reverse;
}

/* ---------- Stats (floating cards) ---------- */
.tw-stats {
  list-style: none;
  margin: 0;
  padding: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.tw-stats__item {
  background: var(--tw-white);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius);
  box-shadow: var(--tw-shadow);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tw-stats__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--tw-shadow-lg);
}

.tw-stats__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 111, 229, 0.1);
  color: var(--tw-blue);
  margin-bottom: 8px;
}

.tw-stats__icon i {
  font-size: 18px;
  color: var(--tw-blue);
}

.tw-stats__value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--tw-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tw-stats__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tw-muted);
}

/* ---------- Sections ---------- */
.tw-section {
  padding: 88px 0;
}

.tw-section--muted {
  background: var(--tw-soft);
}

.tw-section__head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.tw-section__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}

.tw-section__head p:last-child {
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.tw-card-grid {
  display: grid;
  gap: 20px;
}

.tw-card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tw-card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.tw-card {
  background: var(--tw-white);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius);
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(28, 52, 90, 0.04);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tw-shadow);
  border-color: #d7e3f5;
}

.tw-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eef5ff, #e3edff);
  margin-bottom: 18px;
}

.tw-card__icon i {
  font-size: 20px;
  color: var(--tw-blue);
}

.tw-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.tw-card p {
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.tw-card--compact p {
  min-height: 0;
}

/* ---------- Markets ---------- */
.tw-market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tw-market {
  display: flex;
  flex-direction: column;
  background: var(--tw-white);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius);
  overflow: hidden;
  color: inherit;
  box-shadow: 0 4px 18px rgba(28, 52, 90, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tw-market:hover {
  transform: translateY(-4px);
  box-shadow: var(--tw-shadow-lg);
  color: inherit;
}

.tw-market img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.tw-market__body {
  padding: 22px 20px 24px;
}

.tw-market__body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tw-market__body p {
  margin-bottom: 14px;
  color: var(--tw-muted);
}

/* ---------- CTA band ---------- */
.tw-cta-band {
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(90, 160, 255, 0.28), transparent 60%),
    linear-gradient(120deg, #123a7a 0%, #1f6fe5 55%, #2a83f0 100%);
  color: rgba(255, 255, 255, 0.86);
  padding: 64px 0;
}

.tw-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.tw-cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.tw-cta-band p {
  margin: 0;
  max-width: 36rem;
}

/* ---------- Footer soft override when loaded ---------- */
.odg-style #fh5co-footer {
  background: #0f1724 !important;
  margin-top: 0;
}

.odg-style #fh5co-footer h3,
.odg-style #fh5co-footer a,
.odg-style #fh5co-footer p,
.odg-style #fh5co-footer small {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Motion ---------- */
@keyframes twFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .tw-hero__orb,
  .tw-card,
  .tw-market,
  .tw-stats__item,
  .tw-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tw-card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .tw-header__nav,
  .tw-header__cta {
    display: none;
  }

  .tw-dropdown {
    display: none;
  }

  .tw-header__menu-btn {
    display: inline-flex;
  }

  .tw-mobile-nav:not([hidden]) {
    display: flex;
  }

  .tw-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tw-hero__visual {
    min-height: 280px;
  }

  .tw-hero__panel {
    min-height: 280px;
  }

  .tw-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .tw-card-grid--3,
  .tw-market-grid {
    grid-template-columns: 1fr;
  }

  .tw-cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .tw-stats {
    grid-template-columns: 1fr;
  }

  .tw-card-grid--4 {
    grid-template-columns: 1fr;
  }

  .tw-hero {
    padding-top: 28px;
  }

  .tw-section {
    padding: 64px 0;
  }
}

/* ---------- Inner page hero ---------- */
.tw-page-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(800px 360px at 90% 0%, rgba(31, 111, 229, 0.12), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--tw-line);
}

.tw-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.tw-page-hero__lead {
  max-width: 40rem;
  margin: 0;
  font-size: 1.08rem;
  color: var(--tw-muted);
}

/* ---------- About ---------- */
.tw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tw-split__media {
  border-radius: var(--tw-radius);
  overflow: hidden;
  box-shadow: var(--tw-shadow);
  background: var(--tw-panel);
}

.tw-split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.tw-split__copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 14px;
}

.tw-quote-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--tw-white);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius);
  padding: 28px;
  box-shadow: var(--tw-shadow);
  max-width: 920px;
  margin: 0 auto;
}

.tw-quote-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 3px #fff, 0 8px 24px rgba(28, 52, 90, 0.12);
}

.tw-quote-card__tagline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tw-ink);
  margin-bottom: 6px;
}

.tw-quote-card__role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tw-blue);
  margin-bottom: 14px;
}

.tw-quote-card__sign {
  margin-top: 18px;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--tw-ink);
}

/* ---------- Contact ---------- */
.tw-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.tw-contact-card,
.tw-form-card {
  background: var(--tw-white);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius);
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(28, 52, 90, 0.04);
}

.tw-contact-card h2,
.tw-form-card h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.tw-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.tw-contact-list__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tw-blue);
}

.tw-contact-list a {
  color: var(--tw-ink);
  font-weight: 600;
}

.tw-contact-list a:hover {
  color: var(--tw-blue);
}

.tw-hubspot {
  margin-top: 8px;
}

.tw-map {
  line-height: 0;
  border-top: 1px solid var(--tw-line);
}

.tw-map iframe {
  display: block;
  filter: grayscale(0.15);
}

/* ---------- Solutions tabs ---------- */
.tw-solutions {
  padding-top: 40px;
}

.odg-style .tw-tabs .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 0 0 28px;
  padding: 0;
}

.odg-style .tw-tabs .nav-tabs > li {
  float: none;
  margin: 0;
}

.odg-style .tw-tabs .nav-tabs > li > a {
  margin: 0;
  border: 1px solid var(--tw-line) !important;
  border-radius: 999px !important;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tw-ink);
  background: var(--tw-white);
  line-height: 1.3;
}

.odg-style .tw-tabs .nav-tabs > li.active > a,
.odg-style .tw-tabs .nav-tabs > li.active > a:hover,
.odg-style .tw-tabs .nav-tabs > li.active > a:focus,
.odg-style .tw-tabs .nav-tabs > li > a:hover {
  color: #fff !important;
  background: var(--tw-blue) !important;
  border-color: var(--tw-blue) !important;
}

.odg-style .tw-tabs .tab-content {
  background: var(--tw-white);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius);
  padding: 36px 28px;
  box-shadow: 0 4px 18px rgba(28, 52, 90, 0.04);
}

.odg-style .tw-vendor {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.odg-style .tw-vendor img {
  margin-bottom: 18px;
}

.odg-style .tw-vendor p {
  text-align: left;
  font-size: 1.02rem;
  color: var(--tw-muted);
}

.odg-style .tw-vendor-panel {
  margin: 0;
}

/* ---------- Footer ---------- */
.odg-style .tw-footer,
.odg-style #fh5co-footer.tw-footer {
  background: #0f1724 !important;
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px !important;
  margin: 0;
}

.tw-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tw-footer__brand h3 {
  color: #fff !important;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.tw-footer__brand p,
.tw-footer__links a,
.tw-footer__copy small {
  color: rgba(255, 255, 255, 0.72) !important;
}

.tw-footer__heading {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ebeff;
}

.tw-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tw-footer__links li {
  margin-bottom: 8px;
}

.tw-footer__links a:hover {
  color: #fff !important;
}

.tw-footer__copy {
  padding-top: 20px;
  text-align: center;
}

@media (max-width: 860px) {
  .tw-split,
  .tw-contact-grid,
  .tw-footer__grid,
  .tw-quote-card {
    grid-template-columns: 1fr;
  }

  .tw-quote-card__photo {
    margin: 0 auto;
  }
}
