/* ─────────────────────────────────────────────────────────────────────────────
   INTRA · by VLL Systems — style.css
   Estética: luxury fintech institucional — dark, serifado, cirúrgico
───────────────────────────────────────────────────────────────────────────── */

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

/* ── VARIÁVEIS ──────────────────────────────────────────────────────────────── */
:root {
  --bg:          #080A0E;
  --bg2:         #0D1017;
  --bg3:         #131720;
  --surface:     #181D28;
  --surface2:    #1E2535;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);

  --white:       #F0EDE8;
  --white-dim:   rgba(240,237,232,0.55);
  --white-mute:  rgba(240,237,232,0.25);

  --gold:        #C9A84C;
  --gold-dim:    rgba(201,168,76,0.15);
  --gold-glow:   rgba(201,168,76,0.08);

  --green:       #3DAA6E;
  --green-dim:   rgba(61,170,110,0.15);
  --red:         #C05050;
  --red-dim:     rgba(192,80,80,0.15);

  --mono:        'DM Mono', monospace;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Syne', sans-serif;

  --ticker-h:    36px;
  --radius:      3px;
}

/* ── BASE ───────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ── NOISE OVERLAY ─────────────────────────────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── GRID BACKGROUND ───────────────────────────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 40%, transparent 100%);
}

/* ── TICKER BAR ────────────────────────────────────────────────────────────── */
.ticker-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ticker-h);
  background: rgba(8,10,14,0.95);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  z-index: 900;
  backdrop-filter: blur(12px);
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  gap: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.t-item {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--white-dim);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-sep { color: var(--border2); padding: 0 4px; font-size: 14px; }

.status-pulse {
  color: var(--gold);
  animation: pulse-gold 2s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── MAIN ───────────────────────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 10;
  padding-top: var(--ticker-h);
}

/* ── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Wordmark */
.wordmark {
  font-family: var(--sans);
  font-size: clamp(100px, 18vw, 200px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--white);
  position: relative;
}

.wordmark::after {
  content: '·';
  position: absolute;
  bottom: 4px;
  right: -0.15em;
  font-size: 0.35em;
  color: var(--gold);
}

/* Tagline */
.tagline {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: var(--white-dim);
  line-height: 1.5;
  max-width: 520px;
}

/* Status block */
.status-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border2);
  background: var(--surface);
  width: 100%;
  max-width: 480px;
}

.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
}
.status-line:last-child { border-bottom: none; }

.status-label {
  letter-spacing: 0.15em;
  color: var(--white-mute);
  text-transform: uppercase;
}

.status-value {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.status-value.building {
  color: var(--gold);
  position: relative;
}
.status-value.building::before {
  content: '⬡ ';
  font-size: 9px;
  animation: pulse-gold 2s ease-in-out infinite;
}

.status-value.dim { color: var(--white-mute); }

/* ── TERMINAL ───────────────────────────────────────────────────────────────── */
.terminal {
  width: 100%;
  max-width: 620px;
  background: #0A0D13;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.08),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 120px rgba(201,168,76,0.04);
  text-align: left;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0F1319;
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.t-dot.red    { background: #FF5F57; }
.t-dot.yellow { background: #FEBC2E; }
.t-dot.green  { background: #28C840; }

.t-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-mute);
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 280px;
}

.term-line {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.term-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.prompt { color: var(--gold); }
.cmd    { color: var(--white); }
.out    { color: var(--white-dim); padding-left: 2px; }
.out.info { color: var(--white); }
.out.dim  { color: rgba(240,237,232,0.35); }
.out.gold { color: var(--gold); }
.out.bull { color: var(--green); font-weight: 500; }
.out.bear { color: var(--red); font-weight: 500; }

.blink-cursor {
  color: var(--gold);
  animation: blink 1.1s step-end infinite;
  font-size: 14px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── DIVIDER ────────────────────────────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 60px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--white-mute);
  text-transform: uppercase;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── PIPELINE ───────────────────────────────────────────────────────────────── */
.pipeline-section {
  padding: 0 40px 100px;
}

.pipeline {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pipe-step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}

.pipe-step:hover {
  border-color: var(--border2);
  background: var(--surface2);
}

.pipe-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pipe-step:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.pipe-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.pipe-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pipe-desc {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.5;
}

.pipe-arrow {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--gold);
  opacity: 0.4;
  padding: 28px 0;
  align-self: center;
  display: none;
}

/* ── INSTRUMENTS ────────────────────────────────────────────────────────────── */
.instruments-section {
  padding: 0 40px 100px;
}

.inst-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border2);
}

.inst-card {
  background: var(--surface);
  padding: 40px;
  transition: background 0.3s;
}
.inst-card:hover { background: var(--surface2); }

.inst-symbol {
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.inst-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.inst-specs { display: flex; flex-direction: column; gap: 0; }

.spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
}

.spec span:first-child {
  color: var(--white-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.spec span:last-child {
  color: var(--white);
  font-weight: 500;
}

/* ── NOTIFY ─────────────────────────────────────────────────────────────────── */
.notify-section {
  padding: 60px 40px 120px;
  display: flex;
  justify-content: center;
}

.notify-inner {
  max-width: 560px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.notify-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.notify-title {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
}
.notify-title em {
  font-style: italic;
  color: var(--gold);
}

.notify-form {
  display: flex;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border2);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.notify-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.3);
}

.notify-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.05em;
}
.notify-input::placeholder { color: var(--white-mute); }

.notify-btn {
  background: var(--gold);
  border: none;
  padding: 16px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.notify-btn:hover { background: #D4B05A; }

.btn-text {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--bg);
  text-transform: uppercase;
}

.btn-arrow {
  color: var(--bg);
  font-size: 14px;
  transition: transform 0.2s;
}
.notify-btn:hover .btn-arrow { transform: translateX(3px); }

.notify-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-mute);
  letter-spacing: 0.08em;
}

/* Feedback states */
.notify-form.success { border-color: var(--green); }
.notify-form.success .notify-btn { background: var(--green); }

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--white);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--white-mute);
  letter-spacing: 0.08em;
}

.footer-domain {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--gold);
  opacity: 0.6;
}

/* ── REVEAL ANIMATIONS ─────────────────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 60px 24px; }

  .pipeline { flex-direction: column; align-items: stretch; }
  .pipe-step { max-width: 100%; }
  .pipe-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .pipe-step:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

  .inst-grid { grid-template-columns: 1fr; }

  .notify-form { flex-direction: column; }
  .notify-btn  { width: 100%; justify-content: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .section-divider { padding: 0 24px 40px; }
  .pipeline-section,
  .instruments-section,
  .notify-section { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 480px) {
  .wordmark { font-size: clamp(80px, 22vw, 120px); }
  .terminal { font-size: 11px; }
  .terminal-body { padding: 14px 16px 18px; }
}
