:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e4e9f2;
  --soft: #f6f8fc;
  --white: #fff;
  --blue: #3157d5;
  --blue-dark: #2446bd;
  --red: #dc3f4f;
  --purple: #7854d8;
  --teal: #0f8a83;
  --green: #23865c;
  --yellow: #b7791f;
  --shadow: 0 24px 70px rgba(28, 46, 84, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }

.topbar {
  height: 76px;
  padding: 0 max(16px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  color: white; font-weight: 900; font-size: 20px;
  background: linear-gradient(145deg, #3157d5, #7b4fde);
  box-shadow: 0 8px 20px rgba(49,87,213,.24);
}
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.availability {
  display: inline-flex; align-items: center; gap: 8px; color: var(--green);
  font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: #edf9f3;
}
.availability i { width: 8px; height: 8px; border-radius: 50%; background: #30a46c; box-shadow: 0 0 0 4px #d6f3e5; }

.hero {
  min-height: 520px;
  padding-top: 82px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 76px 0 auto; height: 520px; z-index: -1;
  background:
    radial-gradient(circle at 78% 36%, rgba(119,84,216,.12), transparent 25%),
    radial-gradient(circle at 12% 22%, rgba(49,87,213,.09), transparent 27%),
    linear-gradient(#fff, #fbfcff);
}
.eyebrow, .step { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.hero h1 { font-size: clamp(42px, 6vw, 67px); line-height: 1.02; letter-spacing: -.055em; margin: 14px 0 20px; max-width: 680px; }
.hero h1 em { display: block; color: var(--blue); font-style: normal; }
.hero-copy > p { color: var(--muted); font-size: 18px; max-width: 590px; margin: 0 0 30px; }
.primary, .secondary {
  border: 0; border-radius: 13px; font-weight: 800; transition: transform .15s, box-shadow .15s, background .15s;
}
.primary { color: white; background: var(--blue); box-shadow: 0 12px 28px rgba(49,87,213,.22); }
.primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(49,87,213,.3); }
.primary.big { min-height: 58px; padding: 0 25px; display: inline-flex; align-items: center; gap: 12px; font-size: 16px; }
.plus { width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.5); border-radius: 7px; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.hero-notes { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 12px; font-weight: 650; margin-top: 23px; }
.hero-notes span::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 900; }
.hero-card {
  width: min(100%, 390px); justify-self: end; border-radius: 22px; background: white;
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transform: rotate(1.5deg);
}
.mini-top { height: 48px; display: flex; gap: 7px; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.mini-top span { width: 8px; height: 8px; border-radius: 50%; background: #d3d9e6; }
.mini-content { padding: 48px 38px 44px; text-align: center; }
.mini-icon { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #eaf8f1; color: var(--green); font-size: 26px; font-weight: 900; }
.mini-content strong { display: block; font-size: 21px; margin-bottom: 6px; }
.mini-content small { display: block; color: var(--muted); }
.mini-code { margin-top: 25px; padding: 16px; border: 1px dashed #bcc7de; border-radius: 12px; color: var(--blue); background: #f8faff; font-weight: 900; letter-spacing: .08em; }

.tickets-section { background: var(--soft); border-top: 1px solid #eef1f7; padding: 70px 0 90px; min-height: 480px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { font-size: 31px; letter-spacing: -.035em; margin: 7px 0 4px; }
.section-heading p { color: var(--muted); margin: 0; }
.secondary { padding: 12px 18px; color: var(--blue); background: white; border: 1px solid #ccd5ea; }
.secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(41,65,110,.1); }
.toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.search { width: min(390px, 100%); position: relative; }
.search span { position: absolute; left: 15px; top: 8px; color: #8b96aa; font-size: 24px; transform: rotate(-15deg); }
.search input {
  width: 100%; height: 46px; padding: 0 15px 0 45px; border: 1px solid #dce2ed; border-radius: 12px;
  background: white; outline: 0; color: var(--ink);
}
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,.12); }
.filters { display: flex; gap: 7px; padding: 4px; background: #e9edf5; border-radius: 12px; overflow-x: auto; }
.filter { border: 0; padding: 8px 13px; border-radius: 9px; background: transparent; color: var(--muted); white-space: nowrap; font-size: 13px; font-weight: 750; }
.filter.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(36,51,82,.08); }
.filter i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-right: 4px; }
.filter.bug i { background: var(--red); }
.filter.melhoria i { background: var(--blue); }
.filter.ideia i { background: var(--purple); }
.filter.auxilio i { background: var(--teal); }

.ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.ticket-card {
  background: white; border: 1px solid #e1e6ef; border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 13px; box-shadow: 0 4px 18px rgba(35,51,82,.035);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.ticket-card:hover { transform: translateY(-2px); border-color: #ccd5e4; box-shadow: 0 10px 25px rgba(35,51,82,.08); }
.ticket-top, .ticket-meta, .ticket-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-id { font-size: 12px; font-weight: 900; color: var(--blue); letter-spacing: .045em; }
.ticket-card h3 { font-size: 16px; margin: 0; }
.ticket-card p {
  color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ticket-meta { justify-content: flex-start; flex-wrap: wrap; color: #7a8599; font-size: 12px; }
.ticket-meta b { color: #465167; }
.ticket-bottom { padding-top: 12px; border-top: 1px solid #edf0f5; color: #8a94a7; font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 900; letter-spacing: .045em; }
.badge.type-BUG { color: #b42335; background: #fff0f1; }
.badge.type-MELHORIA { color: #2347bd; background: #edf2ff; }
.badge.type-IDEIA { color: #6841c6; background: #f4efff; }
.badge.type-AUXILIO { color: #08756f; background: #e9f8f6; }
.badge.status-ABERTO { color: #526078; background: #f0f2f6; }
.badge.status-EM_ANDAMENTO { color: #946313; background: #fff7df; }
.badge.status-RESOLVIDO { color: #18714b; background: #eaf8f1; }
.attachment { color: var(--blue); text-decoration: none; font-weight: 750; }
.loading-card { height: 210px; border-radius: 16px; background: linear-gradient(90deg, #fff, #f0f3f8, #fff); background-size: 200% 100%; animation: loading 1.2s infinite; }
@keyframes loading { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 55px 20px; color: var(--muted); }
.empty span { font-size: 45px; color: #aeb8c9; }
.empty h3 { color: var(--ink); margin: 10px 0 4px; }
.empty p { margin: 0; }

footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }

.modal-back {
  position: fixed; inset: 0; z-index: 100; padding: 24px; overflow-y: auto;
  background: rgba(19,28,48,.62); backdrop-filter: blur(7px); display: grid; place-items: center;
}
.modal {
  width: min(780px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; position: relative;
  background: white; border-radius: 22px; box-shadow: 0 28px 90px rgba(11,21,44,.32);
}
.close { position: absolute; right: 18px; top: 16px; z-index: 2; border: 0; border-radius: 10px; width: 36px; height: 36px; background: #f1f3f7; color: #667085; font-size: 25px; }
.modal-head { padding: 34px 38px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 7px 0 5px; font-size: 30px; letter-spacing: -.04em; }
.modal-head p { margin: 0; color: var(--muted); }
form { padding: 26px 38px 35px; }
.form-section { margin-bottom: 26px; }
.form-section h3 { font-size: 14px; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.form-section h3 b { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: #edf2ff; color: var(--blue); font-size: 11px; }
.fields { display: grid; gap: 12px; }
.fields.three { grid-template-columns: repeat(3, 1fr); }
label { display: block; color: #485367; font-size: 12px; font-weight: 750; }
input, textarea {
  width: 100%; border: 1px solid #d9e0eb; border-radius: 11px; outline: none; color: var(--ink); background: white;
}
label > input { height: 45px; margin-top: 6px; padding: 0 13px; }
textarea { min-height: 120px; resize: vertical; margin-top: 6px; padding: 13px; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,.1); }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.type-option { position: relative; min-height: 112px; padding: 15px; border: 1.5px solid #dfe4ed; border-radius: 13px; cursor: pointer; transition: .15s; }
.type-option:hover { transform: translateY(-2px); }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent); }
.type-option.bug { color: var(--red); }
.type-option.melhoria { color: var(--blue); }
.type-option.ideia { color: var(--purple); }
.type-option.auxilio { color: var(--teal); }
.type-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, currentColor 10%, white); font-size: 16px; font-weight: 900; }
.type-option strong, .type-option small { display: block; }
.type-option strong { margin-top: 9px; font-size: 13px; color: var(--ink); text-transform: uppercase; }
.type-option small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.upload {
  margin-top: 12px; min-height: 65px; border: 1px dashed #cbd3e1; border-radius: 12px; background: #fafbfe;
  display: flex; align-items: center; gap: 12px; padding: 12px 15px; cursor: pointer;
}
.upload input { display: none; }
.upload-icon { width: 37px; height: 37px; border-radius: 9px; display: grid; place-items: center; background: #edf2ff; color: var(--blue); font-size: 18px; }
.upload strong, .upload small { display: block; }
.upload strong { color: var(--blue); font-size: 12px; }
.upload small { color: var(--muted); margin-top: 2px; font-size: 10px; }
.form-error { padding: 10px 13px; border-radius: 10px; background: #fff0f1; color: #a72d3d; font-size: 12px; font-weight: 700; margin-bottom: 13px; }
.submit { width: 100%; min-height: 53px; padding: 0 18px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.submit b { font-size: 20px; }
.privacy { text-align: center; color: #8a94a7; font-size: 10px; margin: 11px 0 0; }
.success { text-align: center; padding: 60px 35px; }
.success-icon { width: 68px; height: 68px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e7f7ef; font-size: 31px; font-weight: 900; }
.success h2 { margin: 8px 0 6px; font-size: 29px; letter-spacing: -.04em; }
.success > p { color: var(--muted); margin: 0; }
.success-code { width: min(330px, 100%); margin: 28px auto; padding: 18px; border: 1px dashed #b8c4da; border-radius: 13px; background: #f8faff; }
.success-code small, .success-code strong { display: block; }
.success-code small { color: var(--muted); font-size: 9px; letter-spacing: .12em; font-weight: 900; }
.success-code strong { color: var(--blue); margin-top: 5px; font-size: 21px; letter-spacing: .08em; }
.success .primary { min-height: 48px; padding: 0 23px; }
.text-button { display: block; margin: 14px auto 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }

@media (max-width: 760px) {
  .topbar { height: 66px; }
  .availability { font-size: 0; padding: 9px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 55px; gap: 38px; }
  .hero::before { inset: 66px 0 auto; height: 620px; }
  .hero h1 { font-size: 43px; }
  .hero-copy > p { font-size: 16px; }
  .primary.big { width: 100%; }
  .hero-notes { gap: 9px 16px; }
  .hero-card { justify-self: center; width: 90%; transform: rotate(0); }
  .mini-content { padding: 34px 25px; }
  .tickets-section { padding: 52px 0 70px; }
  .section-heading { align-items: flex-start; }
  .desktop-new { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .filters { width: 100%; }
  .filter { flex: 1; }
  .ticket-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .modal-back { padding: 0; align-items: end; }
  .modal { max-height: 94vh; border-radius: 22px 22px 0 0; }
  .modal-head { padding: 30px 22px 20px; }
  .modal-head h2 { font-size: 26px; }
  form { padding: 22px; }
  .fields.three, .type-grid { grid-template-columns: 1fr; }
  .type-option { min-height: 78px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; }
  .type-icon { grid-row: 1 / 3; }
  .type-option strong { margin: 0; align-self: end; }
  .type-option small { align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
