/* =========================================================================
   IFMA · IA no dia a dia do estudante técnico
   Tema: verde institucional profundo + verde-lima elétrico (dark-tech)
   ========================================================================= */

:root {
  color-scheme: dark;

  /* Verdes institucionais */
  --bg: #06231a;
  --bg-2: #082a20;
  --surface: #0c352789;
  --surface-solid: #0d3829;
  --surface-2: #11402f;

  /* Tinta e texto */
  --ink: #eaf6ec;
  --ink-soft: #c4dccd;
  --muted: #a6c7b6; /* contraste >= 7:1 (AAA) sobre os fundos escuros */

  /* Accent */
  --lime: #c8f250;
  --lime-deep: #aee03a;
  --lime-glow: rgba(200, 242, 80, 0.22);

  /* Sinalização */
  --warn: #ff6b5e;
  --line: rgba(200, 242, 80, 0.14);
  --line-soft: rgba(234, 246, 236, 0.09);

  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-lime: 0 28px 70px -34px rgba(200, 242, 80, 0.45);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: min(1180px, calc(100% - 40px));
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--lime);
  color: #07271c;
}

/* Grão sutil sobre tudo ------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* =========================================================================
   Reveal
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(174, 224, 58, 0.16), transparent 55%),
    radial-gradient(90% 60% at 0% 110%, rgba(20, 90, 66, 0.6), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 80%);
}

.hero__glow {
  position: absolute;
  top: -18%;
  right: -8%;
  width: 52vw;
  height: 52vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, var(--lime-glow), transparent 62%);
  filter: blur(20px);
  animation: float 14s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-22px, 26px, 0) scale(1.06); }
}

/* Topbar ---------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: var(--wrap);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 14px;
  background: #f4f6f1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -16px var(--lime-glow);
}

.brand__logo {
  display: block;
  width: auto;
  height: 30px;
}

.topbar__links {
  display: none;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 32, 24, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar__links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.topbar__links a:hover {
  color: #07271c;
  background: var(--lime);
}

/* Hero content ---------------------------------------------------------- */
.hero__content {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin: 0 auto;
  align-self: end;
  padding: 56px 0 72px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(200, 242, 80, 0.06);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 var(--lime-glow);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 242, 80, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(200, 242, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 242, 80, 0); }
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 11.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
}

.hero__title .accent {
  color: var(--lime);
  -webkit-text-fill-color: var(--lime);
}

.caret {
  display: inline-block;
  width: 0.09em;
  height: 0.82em;
  margin-left: 0.12em;
  background: var(--lime);
  vertical-align: -0.04em;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.lead {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Botões ---------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.button--primary {
  background: var(--lime);
  color: #07271c;
  box-shadow: var(--shadow-lime);
}

.button--primary:hover {
  background: var(--lime-deep);
  transform: translateY(-2px);
}

.button--primary:hover .button__arrow {
  transform: translateX(4px);
}

.button__arrow {
  transition: transform 0.2s ease;
}

.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

/* Pipeline -------------------------------------------------------------- */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 44px;
  max-width: 760px;
}

.pipeline__step {
  position: relative;
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 700;
  font-size: 0.98rem;
}

.pipeline__step b {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lime);
}

.pipeline__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: var(--lime);
  font-weight: 800;
}

/* =========================================================================
   SECTIONS — base
   ========================================================================= */
.section {
  position: relative;
  padding: 84px 0;
}

.section__inner {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin: 0 auto;
}

.section h2 {
  max-width: 18ch;
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.section p {
  color: var(--ink-soft);
}

.section-kicker {
  margin-bottom: 18px;
}

/* Estudo de caso -------------------------------------------------------- */
.section--case {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(20, 90, 66, 0.28), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}

.two-col,
.split-band {
  display: grid;
  gap: 32px;
}

.case__copy h2 {
  max-width: 16ch;
}

.case__copy p {
  max-width: 52ch;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--lime);
  color: var(--lime);
  font-weight: 800;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.source-link:hover {
  gap: 12px;
}

.method-list {
  margin: 0;
  padding: 0;
  counter-reset: method;
  display: grid;
  gap: 12px;
  list-style: none;
}

.method-list li {
  position: relative;
  padding: 20px 22px 20px 70px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.method-list li:hover {
  border-color: var(--line);
  background: var(--surface-solid);
  transform: translateX(4px);
}

.method-list li::before {
  counter-increment: method;
  content: counter(method, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(200, 242, 80, 0.12);
  border: 1px solid var(--line);
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.method-list strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.method-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Práticas -------------------------------------------------------------- */
.section--practice {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}

.practice-grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

.practice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-solid);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
}

.practice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 0%, rgba(200, 242, 80, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.practice-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.practice-card:hover::after {
  opacity: 1;
}

.practice-card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #07271c;
}

.practice-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.practice-card:hover .practice-card__media img {
  transform: scale(1.05);
}

.card-label {
  align-self: flex-start;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(200, 242, 80, 0.08);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-card h3 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.practice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Prompts (terminal) ---------------------------------------------------- */
.section--prompts {
  background:
    radial-gradient(70% 50% at 100% 100%, rgba(20, 90, 66, 0.3), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}

.prompt-list {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-solid);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.prompt-card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.prompt-card__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.2);
}

.dots {
  display: inline-flex;
  gap: 7px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2c5044;
}

.dots i:nth-child(1) { background: #ff6b5e; }
.dots i:nth-child(2) { background: #f7c948; }
.dots i:nth-child(3) { background: var(--lime); }

.prompt-card__file {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.prompt-card__head {
  padding: 20px 22px 6px;
}

.prompt-card__head h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prompt-card__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

pre {
  margin: 18px 22px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

code {
  display: block;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: #051a13;
  color: #d6ead9;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.65;
}

.copy-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 16px 22px 22px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(200, 242, 80, 0.06);
  color: var(--lime);
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.copy-button::before {
  content: "❏";
  font-size: 0.95rem;
}

.copy-button:hover {
  background: var(--lime);
  color: #07271c;
  transform: translateY(-1px);
}

.copy-button.is-copied {
  background: var(--lime);
  color: #07271c;
}

.copy-button.is-copied::before {
  content: "✓";
}

/* Checagem -------------------------------------------------------------- */
.section--check {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}

.checklist {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 16px 18px 16px 54px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checklist li:hover {
  border-color: var(--line);
  background: var(--surface-solid);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(200, 242, 80, 0.14);
  border: 1px solid var(--line);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
}

.warning-panel {
  align-self: start;
  padding: 28px;
  border: 1px solid rgba(255, 107, 94, 0.4);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 107, 94, 0.14), transparent 60%),
    var(--surface-solid);
}

.warning-panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 107, 94, 0.16);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.warning-panel__tag::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--warn);
  color: #2a0c08;
  font-size: 0.7rem;
  font-weight: 900;
}

.warning-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Atividade ------------------------------------------------------------- */
.section--activity {
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(174, 224, 58, 0.12), transparent 60%),
    linear-gradient(180deg, #052017, #041510);
  border-top: 1px solid var(--line-soft);
}

.section__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 75%);
}

.activity-steps {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.activity-steps article {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.activity-steps article:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.activity-steps span {
  display: block;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
}

.activity-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Footer ---------------------------------------------------------------- */
.footer {
  padding: 44px 0;
  background: #041510;
  border-top: 1px solid var(--line-soft);
}

.footer__inner {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* =========================================================================
   FOCUS / ACESSIBILIDADE
   ========================================================================= */
a:focus-visible,
.button:focus-visible,
.copy-button:focus-visible,
.topbar__links a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (min-width: 640px) {
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  body {
    font-size: 18px;
  }

  .topbar__links {
    display: inline-flex;
  }

  .section {
    padding: 116px 0;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 56px;
    align-items: start;
  }

  .practice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prompt-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-band {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.6fr);
    gap: 40px;
    align-items: start;
  }

  .activity-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .hero__content {
    padding-bottom: 96px;
  }
}
