/* Universe Exchange — Web Landing Page Styles */
/* Uses same CSS variables as miniapp.css (both loaded) */

/* ─── Web wrapper (only shown on web, hidden on miniapp) ─── */
.ue-web-block { display: none; flex-direction: column; min-height: 100vh; }
body.web    .ue-web-block { display: flex; }
body.miniapp .ue-ma-block  { display: flex !important; }

/* ─── Navigation ─── */
.ue-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,8,15,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ue-border);
  padding: 12px 16px;
}
.ue-nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1100px; margin: 0 auto;
}
.ue-nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.ue-nav-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--ue-accent), var(--ue-accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #060810;
  font-family: 'Syne', sans-serif;
}
.ue-nav-name {
  font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--ue-text);
}
.ue-nav-right { display: flex; align-items: center; gap: 8px; }
.ue-nav-rate {
  font-size: 12px; color: var(--ue-muted);
  background: var(--ue-surface); border: 1px solid var(--ue-border);
  border-radius: 6px; padding: 6px 10px;
  display: none;
}
.ue-nav-rate strong { color: var(--ue-accent); }
@media (min-width: 540px) { .ue-nav-rate { display: block; } }
.ue-lang-bar { display: flex; gap: 4px; }
.ue-lang-bar a {
  font-size: 11px; font-weight: 600; padding: 5px 10px;
  border-radius: 20px; border: 1px solid var(--ue-border);
  color: var(--ue-muted); text-decoration: none; transition: all .15s;
}
.ue-lang-bar a.active { color: var(--ue-accent); border-color: rgba(56,189,248,.4); }

/* ─── Section inner wrapper ─── */
.ue-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ue-inner { padding: 0 24px; } }

/* ─── Hero ─── */
.ue-hero {
  padding: 56px 0 44px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56,189,248,.07) 0%, transparent 70%);
}
.ue-hero-inner {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  padding: 0 16px;
}
.ue-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; color: var(--ue-accent);
  background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.18);
  border-radius: 50px; padding: 5px 12px; margin-bottom: 22px;
  letter-spacing: .06em; text-transform: uppercase;
}
.ue-hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ue-accent); animation: uePulse 1.8s ease-in-out infinite;
}
.ue-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: 36px; font-weight: 800; line-height: 1.12;
  letter-spacing: -.03em; margin-bottom: 14px;
  background: linear-gradient(135deg, #E2E8F0 0%, var(--ue-accent) 55%, var(--ue-accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (min-width: 768px) { .ue-hero-title { font-size: 52px; } }
.ue-hero-sub {
  font-size: 16px; color: var(--ue-muted); line-height: 1.65;
  max-width: 540px; margin: 0 auto 32px;
}
@media (min-width: 768px) { .ue-hero-sub { font-size: 17px; } }

/* ─── Hero rates (large cards) ─── */
.ue-hero-rates {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%; max-width: 460px; margin-bottom: 28px;
}
.ue-hero-rate-card {
  background: var(--ue-card); border: 1px solid var(--ue-border);
  border-radius: var(--radius); padding: 18px 14px;
  text-decoration: none; text-align: left; display: block;
  transition: border-color .15s, box-shadow .15s;
}
.ue-hero-rate-card:hover { border-color: rgba(56,189,248,.35); box-shadow: 0 0 24px var(--ue-glow); }
.ue-hero-rate-card.buy  { border-top: 2px solid var(--ue-buy); }
.ue-hero-rate-card.sell { border-top: 2px solid var(--ue-sell); }
.ue-hero-rate-lbl { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ue-muted); margin-bottom: 6px; }
.ue-hero-rate-val {
  font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 800; line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.ue-hero-rate-card.buy  .ue-hero-rate-val { color: var(--ue-buy); }
.ue-hero-rate-card.sell .ue-hero-rate-val { color: var(--ue-sell); }
.ue-hero-rate-sub { font-size: 11px; color: var(--ue-muted); }

/* ─── Hero CTA ─── */
.ue-hero-ctas { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }
.ue-hero-ctas .ue-btn { font-size: 16px; padding: 16px 32px; border-radius: 14px; box-shadow: 0 0 32px rgba(56,189,248,.35); }
.ue-hero-ctas .ue-btn-outline { border-radius: 14px; font-size: 14px; padding: 13px; }
@media (min-width: 480px) {
  .ue-hero-ctas { flex-direction: row; justify-content: center; max-width: 480px; }
  .ue-hero-ctas .ue-btn { flex: 1; }
  .ue-hero-ctas .ue-btn-outline { flex: 1; }
}

/* ─── Stats bar ─── */
.ue-stats {
  background: var(--ue-surface); border-top: 1px solid var(--ue-border); border-bottom: 1px solid var(--ue-border);
  padding: 20px 0;
}
.ue-stats-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; max-width: 1100px; margin: 0 auto;
}
@media (min-width: 600px) { .ue-stats-inner { grid-template-columns: repeat(4,1fr); } }
.ue-stat { padding: 16px; text-align: center; }
.ue-stat-num {
  display: block; font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--ue-accent); margin-bottom: 3px;
}
.ue-stat-label { font-size: 12px; color: var(--ue-muted); }

/* ─── Rates section ─── */
.ue-rates-section { padding: 48px 0; }
.ue-section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ue-accent);
  text-align: center; margin-bottom: 8px;
}
.ue-section-title {
  font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800;
  color: var(--ue-text); letter-spacing: -.02em; text-align: center;
  margin-bottom: 10px;
}
@media (min-width: 768px) { .ue-section-title { font-size: 34px; } }
.ue-section-sub { font-size: 14px; color: var(--ue-muted); text-align: center; margin-bottom: 32px; }

.ue-rates-table {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 640px) { .ue-rates-table { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px) { .ue-rates-table { grid-template-columns: repeat(4,1fr); } }
.ue-rate-row-card {
  background: var(--ue-card); border: 1px solid var(--ue-border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.ue-rate-row-card:hover { border-color: rgba(56,189,248,.28); box-shadow: 0 0 16px var(--ue-glow); }
.ue-rate-row-pair { font-size: 12px; font-weight: 700; color: var(--ue-muted); letter-spacing: .04em; }
.ue-rate-row-val {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800;
  color: var(--ue-text);
}
.ue-rate-row-dir { font-size: 11px; color: var(--ue-muted); }

/* ─── How it works ─── */
.ue-how { padding: 48px 0; background: var(--ue-surface); }
.ue-steps { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .ue-steps { grid-template-columns: repeat(3,1fr); } }
.ue-step {
  background: var(--ue-card); border: 1px solid var(--ue-border);
  border-radius: var(--radius); padding: 22px 18px;
}
.ue-step-num {
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800;
  color: var(--ue-accent); margin-bottom: 10px; opacity: .6;
}
.ue-step-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--ue-text); margin-bottom: 6px; }
.ue-step-text { font-size: 13px; color: var(--ue-muted); line-height: 1.6; }

/* ─── Features ─── */
.ue-features { padding: 48px 0; }
.ue-features-grid { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .ue-features-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .ue-features-grid { grid-template-columns: repeat(4,1fr); } }
.ue-feat {
  background: var(--ue-card); border: 1px solid var(--ue-border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .15s, box-shadow .15s;
}
.ue-feat:hover { border-color: rgba(56,189,248,.22); box-shadow: 0 0 14px var(--ue-glow); }
.ue-feat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.18);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--ue-accent);
}
.ue-feat-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--ue-text); margin-bottom: 6px; }
.ue-feat-text { font-size: 13px; color: var(--ue-muted); line-height: 1.6; }

/* ─── CTA section ─── */
.ue-cta {
  padding: 56px 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(56,189,248,.06) 0%, transparent 70%);
}
.ue-cta-inner { text-align: center; padding: 0 16px; }
.ue-cta-title {
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800;
  color: var(--ue-text); margin-bottom: 12px; letter-spacing: -.02em;
}
@media (min-width: 768px) { .ue-cta-title { font-size: 38px; } }
.ue-cta-sub { font-size: 15px; color: var(--ue-muted); margin-bottom: 28px; }
.ue-cta-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ue-cta-btns .ue-btn { font-size: 16px; padding: 16px 40px; border-radius: 14px; }
@media (min-width: 480px) { .ue-cta-btns { flex-direction: row; justify-content: center; } }

/* ─── Footer ─── */
.ue-footer {
  border-top: 1px solid var(--ue-border); padding: 20px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ue-muted);
}
.ue-footer a { color: var(--ue-muted); text-decoration: none; }
.ue-footer a:hover { color: var(--ue-accent); }

/* ─── Mobile sticky bar ─── */
.ue-mob-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(6,8,15,.95); border-top: 1px solid var(--ue-border);
  backdrop-filter: blur(12px); display: flex; gap: 8px;
}
@media (min-width: 768px) { .ue-mob-bar { display: none; } }
.ue-mob-bar .ue-btn { flex: 1; font-size: 14px; padding: 12px; border-radius: 10px; }
.ue-mob-bar .ue-btn-outline { flex: 1; font-size: 13px; padding: 11px; border-radius: 10px; }

/* ─── Apply page (web mode) ─── */
.ue-apply-page { max-width: 560px; margin: 40px auto; padding: 0 16px 80px; }
.ue-apply-page .ue-apply-title { font-size: 24px; margin-bottom: 24px; }
