:root {
  /* Tokens alinhados ao operacao.superappingoo.com.br */
  --bg: #050607;
  --bg2: #0c0e11;
  --card: #11141a;
  --card2: #161a22;
  --border: #22262e;
  --border-hot: #ff6b00;
  --text: #e9edf3;
  --muted: #7d8694;
  --orange: #ff6b00;
  --orange2: #ffa15a;

  --mono: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
  --display: 'Inter', -apple-system, system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans SC', -apple-system, system-ui, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang="zh"] body { font-family: 'Noto Sans SC', 'Inter', system-ui, sans-serif; }
body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--orange); text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
main { flex: 1; padding: 24px 0 40px; }

/* ============== HEADER ============== */
.site-header {
  background: rgba(5, 6, 7, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--card);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.lang-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.lang-btn[aria-pressed="true"] {
  background: var(--orange);
  color: #0a0a0a;
  font-weight: 700;
}
.lang-btn .flag { font-size: 13px; line-height: 1; }

/* ============== HERO ============== */
.hero-wrap { padding: 20px 0 8px; }
.hero {
  position: relative;
  padding: 80px 24px 72px;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 107, 0, .22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(59, 130, 246, .08), transparent 60%),
    linear-gradient(180deg, var(--card) 0%, var(--bg2) 100%);
  border: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, .12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, .08), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--orange);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 0, .12);
  border: 1px solid rgba(255, 107, 0, .3);
  margin-bottom: 22px;
  font-family: inherit;
}
.eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 107, 0, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 0, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 52px);
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0 0 16px;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 50%, var(--orange) 110%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero h1 .hl {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
}
.hero p b { color: var(--text); font-weight: 600; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .18s ease;
}
.btn-primary {
  background: var(--orange);
  color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(255, 107, 0, .25);
}
.btn-primary:hover {
  background: var(--orange2);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 107, 0, .35);
  color: #0a0a0a;
}
.btn-primary .arrow { transition: transform .2s; }
.btn-primary:hover .arrow { transform: translateY(2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 107, 0, .06);
}

/* ============== GRID ============== */
.grid-section { padding: 32px 0 40px; }
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  --c-border: var(--border);
  background: var(--card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-align: left;
  font-family: inherit;
  color: inherit;
  padding: 0;
  width: 100%;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, .5);
  box-shadow: 0 14px 40px rgba(255, 107, 0, .12);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg2);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card-thumb svg.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform .35s ease;
}
.card:hover .card-thumb svg.bg { transform: scale(1.04); }
.card-thumb .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.card-thumb .play span {
  width: 54px;
  height: 54px;
  background: var(--orange);
  color: #0a0a0a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(255, 107, 0, .35);
  transition: transform .2s ease, background .15s;
}
.card:hover .play span {
  transform: scale(1.08);
  background: var(--orange2);
}
.card-thumb .play span::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 13px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.card-thumb .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-thumb .card-index {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 8px;
  background: rgba(5, 6, 7, .6);
  border: 1px solid var(--border);
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.card-thumb .card-index em {
  font-style: normal;
  color: var(--orange);
  margin-left: 1px;
}
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -.01em;
  color: var(--text);
}
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.card-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.card-foot .arrow { display: inline-block; transition: transform .2s ease; }
.card:hover .card-foot .arrow { transform: translateX(4px); }

/* ============== MODAL ============== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 7, .82);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: pop .25s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop {
  from { transform: scale(.94) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-title {
  color: var(--text);
  margin: 0;
  padding: 18px 56px 18px 22px;
  font-size: 15px;
  font-weight: 600;
  background: var(--card2);
  border-bottom: 1px solid var(--border);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: all .15s;
}
.modal-close:hover { background: var(--orange); border-color: var(--orange); color: #0a0a0a; }
#modalVideo {
  width: 100%;
  max-height: 70vh;
  background: #000;
  display: block;
}
.modal-hint {
  color: var(--muted);
  margin: 0;
  padding: 12px 22px 16px;
  font-size: 12px;
  background: var(--card2);
}

/* ============== SUPPORT FAB ============== */
.support-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, .35),
    0 2px 6px rgba(0, 0, 0, .2);
  transition: transform .2s ease, box-shadow .2s ease, background .15s ease;
}
.support-fab:hover {
  transform: translateY(-2px);
  background: #1FB855;
  box-shadow:
    0 12px 32px rgba(37, 211, 102, .5),
    0 4px 10px rgba(0, 0, 0, .25);
  color: #fff;
}
.support-icon { width: 24px; height: 24px; flex-shrink: 0; }
.support-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; color: #fff; }
.support-label {
  font-size: 10px;
  font-weight: 600;
  opacity: .85;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.support-number {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--mono);
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--bg);
  color: var(--muted);
  padding: 28px 0;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--orange); font-weight: 600; }
.site-footer a:hover { color: var(--orange2); }

@media (max-width: 640px) {
  .hero { padding: 56px 20px 48px; border-radius: 16px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 14px; }
  .grid-section { padding: 20px 0 32px; }
  .header-inner { padding: 12px 16px; }
  .brand-logo { height: 26px; }
  .brand-sub { display: none; }
  .lang-btn { padding: 6px 9px; font-size: 11px; }
  .lang-btn .flag { display: none; }
  .support-fab { right: 16px; bottom: 16px; padding: 12px; gap: 0; }
  .support-fab .support-text { display: none; }
  .support-icon { width: 28px; height: 28px; }
}
