/* ============================================================
   V-Cortex Landing Page — Style
   Dark theme matching the Android app's VCortexDarkColorScheme
   ============================================================ */

:root {
  --green:       #00E676;
  --green-dark:  #00BF63;
  --blue:        #2979FF;
  --amber:       #FFAB00;
  --red:         #FF1744;
  --critical:    #D50000;
  --bg:          #0A0E1A;
  --surface:     #111827;
  --surface-v:   #1C2536;
  --border:      #263046;
  --text:        #E8EAF0;
  --text-muted:  #9AA3B2;
  --radius:      12px;
  --radius-sm:   8px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  white-space: nowrap;
}

.logo-mark  { color: var(--text); }
.logo-dash  { color: var(--green); }
.logo-cortex { color: var(--green); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.lang-toggle {
  display: flex;
  background: var(--surface-v);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--green);
  color: #000;
}

/* ── Sections layout ──────────────────────────────────────── */
section { padding: 5rem 2rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 7rem 2rem 6rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 60%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.25);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 230, 118, 0.4);
}

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

/* ── How it works ─────────────────────────────────────────── */
.how-it-works { background: var(--surface); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ── Features ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Urgency ──────────────────────────────────────────────── */
.urgency { background: var(--surface); }

.urgency-intro {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.urgency-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.u-pill {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid transparent;
}

.u-pill .u-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.u-pill .u-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.u-pill .u-desc {
  font-size: 0.83rem;
}

.u-low    { background: rgba(0,230,118,0.08);  border-color: rgba(0,230,118,0.25); }
.u-low    .u-label, .u-low .u-title { color: #00E676; }
.u-low    .u-desc { color: rgba(0,230,118,0.7); }

.u-medium { background: rgba(255,171,0,0.08);  border-color: rgba(255,171,0,0.25); }
.u-medium .u-label, .u-medium .u-title { color: #FFAB00; }
.u-medium .u-desc { color: rgba(255,171,0,0.7); }

.u-high   { background: rgba(255,23,68,0.08);  border-color: rgba(255,23,68,0.25); }
.u-high   .u-label, .u-high .u-title { color: #FF1744; }
.u-high   .u-desc { color: rgba(255,23,68,0.7); }

.u-critical { background: rgba(213,0,0,0.1);  border-color: rgba(213,0,0,0.35); }
.u-critical .u-label, .u-critical .u-title { color: #FF5252; }
.u-critical .u-desc { color: rgba(255,82,82,0.7); }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 700px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.1);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--green);
  margin: 1rem 0 0.25rem;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan-soon {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 1rem 0 0.25rem;
  font-weight: 600;
}

.plan-items {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-items li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

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

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar { padding: 0 1.25rem; }
  section { padding: 4rem 1.25rem; }
  .hero   { padding: 5rem 1.25rem 4rem; }

  .nav-link { display: none; }

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

/* ── Datalog section ──────────────────────────────────────── */
.datalog { background: var(--bg); }

/* Canal tags */
.datalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2.5rem 0;
}

.dtag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-v);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.dtag-green { background: rgba(0,230,118,0.1);  border-color: rgba(0,230,118,0.3);  color: #00E676; }
.dtag-blue  { background: rgba(41,121,255,0.1); border-color: rgba(41,121,255,0.3); color: #5C9EFF; }
.dtag-amber { background: rgba(255,171,0,0.1);  border-color: rgba(255,171,0,0.3);  color: #FFAB00; }
.dtag-red   { background: rgba(255,23,68,0.1);  border-color: rgba(255,23,68,0.3);  color: #FF5252; }

/* Tabela datalog */
.datalog-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.datalog-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-v);
  border-bottom: 1px solid var(--border);
}

.datalog-filename {
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
  flex: 1;
}

.datalog-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(0,230,118,0.15);
  color: var(--green);
  border: 1px solid rgba(0,230,118,0.3);
  padding: 2px 10px;
  border-radius: 100px;
}

.datalog-scroll {
  overflow-x: auto;
}

.datalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

.datalog-table th {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-weight: 700;
  padding: 10px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.3px;
}

.datalog-table th:first-child { text-align: left; }

.datalog-table td {
  padding: 9px 14px;
  text-align: right;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.datalog-table td:first-child { color: var(--text-muted); text-align: left; }

.datalog-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.row-dim td { opacity: 0.5; }

.val-ok    { color: #00E676 !important; font-weight: 700; }
.val-warn  { color: #FFAB00 !important; font-weight: 700; }
.val-alert { color: #FF5252 !important; font-weight: 700; }

.datalog-hint {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-style: italic;
}

/* 3 benefícios */
.datalog-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.dl-benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.dl-benefit:hover { border-color: rgba(0,230,118,0.3); }

.dl-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.dl-benefit h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dl-benefit p {
  font-size: 0.88rem;
  color: var(--text-muted);
}
