:root{
  --ink: #060a13;
  --panel: #0e1c30;
  --panel-line: #16283f;
  --river: #2f6fa8;
  --river-light: #7fd1ff;
  --confluence: #f2b134;
  --text: #eaf2fb;
  --muted: #8fa6bf;

  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

h1, h2, h3{
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

p{ color: var(--muted); margin: 0; }

:focus-visible{
  outline: 2px solid var(--river-light);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap: 8px;
  text-decoration:none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-mark{
  width: 22px;
  height: 22px;
  color: var(--river-light);
}

.site-nav{
  display:flex;
  gap: 28px;
}

.site-nav a{
  text-decoration:none;
  color: var(--muted);
  font-size: .92rem;
}

.site-nav a:hover{ color: var(--text); }

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

.nostr-btn{
  font: inherit;
  font-size: .86rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  white-space: nowrap;
}

.nostr-btn:hover{
  border-color: var(--river);
  background: rgba(47, 111, 168, .12);
}

.nostr-btn[data-state="connected"]{
  border-color: var(--confluence);
  color: var(--confluence);
}

.nostr-btn[data-state="error"]{
  border-color: #b85c5c;
  color: #e2a3a3;
}

.nav-toggle{
  display:none;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  position:absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease;
}
.nav-toggle span{ top: 15px; }
.nav-toggle span::before{ top: -7px; }
.nav-toggle span::after{ top: 7px; }

/* ---------- Hero ---------- */

.hero{
  position: relative;
  overflow: hidden;
  padding: 96px 24px 110px;
  text-align: center;
}

#confluence{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
}

.hero-content{
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.hero h1{
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.15;
}

.hero p{
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero p strong{ color: var(--text); font-weight: 600; }

.hero-actions{
  margin-top: 34px;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 12px;
}

.cta{
  display:inline-block;
  text-decoration:none;
  background: var(--confluence);
  color: #1a1204;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(242, 177, 52, .25);
}

.hero-note{
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section{
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section h2{
  font-size: 1.5rem;
  margin-bottom: 36px;
}

/* Como funciona */

.steps{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction: column;
  gap: 30px;
}

.steps li{
  display:flex;
  gap: 20px;
  align-items: flex-start;
}

.step-n{
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--river-light);
  min-width: 32px;
  line-height: 1.3;
}

.step-body h3{
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step-body em{
  font-style: normal;
  color: var(--muted);
  font-size: .85rem;
}

.step-body p{ font-size: .95rem; }

/* Recursos */

.features{
  list-style:none;
  margin:0;
  padding:0;
  border-top: 1px solid var(--panel-line);
}

.features li{
  padding: 22px 0;
  border-bottom: 1px solid var(--panel-line);
}

.features h3{
  font-size: 1rem;
  margin-bottom: 6px;
}

.features p{ font-size: .95rem; }

/* Citação */

.quote-section{
  text-align:center;
  padding-top: 20px;
  padding-bottom: 90px;
}

.quote-section blockquote{
  margin:0;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--confluence);
  padding-left: 20px;
  display:inline-block;
  text-align:left;
}

/* ---------- Footer ---------- */

.site-footer{
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 32px 50px;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid var(--panel-line);
}

.site-footer a{
  text-decoration:none;
  color: var(--muted);
}

.site-footer a:hover{ color: var(--river-light); }

/* ---------- Responsivo ---------- */

@media (max-width: 720px){
  .site-nav{
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--panel-line);
    padding: 8px 24px;
    display:none;
  }
  .site-nav.open{ display:flex; }
  .site-nav a{ padding: 12px 0; border-bottom: 1px solid var(--panel-line); }
  .site-nav a:last-child{ border-bottom:none; }

  .nav-toggle{ display:block; }

  .hero{ padding: 72px 20px 90px; }

  .steps li{ gap: 14px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
