/* Página X/Twitter — visual alinhado ao restante do tema Alload. */
.twitter-theme {
  --twitter-ink: #121218;
  --twitter-muted: #6f6878;
  --twitter-line: #e9e4ed;
  --twitter-soft: #f7f4fa;
  --twitter-accent: #ff5a00;
  min-width: 320px;
  color: var(--alload-text, var(--twitter-ink));
  background: var(--alload-page-bg, #fff);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.twitter-theme button,
.twitter-theme input {
  font-family: inherit;
}

.twitter-theme h1,
.twitter-theme h2,
.twitter-theme h3,
.twitter-theme strong {
  font-family: inherit;
}

.twitter-hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 88px;
  color: var(--twitter-ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 90, 0, .13), transparent 29%),
    radial-gradient(circle at 89% 11%, rgba(124, 58, 237, .12), transparent 31%),
    linear-gradient(180deg, #fffaf7 0%, #fff 76%);
}

.twitter-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: .34;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(77, 58, 91, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 58, 91, .055) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.twitter-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.twitter-glow-one {
  top: -150px;
  right: -110px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(124, 58, 237, .12);
  box-shadow: inset 0 0 90px rgba(124, 58, 237, .06);
}

.twitter-glow-two {
  bottom: -170px;
  left: 24%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 90, 0, .13);
  box-shadow: inset 0 0 90px rgba(255, 90, 0, .06);
}

.twitter-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 6vw, 78px);
}

.twitter-copy {
  max-width: 620px;
}

.twitter-eyebrow {
  display: inline-flex;
  min-height: 38px;
  margin-bottom: 22px;
  padding: 5px 13px 5px 6px;
  align-items: center;
  gap: 10px;
  color: #4f4859;
  border: 1px solid #e8e0e9;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 24px rgba(32, 22, 39, .055);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.twitter-eyebrow-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: #0f1419;
  box-shadow: 0 6px 16px rgba(15, 20, 25, .2);
}

.twitter-eyebrow-mark img {
  width: 13px;
  height: 13px;
  filter: brightness(0) invert(1);
}

.twitter-copy h1 {
  max-width: 690px;
  margin: 0;
  color: var(--twitter-ink);
  font-size: clamp(47px, 5.7vw, 76px);
  font-weight: 880;
  letter-spacing: -.062em;
  line-height: .99;
}

.twitter-copy h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(95deg, #0f1419 0%, #272132 52%, #7450cf 77%, #ff5a00 108%);
  background-clip: text;
  -webkit-background-clip: text;
}

.twitter-copy > p {
  max-width: 590px;
  margin: 25px 0 24px;
  color: #6d6576;
  font-size: 17px;
  line-height: 1.72;
}

.twitter-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.twitter-highlights > span {
  display: inline-flex;
  min-height: 35px;
  padding: 8px 11px;
  align-items: center;
  gap: 7px;
  color: #554f60;
  border: 1px solid #eae4ed;
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
}

.twitter-highlights svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--twitter-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.twitter-download-card {
  position: relative;
  padding: 29px;
  overflow: hidden;
  color: #17131d;
  border: 1px solid rgba(86, 65, 99, .13);
  border-radius: 27px;
  background: rgba(255, 255, 255, .965);
  box-shadow: 0 32px 84px rgba(67, 35, 77, .16), 0 8px 24px rgba(43, 29, 50, .07);
  backdrop-filter: blur(18px);
}

.twitter-download-card::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 3px;
  content: "";
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #ff6b18, #8a50df 60%, #15131a);
  opacity: .88;
}

.twitter-card-topline {
  display: flex;
  margin-bottom: 19px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.twitter-card-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.twitter-link-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #6d42cb;
  border: 1px solid rgba(115, 73, 202, .11);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff0e8, #f0eafd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.twitter-link-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.twitter-card-heading > div {
  min-width: 0;
}

.twitter-card-heading strong,
.twitter-card-heading div span {
  display: block;
}

.twitter-card-heading strong {
  color: #1b1720;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.015em;
}

.twitter-card-heading div span {
  overflow: hidden;
  margin-top: 4px;
  color: #7b7383;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twitter-card-status {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 29px;
  padding: 6px 9px;
  align-items: center;
  gap: 6px;
  color: #287949;
  border: 1px solid #ccebd7;
  border-radius: 999px;
  background: #effaf3;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.twitter-card-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #33b765;
  box-shadow: 0 0 0 4px rgba(51, 183, 101, .12);
}

#twitter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

#twitter-form input {
  width: 100%;
  min-width: 0;
  min-height: 57px;
  padding: 0 17px;
  color: #18141d;
  border: 1px solid #dcd5e1;
  border-radius: 14px;
  outline: none;
  background: #fff;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(29, 20, 35, .025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#twitter-form input::placeholder {
  color: #99919f;
}

#twitter-form input:focus {
  border-color: #8b67da;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .11);
}

#twitter-form button {
  display: inline-flex;
  min-height: 57px;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(130deg, #ff7626 0%, #ff5800 58%, #df4300 100%);
  box-shadow: 0 13px 28px rgba(255, 90, 0, .24);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
}

#twitter-form button:hover,
#twitter-form button:focus-visible {
  box-shadow: 0 16px 34px rgba(255, 90, 0, .34);
  filter: saturate(1.08);
  transform: translateY(-1px);
}

#twitter-form button:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
}

#twitter-form button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

#twitter-form button b {
  margin-inline-start: 1px;
  font-size: 16px;
  font-weight: 500;
}

.twitter-form-note {
  display: flex;
  margin-top: 11px;
  align-items: flex-start;
  gap: 7px;
  color: #7a7381;
  font-size: 10px;
  line-height: 1.5;
}

.twitter-form-note svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  fill: none;
  stroke: #7a669c;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.twitter-alert {
  display: flex;
  margin-top: 18px;
  padding: 13px 14px;
  align-items: center;
  gap: 10px;
  color: #9e2c29;
  border: 1px solid #f2c9c6;
  border-radius: 13px;
  background: #fff3f2;
  font-size: 12px;
  font-weight: 780;
}

.twitter-alert svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.twitter-result {
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid #ebe6ef;
}

.twitter-author {
  display: inline-flex;
  padding: 5px 8px;
  color: #6940c1;
  border-radius: 8px;
  background: #f2edfc;
  font-size: 11px;
  font-weight: 850;
}

.twitter-result > h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 17px;
  color: #211b26;
  font-size: 16px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.twitter-media-grid {
  display: grid;
  gap: 16px;
}

.twitter-media-card {
  overflow: hidden;
  padding: 12px;
  border: 1px solid #e8e2eb;
  border-radius: 18px;
  background: #faf8fb;
}

.twitter-preview {
  overflow: hidden;
  border-radius: 13px;
  background: #0d0e12;
}

.twitter-preview img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.twitter-media-meta {
  display: flex;
  margin: 12px 2px;
  justify-content: space-between;
  gap: 12px;
  color: #7b7383;
  font-size: 11px;
}

.twitter-media-meta strong {
  color: #221d27;
}

.twitter-download-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, #19171d, #0f1419);
  box-shadow: 0 10px 23px rgba(15, 20, 25, .16);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease;
}

.twitter-download-button:hover,
.twitter-download-button:focus-visible {
  color: #fff;
  box-shadow: 0 14px 29px rgba(15, 20, 25, .24);
  text-decoration: none;
  transform: translateY(-1px);
}

.twitter-features,
.twitter-how {
  padding: 88px 0;
}

.twitter-features {
  color: var(--alload-text, var(--twitter-ink));
  background: var(--alload-surface, #fff);
}

.twitter-section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.twitter-section-heading > span,
.twitter-how-grid > div > span {
  color: var(--twitter-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.twitter-section-heading h2,
.twitter-how h2 {
  margin: 10px 0 0;
  color: var(--alload-text, var(--twitter-ink));
  font-size: clamp(32px, 4.1vw, 50px);
  font-weight: 870;
  letter-spacing: -.05em;
  line-height: 1.08;
}

.twitter-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.twitter-feature-grid article {
  position: relative;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--alload-border, var(--twitter-line));
  border-radius: 21px;
  background: var(--alload-surface-2, #fff);
  box-shadow: 0 11px 34px rgba(36, 25, 43, .045);
  transition: border-color .2s ease, box-shadow .24s ease, transform .24s ease;
}

.twitter-feature-grid article::after {
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 94px;
  height: 94px;
  content: "";
  border: 1px solid rgba(124, 58, 237, .1);
  border-radius: 50%;
}

.twitter-feature-grid article:hover {
  border-color: rgba(124, 58, 237, .28);
  box-shadow: 0 19px 45px rgba(53, 33, 67, .09);
  transform: translateY(-4px);
}

.twitter-feature-grid article > b {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, #19171e, #4c3d5b);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.twitter-feature-grid article:nth-child(2) > b {
  background: linear-gradient(135deg, #7544cd, #a95bdd);
}

.twitter-feature-grid article:nth-child(3) > b {
  background: linear-gradient(135deg, #ff7626, #e14a00);
}

.twitter-feature-grid h3 {
  margin: 20px 0 8px;
  color: var(--alload-text, var(--twitter-ink));
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.twitter-feature-grid p,
.twitter-how p {
  margin: 0;
  color: var(--alload-text-muted, var(--twitter-muted));
  font-size: 13px;
  line-height: 1.72;
}

.twitter-how {
  color: var(--alload-text, var(--twitter-ink));
  background:
    radial-gradient(circle at 86% 20%, rgba(124, 58, 237, .085), transparent 27%),
    var(--alload-surface-2, #f8f6fa);
}

.twitter-how-grid {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(42px, 6vw, 70px);
}

.twitter-how ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.twitter-how li {
  display: grid;
  min-width: 0;
  padding: 17px;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--alload-border, var(--twitter-line));
  border-radius: 17px;
  background: var(--alload-surface, #fff);
  box-shadow: 0 9px 26px rgba(36, 25, 43, .035);
}

.twitter-how li > b {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: #17141b;
  font-size: 13px;
}

.twitter-how strong {
  display: block;
  margin: 0 0 4px;
  color: var(--alload-text, var(--twitter-ink));
  font-size: 14px;
  font-weight: 850;
}

html[data-theme="dark"] .twitter-theme {
  --twitter-ink: #f5f3f8;
  --twitter-muted: #aaa4b0;
  --twitter-line: #303541;
}

html[data-theme="dark"] .twitter-hero {
  color: #f5f3f8;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 90, 0, .12), transparent 29%),
    radial-gradient(circle at 89% 11%, rgba(124, 58, 237, .16), transparent 31%),
    linear-gradient(180deg, #11141b 0%, #0f1117 78%);
}

html[data-theme="dark"] .twitter-grid-pattern {
  opacity: .2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
}

html[data-theme="dark"] .twitter-copy h1 {
  color: #f7f5fa;
}

html[data-theme="dark"] .twitter-copy h1 span {
  background-image: linear-gradient(95deg, #fff 0%, #d7cee0 52%, #ad89ff 78%, #ff8950 108%);
}

html[data-theme="dark"] .twitter-copy > p {
  color: #aaa4b0;
}

html[data-theme="dark"] .twitter-eyebrow,
html[data-theme="dark"] .twitter-highlights > span {
  color: #d2ccd7;
  border-color: #353944;
  background: rgba(25, 28, 36, .78);
}

html[data-theme="dark"] .twitter-download-card {
  color: #f5f3f8;
  border-color: #343945;
  background: rgba(23, 26, 33, .96);
  box-shadow: 0 34px 88px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .twitter-card-heading strong,
html[data-theme="dark"] .twitter-result > h2,
html[data-theme="dark"] .twitter-media-meta strong {
  color: #f5f3f8;
}

html[data-theme="dark"] .twitter-card-heading div span,
html[data-theme="dark"] .twitter-form-note,
html[data-theme="dark"] .twitter-media-meta {
  color: #aaa4b0;
}

html[data-theme="dark"] .twitter-link-icon {
  color: #c3a8ff;
  border-color: #41394f;
  background: linear-gradient(145deg, #342a2a, #2e2841);
}

html[data-theme="dark"] #twitter-form input,
html[data-theme="dark"] .twitter-media-card {
  color: #f5f3f8;
  border-color: #363b47;
  background: #11141a;
}

html[data-theme="dark"] #twitter-form input::placeholder {
  color: #777d89;
}

html[data-theme="dark"] .twitter-result {
  border-color: #343945;
}

html[data-theme="dark"] .twitter-author {
  color: #d1bbff;
  background: #2d2440;
}

html[data-theme="dark"] .twitter-alert {
  color: #ffb7b1;
  border-color: #653b3c;
  background: #342021;
}

html[dir="rtl"] #twitter-form button b {
  transform: rotate(180deg);
}

@media (max-width: 980px) {
  .twitter-hero {
    padding: 76px 0 72px;
  }

  .twitter-hero-grid,
  .twitter-how-grid {
    grid-template-columns: 1fr;
  }

  .twitter-hero-grid {
    gap: 42px;
  }

  .twitter-copy {
    max-width: 760px;
  }

  .twitter-download-card {
    max-width: 760px;
  }

  .twitter-how-grid {
    gap: 34px;
  }
}

@media (max-width: 720px) {
  .twitter-hero {
    padding: 58px 0 61px;
  }

  .twitter-grid-pattern {
    background-size: 24px 24px;
  }

  .twitter-copy h1 {
    font-size: clamp(41px, 12vw, 58px);
  }

  .twitter-copy > p {
    margin: 20px 0;
    font-size: 15px;
  }

  .twitter-highlights {
    display: grid;
    grid-template-columns: 1fr;
  }

  .twitter-highlights > span {
    width: max-content;
    max-width: 100%;
  }

  .twitter-download-card {
    padding: 20px;
    border-radius: 22px;
  }

  #twitter-form {
    grid-template-columns: 1fr;
  }

  #twitter-form button {
    width: 100%;
  }

  .twitter-feature-grid {
    grid-template-columns: 1fr;
  }

  .twitter-features,
  .twitter-how {
    padding: 68px 0;
  }

  .twitter-section-heading {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .twitter-eyebrow {
    margin-bottom: 18px;
  }

  .twitter-card-status {
    display: none;
  }

  .twitter-card-heading {
    gap: 11px;
  }

  .twitter-link-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .twitter-card-heading strong {
    font-size: 14px;
  }

  .twitter-feature-grid article {
    padding: 23px;
  }
}

@media (max-width: 759px) {
  .alload-app.twitter-theme .twitter-hero {
    padding: 40px 0 50px;
  }

  .alload-app.twitter-theme .twitter-hero-grid {
    gap: 31px;
  }

  .alload-app.twitter-theme .twitter-copy h1 {
    font-size: clamp(39px, 11.7vw, 54px);
  }

  .alload-app.twitter-theme .twitter-copy > p {
    font-size: 14px;
    line-height: 1.65;
  }

  .alload-app.twitter-theme .twitter-download-card {
    padding: 17px;
    border-radius: 20px;
  }

  .alload-app.twitter-theme .twitter-features,
  .alload-app.twitter-theme .twitter-how {
    padding: 58px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twitter-theme *,
  .twitter-theme *::before,
  .twitter-theme *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

