/* ── FÁBRICA — Landing ── */

:root {
  --bg-primary:    #0a111f;
  --bg-secondary:  #0f1a2e;
  --bg-surface:    #152035;
  --bg-elevated:   #1c2840;

  --accent:        #b87333;
  --accent-light:  #e5aa70;
  --accent-dark:   #8b5a2b;
  --accent-glow:   rgba(184, 115, 51, 0.35);
  --accent-subtle: rgba(184, 115, 51, 0.12);

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --border-subtle:  rgba(184, 115, 51, 0.15);
  --border-active:  rgba(184, 115, 51, 0.4);

  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --max-width: 1120px;
  --header-h: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* ── Blueprint background ── */

.blueprint-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.blueprint-svg {
  width: 100%;
  height: 100%;
}

/* ── Wordmark (sem logo) ── */

.wordmark {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a.wordmark:focus-visible {
  outline-color: var(--accent-light);
}

.wordmark-sm {
  font-size: 0.75rem;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 17, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  transition: color 0.2s;
}

.header-cta:hover {
  color: var(--text-primary);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--accent-light);
  border-color: var(--border-active);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 0.875rem;
}

/* ── Hero ── */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 17, 31, 0.4) 0%, rgba(10, 17, 31, 0.92) 70%),
    linear-gradient(to bottom, rgba(10, 17, 31, 0.6) 0%, rgba(10, 17, 31, 0.95) 100%);
}

.hero-content {
  text-align: center;
  padding-block: 4rem 6rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.75rem;
  text-shadow: none;
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── Sections ── */

.section {
  position: relative;
  z-index: 1;
  padding-block: 6rem;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── 404 ── */

.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.error-page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  text-align: center;
}

.error-spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(184, 115, 51, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(10, 17, 31, 0) 0%, rgba(10, 17, 31, 0.85) 100%);
  pointer-events: none;
}

.error-content {
  position: relative;
  max-width: 36rem;
}

.error-code {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.error-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 55%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 32px var(--accent-glow));
  margin-bottom: 1.5rem;
}

.error-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

/* ── Manifesto ── */

.manifesto {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border-subtle);
}

.manifesto-quote {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  border: none;
  max-width: 42rem;
}

.manifesto-quote p + p {
  margin-top: 1.5rem;
}

.manifesto-quote strong {
  color: var(--text-primary);
  font-weight: 500;
}

.manifesto-closer {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1rem;
  color: var(--accent-light);
  max-width: 36rem;
  line-height: 1.7;
}

/* ── About cards ── */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-index {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.about-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.875rem;
  color: var(--text-primary);
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Principles ── */

.principles {
  background: var(--bg-primary);
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principle {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 2rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.principle:first-child {
  border-top: 1px solid var(--border-subtle);
}

.principle-marker {
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-dark), var(--accent-light));
  border-radius: 2px;
  align-self: stretch;
}

.principle-body h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  color: var(--accent-light);
}

.principle-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.65;
}

/* ── Spotlight band ── */

.spotlight {
  padding-block: 5rem;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%, rgba(184, 115, 51, 0.08) 0%, transparent 70%),
    var(--bg-secondary);
  border-block: 1px solid var(--border-subtle);
  text-align: center;
}

.spotlight-text {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 32rem;
  margin-inline: auto;
}

.spotlight-text em {
  font-style: normal;
  color: var(--accent-light);
}

/* ── Contact ── */

.contact-inner {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

.contact-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.contact-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Footer ── */

.site-footer {
  position: relative;
  z-index: 1;
  padding-block: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .principle {
    grid-template-columns: 3px 1fr;
    gap: 1.25rem;
  }

  .section {
    padding-block: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
}

@media print {
  .blueprint-bg,
  .hero-visual,
  .hero-scroll,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero-title {
    -webkit-text-fill-color: #000;
    color: #000;
    filter: none;
  }
}
