/* ============================================================
   NORA AGENT — Landing Page Styles
   ============================================================ */

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

:root {
  --bg:        #060912;
  --bg-2:      #0b0f1e;
  --bg-card:   #0d1220;
  --border:    rgba(139, 92, 246, 0.15);
  --border-h:  rgba(139, 92, 246, 0.4);
  --purple:    #8b5cf6;
  --purple-l:  #a78bfa;
  --cyan:      #22d3ee;
  --cyan-l:    #67e8f9;
  --white:     #f1f5f9;
  --muted:     #64748b;
  --muted-l:   #94a3b8;
  --font:      'Inter', sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(6, 9, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav.scrolled {
  background: rgba(6, 9, 18, 0.95);
  border-bottom-color: var(--border-h);
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
  transition: filter 0.3s;
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.8));
}

.logo-text { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted-l);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-github {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem !important;
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--purple-l) !important;
  transition: all 0.2s !important;
}

.nav-github:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: var(--purple) !important;
  color: var(--white) !important;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

.glow-1 {
  width: 600px; height: 600px;
  background: var(--purple);
  top: -200px; left: -200px;
}

.glow-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  top: 100px; right: -100px;
  animation-delay: -3s;
}

.glow-3 {
  width: 300px; height: 300px;
  background: var(--purple);
  bottom: -100px; left: 40%;
  animation-delay: -1.5s;
}

@keyframes glow-pulse {
  from { opacity: 0.2; transform: scale(1); }
  to   { opacity: 0.35; transform: scale(1.1); }
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--purple-l);
  font-weight: 500;
  margin-bottom: 1.5rem;
  width: fit-content;
  animation: fade-up 0.6s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: badge-blink 2s ease-in-out infinite;
}

@keyframes badge-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s 0.1s ease both;
}

.title-line { display: block; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-l), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted-l);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fade-up 0.6s 0.2s ease both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-up 0.6s 0.3s ease both;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.2s;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--muted-l);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  color: var(--white);
  border-color: var(--border-h);
  background: rgba(139, 92, 246, 0.05);
}

/* ── TERMINAL ────────────────────────────────────────────── */
.hero-terminal {
  background: #0a0e1a;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(139, 92, 246, 0.1);
  animation: fade-left 0.7s 0.2s ease both;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
  min-height: 240px;
}

.terminal-line { display: flex; gap: 0.75rem; }

.prompt { color: var(--purple-l); }
.cmd    { color: var(--white); }

.output     { color: var(--muted-l); padding-left: 0.5rem; }
.output.dim { color: var(--muted); }

.nora-output { color: var(--cyan); min-height: 2rem; }

.cursor {
  display: inline-block;
  color: var(--purple-l);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* ── FEATURES ────────────────────────────────────────────── */
.features {
  padding: 100px 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(139,92,246,0.05);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--muted-l);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tags span {
  padding: 0.25rem 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--purple-l);
  font-weight: 500;
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-it-works {
  padding: 100px 2rem;
}

.steps {
  max-width: 700px;
}

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

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--purple-l);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.step-content p {
  color: var(--muted-l);
  margin-bottom: 1rem;
}

.step-example {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--cyan-l);
  font-style: italic;
}

.step-code {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--purple-l);
  font-family: var(--mono);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--muted);
  padding: 0.75rem 0 0.75rem 1.5rem;
}

/* ── TOOLS ───────────────────────────────────────────────── */
.tools-section {
  padding: 100px 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.25s;
}

.tool-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.tool-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.tool-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tool-dot.purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.tool-dot.cyan   { background: var(--cyan);   box-shadow: 0 0 8px var(--cyan); }

.tool-card p {
  font-size: 0.88rem;
  color: var(--muted-l);
  line-height: 1.65;
}

/* ── TECH ────────────────────────────────────────────────── */
.tech-section { padding: 100px 2rem; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s;
}

.tech-item:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}

.tech-logo { font-size: 2rem; margin-bottom: 0.75rem; }

.tech-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.tech-desc { font-size: 0.8rem; color: var(--muted); }

/* ── CTA ─────────────────────────────────────────────────── */
.cta-section {
  padding: 100px 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.glow-cta {
  width: 500px; height: 500px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  animation: glow-pulse 5s ease-in-out infinite alternate;
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  position: relative;
}

.cta-card p {
  font-size: 1.1rem;
  color: var(--muted-l);
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.cta-install code {
  display: block;
  padding: 0.75rem 1.5rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan-l);
  cursor: pointer;
  transition: border-color 0.2s;
}

.cta-install code:hover { border-color: var(--cyan); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 2.5rem;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

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

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

.footer-links a:hover { color: var(--white); }

.footer-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
}

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

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-left {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── BANKR SECTION ───────────────────────────────────────── */
.bankr-section {
  padding: 100px 2rem;
}

.bankr-compare {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.bankr-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s;
}

.bankr-clanker { border-color: rgba(139,92,246,0.3); }
.bankr-bankr   { border-color: rgba(251,146,60,0.3); }

.bankr-card:hover { transform: translateY(-4px); }

.bankr-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-l);
  margin-bottom: 1rem;
}

.bankr-badge-orange {
  background: rgba(251,146,60,0.15);
  border-color: rgba(251,146,60,0.3);
  color: #fb923c;
}

.bankr-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.bankr-card p {
  color: var(--muted-l);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.bankr-card code {
  background: rgba(139,92,246,0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--purple-l);
}

.bankr-bankr code {
  background: rgba(251,146,60,0.1);
  color: #fb923c;
}

.bankr-cmd {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--purple-l);
  margin-bottom: 1.25rem;
}

.bankr-cmd-orange {
  background: rgba(251,146,60,0.08);
  border-color: rgba(251,146,60,0.2);
  color: #fb923c;
}

.bankr-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bankr-list li {
  font-size: 0.88rem;
  color: var(--muted-l);
}

.bankr-vs {
  font-size: 1rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ── CMD GRID ────────────────────────────────────────────── */
.cmd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.cmd-item code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan-l);
}

.cmd-tag {
  padding: 0.2rem 0.6rem;
  background: rgba(251,146,60,0.15);
  border: 1px solid rgba(251,146,60,0.3);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fb923c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── TOOLS GROUP LABEL ───────────────────────────────────── */
.tools-group-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-l);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.tool-dot.orange {
  background: #fb923c;
  box-shadow: 0 0 8px #fb923c;
}

.tool-card-bankr {
  border-color: rgba(251,146,60,0.2) !important;
}

.tool-card-bankr:hover {
  border-color: rgba(251,146,60,0.5) !important;
}

.tool-card-bankr code {
  background: rgba(251,146,60,0.1);
  color: #fb923c;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner        { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid     { grid-template-columns: 1fr; }
  .hero-title        { font-size: 2.8rem; }
  .nav-links a:not(.nav-github) { display: none; }
  .bankr-compare     { flex-direction: column; }
  .bankr-vs          { transform: rotate(90deg); }
  .cmd-grid          { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero              { padding: 100px 1.5rem 60px; }
  .section-inner     { padding: 0 1.5rem; }
  .features, .how-it-works, .tools-section,
  .tech-section, .cta-section { padding: 70px 1.5rem; }
  .cta-card          { padding: 3rem 1.5rem; }
  .footer-inner      { flex-direction: column; text-align: center; }
}
