:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #101830;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.3);
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.7);
  --shadow-card: 0 18px 35px rgba(15, 23, 42, 0.75);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
}

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

button {
  font: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 7vw;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.4),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #f9fafb;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.6);
  background: radial-gradient(circle at top left, #4f46e5, #1d4ed8);
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 16px 35px rgba(30, 64, 175, 0.65);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

.nav-user {
  margin-right: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

main {
  padding: 2.5rem 7vw 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding: 3.5rem 0 3rem;
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 3.4vw, 3.1rem);
  letter-spacing: 0.03em;
}

.hero-text p {
  margin: 0 0 1.8rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(120deg, #4f46e5, #06b6d4);
  color: white;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.8);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: rgba(129, 140, 248, 0.85);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.8);
  background: rgba(15, 23, 42, 0.9);
}

.hero-card {
  background: radial-gradient(circle at top left, #0b1120, #020617);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-header {
  padding: 0.6rem 0.9rem;
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.95),
    rgba(30, 64, 175, 0.45)
  );
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.dot.red {
  background: #f97373;
}

.dot.yellow {
  background: #facc15;
}

.dot.green {
  background: #4ade80;
}

.card-body {
  padding: 1.4rem 1.6rem 1.5rem;
}

.stat {
  margin-bottom: 1.1rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0.2rem 0;
  background: linear-gradient(120deg, #f97316, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.card-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-left: 2px solid rgba(148, 163, 184, 0.6);
  padding-left: 0.7rem;
}

.btc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.1rem;
  margin: 0.6rem 0 0.8rem;
}

.btc-item {
  font-size: 0.8rem;
  color: var(--muted);
}

.btc-label {
  margin-bottom: 0.2rem;
}

.btc-value {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.btc-sentiment {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(75, 85, 99, 0.7);
}

.btc-sentiment-main {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.btc-sentiment-score {
  font-size: 1.3rem;
  font-weight: 600;
}

.btc-sentiment-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.btc-sentiment-sub {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.section {
  margin-top: 3.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, #020617, #020617);
  border-radius: 24px;
  padding: 2.2rem 2.4rem 2.4rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
}

.steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: #e5e7eb;
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.steps-numbered li {
  align-items: flex-start;
}

.steps-numbered li span {
  background: rgba(79, 70, 229, 0.5);
}

.tip {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.footer {
  padding: 1.5rem 7vw 2rem;
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  background: radial-gradient(circle at top, #020617, #020617);
}

.flash-container {
  margin-bottom: 1.2rem;
}

.flash {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.flash-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
}

.flash-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

.auth-section {
  max-width: 420px;
  margin-inline: auto;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.auth-field span {
  color: var(--muted);
}

.auth-field input {
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.6rem;
}

.auth-switch {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-switch a {
  color: #a5b4fc;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  main {
    padding-inline: 5vw;
  }

  .nav {
    padding-inline: 5vw;
  }

  .section-alt {
    padding-inline: 1.6rem;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

