/* Landing page styles (index.html). Depends on tokens.css for CSS custom
   properties. The landing page is hand-rolled CSS — it does NOT use Tailwind,
   so none of these classes overlap with the utility-class vocabulary used in
   dashboard.html. */

body {
  background: var(--surface);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Background atmosphere --- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(88,166,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,166,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-glow {
  position: fixed; top: -30vh; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 70vh; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(116,172,223,0.08) 0%, transparent 70%);
}

/* --- Typography --- */
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* --- Nav --- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,17,23,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 1rem 2rem;
}
nav .brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text); }
nav .brand img { width: 36px; height: 36px; border-radius: 8px; }
nav .brand span { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 1.1rem; letter-spacing: 0.05em; }
nav .nav-right { display: flex; align-items: center; gap: 0.75rem; }
nav .cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  background: var(--accent); color: var(--surface); text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
nav .cta:hover { background: #79bbff; transform: translateY(-1px); }
.lang-toggle {
  padding: 0.4rem 0.75rem; border-radius: 6px; font-size: 0.7rem; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--muted); }

/* --- Hero --- */
.hero {
  padding: 8rem 0 6rem; text-align: center;
}
.hero-logo {
  width: 100px; height: 100px; border-radius: 20px;
  margin: 0 auto 2.5rem;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(116,172,223,0.25));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1; margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic; color: var(--celeste);
}
.hero .subtitle {
  font-size: 1.15rem; color: var(--muted); max-width: 540px;
  margin: 0 auto 3rem; line-height: 1.7;
}
.hero .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem; border-radius: 8px; font-size: 1rem; font-weight: 500;
  background: var(--accent); color: var(--surface); text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(88,166,255,0.15);
}
.btn-primary:hover { background: #79bbff; transform: translateY(-2px); box-shadow: 0 4px 30px rgba(88,166,255,0.25); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem; border-radius: 8px; font-size: 1rem; font-weight: 500;
  background: transparent; color: var(--muted); text-decoration: none;
  border: 1px solid var(--border); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--text); border-color: var(--muted); }

/* --- Ticker strip --- */
.ticker-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1rem 0; overflow: hidden; position: relative; z-index: 1;
  background: rgba(22,27,34,0.5);
}
.ticker-track {
  display: flex; gap: 3rem; white-space: nowrap;
  animation: scroll-left 30s linear infinite;
}
.ticker-track span { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--muted); }
.ticker-track .up { color: var(--gain); }
.ticker-track .down { color: var(--loss); }
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Features --- */
.features { padding: 6rem 0; }
.features h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.features .lead { text-align: center; color: var(--muted); max-width: 500px; margin: 0 auto 4rem; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.feature-card:hover { border-color: var(--celeste); transform: translateY(-2px); }
.feature-card .icon {
  font-size: 1.5rem; margin-bottom: 1rem; display: block;
  width: 48px; height: 48px; line-height: 48px; text-align: center;
  border-radius: 10px; background: rgba(88,166,255,0.08);
}
.feature-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* --- Currency section --- */
.currency-section { padding: 6rem 0; }
.currency-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.currency-section h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.currency-section .desc { color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }
.currency-layout > div:first-child { padding: 0 1.5rem; }
.rate-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem; font-family: 'JetBrains Mono', monospace;
}
.rate-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(48,54,61,0.5);
}
.rate-row:last-child { border-bottom: none; }
.rate-label { font-size: 0.8rem; color: var(--muted); }
.rate-value { font-size: 1.1rem; font-weight: 500; }
.rate-sub { font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; }
.rate-card .header {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--celeste); margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* --- Workflow --- */
.workflow { padding: 6rem 0; }
.workflow h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.workflow .lead { text-align: center; color: var(--muted); max-width: 500px; margin: 0 auto 4rem; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 32px; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.step {
  text-align: center; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 500;
  color: var(--celeste); margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }

/* --- Asset types --- */
.assets { padding: 6rem 0; border-top: 1px solid var(--border); }
.assets h2 { font-size: 2.5rem; text-align: center; margin-bottom: 4rem; }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.asset-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 2rem;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  transition: border-color 0.3s;
}
.asset-card:hover { border-color: var(--accent); }
.asset-tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem; border-radius: 4px; margin-bottom: 1rem;
}
.asset-tag.arg { background: linear-gradient(180deg, #74ACDF 30%, #fff 30%, #fff 70%, #74ACDF 70%); color: #1a4a6e; font-weight: 600; }
.asset-tag.cedear { background: linear-gradient(135deg, rgba(116,172,223,0.3), rgba(139,92,246,0.3)); color: #c4b5fd; }
.asset-tag.us { background: #002868; color: #fff; font-weight: 600; border-left: 3px solid #fff; border-right: 3px solid #bf0a30; }
.asset-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.asset-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border); padding: 3rem 0;
  text-align: center; color: var(--muted); font-size: 0.8rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- Entrance animations --- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .feature-grid, .asset-grid, .steps { grid-template-columns: 1fr; }
  .currency-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 5rem 0 4rem; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  nav .inner { padding: 0.75rem 1rem; }
  nav .brand img { width: 30px; height: 30px; }
  nav .brand span { font-size: 0.95rem; }
  nav .nav-right { gap: 0.5rem; }
  nav .cta { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
  .lang-toggle { padding: 0.35rem 0.55rem; font-size: 0.65rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-logo { width: 72px; height: 72px; margin-bottom: 1.75rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero .subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .btn-primary, .btn-secondary { justify-content: center; padding: 0.75rem 1.25rem; }
  .features, .currency-section, .workflow, .assets { padding: 3.5rem 0; }
  .features h2, .currency-section h2, .workflow h2, .assets h2 { font-size: 1.9rem; }
  .feature-card, .asset-card { padding: 1.5rem; }
  .currency-layout > div:first-child { padding: 0; }
  .rate-card { padding: 1.5rem; }
  .rate-value { font-size: 1rem; }
  .ticker-track { gap: 2rem; }
  footer { padding: 2rem 0; }
}
