:root {
  --footer-bg: #0a0a10;
  --footer-card: #14141d;
  --footer-border: #22222e;
  --footer-teal: #2fe3c4;
  --footer-teal-dim: #1c9b87;
  --footer-amber: #f0b43c;
  --footer-amber-dim: #a67c1f;
  --footer-text: #f2f2f5;
  --footer-muted: #9a9aa8;
  --footer-muted2: #6f6f7d;
}

.tw-footer {
  display: block !important;
  position: relative;
  z-index: 10;
  margin-top: 80px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

.tw-footer a { color: inherit; text-decoration: none; }
.tw-footer-inner { max-width: 1180px; margin: 0 auto; }
.tw-footer-banner { display: flex; align-items: center; gap: 14px; padding: 16px 22px; margin-bottom: 44px; border-radius: 14px; }
.tw-footer-banner .tw-footer-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .06); font-size: 1.15rem; }
.tw-footer-banner b { color: var(--footer-accent); }
.tw-footer-banner p { margin: 0; color: var(--footer-muted); font-size: .85rem; }
.tw-footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.tw-footer-brand { flex: 0 0 280px; }
.tw-footer-logo { margin-bottom: 12px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; }
.tw-footer-logo span { color: var(--footer-accent); }
.tw-footer-description { max-width: 300px; margin: 0; color: var(--footer-muted); font-size: .88rem; line-height: 1.6; }
.tw-footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.tw-footer-socials a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--footer-border); border-radius: 9px; color: var(--footer-muted); font-size: .85rem; }
.tw-footer-socials a:hover { border-color: var(--footer-accent-dim); color: var(--footer-accent); }
.tw-brand-query { margin-top: 22px; }
.tw-brand-query h5 { margin: 0 0 12px; color: var(--footer-accent); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
a.tw-connect-btn { display: inline-block; padding: 11px 26px; border-radius: 999px; background: var(--footer-accent);
  color: #052a20; font-weight: 800; font-size: .88rem; box-shadow: 0 8px 24px rgba(47, 227, 196, .22);
  transition: transform .15s ease, box-shadow .15s ease; }
a.tw-connect-btn:hover { color: #052a20; transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 227, 196, .35); text-decoration: none; }
.tw-footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); flex: 1; gap: 30px; }
.tw-footer-columns h5 { margin: 0 0 16px; color: var(--footer-accent); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.tw-footer-columns a { display: block; margin-bottom: 11px; color: #c4c4cf; font-size: .89rem; transition: color .15s ease, padding-left .15s ease; }
.tw-footer-columns a:hover { color: var(--footer-accent); padding-left: 4px; }
.tw-footer-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--footer-border); color: var(--footer-muted); font-size: .83rem; }
.tw-footer-badges span { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border: 1px solid var(--footer-border); border-radius: 999px; background: rgba(255, 255, 255, .02); }
.tw-footer-bottombar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--footer-border); }
.tw-footer-bottombar p { margin: 0; color: var(--footer-muted2); font-size: .8rem; }
.tw-footer-bottombar nav { display: flex; flex-wrap: wrap; gap: 20px; }
.tw-footer-bottombar nav a { color: var(--footer-muted); font-size: .82rem; transition: color .15s ease; }
.tw-footer-bottombar nav a:hover { color: var(--footer-accent); }

.tw-footer-frontend { border-top: 2px solid var(--footer-teal-dim); background: radial-gradient(ellipse at top, rgba(47, 227, 196, .05), transparent 60%); padding: 64px 40px 28px; --footer-accent: var(--footer-teal); --footer-accent-dim: var(--footer-teal-dim); }
.tw-footer-frontend .tw-footer-banner { background: rgba(47, 227, 196, .06); border: 1px solid rgba(47, 227, 196, .2); }
.tw-footer-backend { border-top: 2px solid var(--footer-amber-dim); background: radial-gradient(ellipse at top, rgba(240, 180, 60, .05), transparent 60%); padding: 64px 40px 28px; --footer-accent: var(--footer-amber); --footer-accent-dim: var(--footer-amber-dim); }
.tw-footer-backend .tw-footer-banner { justify-content: space-between; flex-wrap: wrap; background: rgba(240, 180, 60, .06); border: 1px solid rgba(240, 180, 60, .2); }
.tw-footer-backend .tw-footer-banner-left { display: flex; align-items: center; gap: 12px; }
.tw-footer-backend .tw-footer-steps { display: flex; flex-wrap: wrap; gap: 18px; color: var(--footer-muted); font-size: .78rem; }
.tw-footer-backend .tw-footer-steps span { white-space: nowrap; }

@media (max-width: 820px) {
  .tw-footer-columns { grid-template-columns: 1fr 1fr; }
  .tw-footer-top { flex-direction: column; }
}

/* Homepage footer: tool columns removed (every tool is already on the page) */
.tw-home-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.tw-home-brand { flex: 1 1 340px; max-width: 560px; }
.tw-home-linkcols { display: flex; gap: 64px; }
.tw-home-linkcols h5 { margin: 4px 0 16px; color: var(--footer-accent); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.tw-home-linkcols a { display: block; margin-bottom: 12px; color: #c4c4cf; font-size: .9rem; transition: color .15s ease, padding-left .15s ease; }
.tw-home-linkcols a:hover { color: var(--footer-accent); padding-left: 4px; }
.tw-home-linkcols a.tw-home-connect { display: inline-block; margin: 2px 0 0; padding: 12px 28px; border-radius: 999px;
  background: var(--footer-accent); color: #052a20; font-weight: 800; font-size: .9rem;
  box-shadow: 0 8px 24px rgba(47, 227, 196, .22); transition: transform .15s ease, box-shadow .15s ease; }
.tw-home-linkcols a.tw-home-connect:hover { color: #052a20; padding-left: 28px; transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 227, 196, .35); text-decoration: none; }
.tw-footer-bottombar-center { justify-content: center; }
/* Homepage footer hero */
.tw-home-rule { display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--footer-accent); margin-bottom: 22px; }
.tw-home-headline { margin: 0 0 16px; color: var(--footer-text); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.tw-home-headline em { font-style: normal; background: linear-gradient(100deg, #2fe3c4 20%, #a7f7e4 50%, #2fe3c4 80%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tw-sheen 8s linear infinite; }
@keyframes tw-sheen { to { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) { .tw-home-headline em { animation: none; } }
/* Homepage footer: mission line + giant brand backdrop */
.tw-home-mission { margin: 0 0 18px; color: var(--footer-muted); font-size: .92rem; line-height: 1.6; }
.tw-footer-giant { overflow: hidden; margin: 44px 0 0; text-align: center; user-select: none; pointer-events: none; }
.tw-footer-giant span { display: block; white-space: nowrap; font-size: clamp(4rem, 14vw, 11rem); font-weight: 800; letter-spacing: -.03em; line-height: .95; color: transparent; background: linear-gradient(to bottom, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)); -webkit-background-clip: text; background-clip: text; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
@media (max-width: 480px) {
  .tw-footer-frontend, .tw-footer-backend { padding: 40px 20px 24px; }
  .tw-footer-banner { align-items: flex-start; }
  .tw-footer-columns { grid-template-columns: 1fr; }
  /* Collapsible tool categories on phones: tap heading to expand */
  .tw-footer-columns > div > h5 { cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; padding: 14px 0; }
  .tw-footer-columns > div > h5::after { content: '+'; color: var(--footer-accent); font-size: 1.2rem; font-weight: 700; line-height: 1; }
  .tw-footer-columns > div.tw-open > h5 { margin-bottom: 16px; padding-bottom: 0; }
  .tw-footer-columns > div.tw-open > h5::after { content: '\2013'; }
  .tw-footer-columns > div > a { display: none; }
  .tw-footer-columns > div.tw-open > a { display: block; }
  .tw-footer-brand { flex-basis: auto; }
  .tw-footer-bottombar { justify-content: center; text-align: center; }
  .tw-home-top { gap: 32px; }
  .tw-home-linkcols { gap: 48px; }
  .tw-footer-giant { margin-top: 32px; }
  /* Mobile footer redesign: thumb-friendly, compact */
  .tw-home-linkcols a { padding: 7px 0; margin-bottom: 6px; }
  .tw-home-linkcols { flex-wrap: wrap; }
  .tw-home-query { flex: 1 1 100%; }
  .tw-home-linkcols a.tw-home-connect { display: block; text-align: center; padding: 15px 24px; margin-top: 2px; }
  .tw-brand-query a.tw-connect-btn { display: block; text-align: center; padding: 15px 24px; }
  .tw-footer-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; padding-top: 22px; }
  .tw-footer-badges span { justify-content: center; padding: 10px 8px; font-size: .78rem; text-align: center; }
  .tw-footer-badges span:last-child { grid-column: 1 / -1; justify-self: center; padding-left: 18px; padding-right: 18px; }
}