/* ══════════════════════════════════════════
   Eco — Design System Tricagono
   Dark orgânico, verde #4a7c59, grain, cursor
   ══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg: #0d0f0c;
  --bg-2: #121510;
  --bg-3: #181b15;
  --text: #c5c8c0;
  --text-dim: #6b6e68;
  --text-bright: #e8ebe4;
  --accent: #4a7c59;
  --accent-hover: #5a9369;
  --accent-dim: #3a5c45;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 4px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Grain ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  z-index: 10000;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s var(--ease);
}

.cursor-ring {
  position: fixed;
  z-index: 10000;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(74, 124, 89, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cursor.hover {
  width: 16px;
  height: 16px;
  background: var(--text-bright);
}

.cursor-ring.hover {
  width: 48px;
  height: 48px;
  border-color: rgba(200, 204, 192, 0.3);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-bright);
  font-weight: 600;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 2rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover { color: var(--accent-hover); }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: var(--radius);
  color: var(--accent);
}

/* ── Layout ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 8rem 0 6rem;
  border-bottom: none;
}

.pre-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--text-bright) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  cursor: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-bright);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.feature-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── How it works ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent);
}

.step h4 {
  margin-bottom: 0.25rem;
}

.step p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── Commands ── */
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.cmd {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cmd code {
  font-size: 0.8rem;
  background: transparent;
  padding: 0;
}

.cmd span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Privacy note ── */
.privacy-note p {
  margin-bottom: 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 600px;
}

/* ── Privacy page ── */
.privacy-page {
  padding-top: 4rem;
}

.privacy-page .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.privacy-page .updated {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

.privacy-page h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.privacy-page p,
.privacy-page li {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  max-width: 620px;
}

.privacy-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-page li {
  margin-bottom: 0.4rem;
}

/* ── Footer ── */
footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer nav {
  display: flex;
  gap: 1.5rem;
}

footer a {
  color: var(--text-dim);
}

footer a:hover {
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 5rem 0 3rem; }
  section { padding: 3rem 0; }
  .features { grid-template-columns: 1fr; gap: 2rem; }
  .cmd-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── Selection ── */
::selection {
  background: var(--accent-dim);
  color: var(--text-bright);
}
