/* ============================================
   ATENA CRYPTO — INDEX (Homepage)
   Hero, Features, Tiers sections
   ============================================ */

/* ── NEW HOME HERO — chrome split layout ── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 48px 120px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 80vh;
  position: relative;
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 35% 50%, rgba(0,197,102,0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 65% 50%, rgba(229,67,96,0.08), transparent 60%);
  z-index: -2;
  pointer-events: none;
}
.home-hero-chrome {
  position: relative;
  aspect-ratio: 1;
  max-width: 540px;
  justify-self: center;
}
.chrome-visual {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 72%);
          mask-image: radial-gradient(circle at center, #000 40%, transparent 72%);
  mix-blend-mode: lighten;
  filter: contrast(1.25) saturate(1.2) brightness(1.05)
          drop-shadow(0 40px 80px rgba(0,197,102,0.25))
          drop-shadow(0 0 120px rgba(229,67,96,0.15));
  animation: float-slow 8s ease-in-out infinite;
}
.chrome-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(0,197,102,0.15), transparent 60%);
  z-index: -1; filter: blur(40px);
  animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
.home-hero-chrome::before {
  content: '';
  position: absolute; inset: -30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(0,197,102,0.18) 0%,
    rgba(229,67,96,0.08) 40%,
    transparent 70%);
  filter: blur(60px);
  animation: orb-glow-shift 8s ease-in-out infinite;
  z-index: -2;
}
@keyframes orb-glow-shift {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  33%       { opacity: 1;   transform: scale(1.08); }
  66%       { opacity: 0.8; transform: scale(0.95); }
}

.home-hero-content { max-width: 560px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: var(--bg-surface-2); border: 1px solid var(--border-default);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero-h1 {
  font-size: clamp(40px, 5vw, 64px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  line-height: 1.6; max-width: 500px; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-trust {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-tertiary);
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr; gap: 40px;
    padding: 48px 24px 80px; text-align: center;
  }
  .home-hero-chrome { max-width: 300px; }
  .hero-eyebrow, .hero-ctas { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
}

/* ── WHY ATENA SECTION ── */
.why-section {
  padding: 80px 48px;
  max-width: 1400px;
  margin: 0 auto;
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  justify-self: center;
}
.why-chrome-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 72%);
          mask-image: radial-gradient(circle at center, #000 40%, transparent 72%);
  mix-blend-mode: lighten;
  filter: contrast(1.25) saturate(1.2) brightness(1.05)
          drop-shadow(0 30px 70px rgba(0,197,102,0.25))
          drop-shadow(0 0 100px rgba(229,67,96,0.15));
  animation: float-slow 7s ease-in-out infinite reverse;
}
.why-chrome-glow {
  position: absolute; inset: -25%;
  background: radial-gradient(circle, rgba(229,67,96,0.14) 0%, rgba(0,197,102,0.1) 40%, transparent 70%);
  filter: blur(50px); z-index: -1;
  animation: pulse-glow 7s ease-in-out infinite;
}
.why-h2 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
}
.why-lead {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.65; max-width: 480px; margin-bottom: 32px;
}
.why-list {
  list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px;
}
.why-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5;
}
.why-check {
  color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
@media (max-width: 900px) {
  .why-section { padding: 48px 24px; }
  .why-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .why-visual { max-width: 260px; }
  .why-list li { justify-content: center; }
  .why-lead { margin-left: auto; margin-right: auto; }
}

/* HERO */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; padding: 5rem 3rem 4rem;
  gap: 4rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Background logo watermark */
.hero-bg-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 520px; height: 520px; object-fit: contain;
  opacity: 0.025; filter: blur(2px);
  pointer-events: none; user-select: none; mix-blend-mode: lighten;
}

.glow { display: none; }

.hero-content { position: relative; z-index: 1; flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.7rem;
  padding: 0.28rem 0.9rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.25rem;
  color: var(--text);
  animation: fadeUp 0.6s 0.22s ease both;
}
.hero-content h1 em { font-style: normal; color: var(--text); }
.hero-sub { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; max-width: 460px; font-weight: 400; }
.hero-cta { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-val { font-size: 1.2rem; font-weight: 800; color: var(--text); font-family: var(--font-mono); }
.stat-lbl { font-size: 0.7rem; color: var(--text-tertiary); font-family: var(--font-mono); }
.stat-div { width: 1px; height: 28px; background: var(--glass-border); }
.hero-visual { position: relative; z-index: 1; flex: 1; max-width: 470px; }
.dashboard-preview {
  background: var(--bg-glass); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.dp-header {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1rem; border-bottom: 1px solid var(--glass-border);
  background: var(--bg-elevated);
}
.dp-dot { width: 10px; height: 10px; border-radius: 50%; }
.dp-dot.red    { background: #ff5f57; }
.dp-dot.yellow { background: #febc2e; }
.dp-dot.green  { background: #28c840; }
.dp-title { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-tertiary); margin-left: 0.5rem; }
.dp-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.dp-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.45rem; }
.dp-card { background: var(--bg-elevated); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 0.7rem; }
.dp-card.accent { border-color: rgba(46,184,92,0.2); background: rgba(46,184,92,0.04); }
.dp-card-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-tertiary); margin-bottom: 0.25rem; }
.dp-card-val { font-weight: 800; font-size: 0.92rem; color: var(--text); }
.dp-card-change { font-family: var(--font-mono); font-size: 0.6rem; margin-top: 0.12rem; color: var(--text-tertiary); }
.dp-card-change.up { color: var(--positive); }
.dp-chart { background: var(--bg-elevated); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 0.5rem; height: 76px; overflow: hidden; }
.dp-chart svg { width: 100%; height: 100%; }
.dp-modules { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.4rem; }
.dp-mod {
  background: var(--bg-elevated); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 0.45rem 0.3rem; text-align: center;
  font-size: 0.6rem; color: var(--text-tertiary);
  display: flex; flex-direction: column; align-items: center; gap: 0.18rem;
}
.dp-mod.active { border-color: rgba(46,184,92,0.25); color: var(--positive); background: rgba(46,184,92,0.05); }
.mod-icon { font-size: 0.88rem; }

/* SECTIONS */
section { padding: 5rem 3rem; }
.section-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.55rem; }
h2 { font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 2.5rem; color: var(--text); }

/* FEATURES */
.features { background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px,1fr)); gap: 1.2rem; }
.feature-card {
  background: var(--bg-glass); backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: border-color 0.15s; display: block; overflow: hidden;
  position: relative;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}
.feature-card:hover { border-color: var(--glass-border-hover); }
.feature-card.premium-card { border-color: rgba(46,184,92,0.2); }
.fc-icon { font-size: 1.75rem; margin-bottom: 0.7rem; }
.feature-card h3 { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--text); }
.feature-card p { color: var(--text-secondary); font-size: 0.84rem; line-height: 1.6; }
.fc-tier {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-family: var(--font-mono); font-size: 0.6rem; padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--bg-elevated); border: 1px solid var(--glass-border);
}
.fc-tier.free    { color: var(--positive); }
.fc-tier.premium { color: var(--text-secondary); }

/* TIERS */
.tiers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 820px; }
.tier-card {
  background: var(--bg-glass); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  padding: 2rem; position: relative;
  transition: border-color 0.15s;
}
.tier-card:hover { border-color: var(--glass-border-hover); }
.tier-premium {
  border-color: rgba(46,184,92,0.3);
  background: rgba(46,184,92,0.02);
  box-shadow: 0 0 40px rgba(46,184,92,0.07);
}
.tier-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #000;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  padding: 0.22rem 0.9rem; border-radius: var(--radius-sm); text-transform: uppercase;
  letter-spacing: 0.08em; white-space: nowrap;
}
.tier-name { font-weight: 800; font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--text); }
.tier-price { font-size: 2.2rem; font-weight: 900; margin-bottom: 1.4rem; color: var(--text); font-family: var(--font-mono); }
.tier-price span { font-size: 1rem; color: var(--text-tertiary); font-weight: 400; }
.tier-features { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 0.55rem; }
.tier-features li { font-size: 0.875rem; color: var(--text-secondary); }
.tier-features li.highlight { color: var(--text); }
.tier-features li.muted { color: var(--text-tertiary); text-decoration: line-through; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 4rem 1.5rem 3rem; min-height: auto; }
  .hero-visual { max-width: 100%; width: 100%; }
  .tiers-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 1.5rem; }
  .market-section { padding: 0 1.5rem 3rem; }
}
@media (max-width: 640px) {
  .hero { padding: 3rem 1rem 2.5rem; gap: 2.5rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  section { padding: 2.5rem 1rem; }
  .market-section { padding: 0 1rem 2.5rem; }
  /* Market table: force horizontal scroll */
  .market-table-wrap { overflow-x: auto; }
  .mw-table { min-width: 520px; }
  /* Dashboard preview: hide on very small screens */
  .dp-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .hero { padding: 2.5rem 0.75rem 2rem; }
  section { padding: 2rem 0.75rem; }
  .market-section { padding: 0 0.75rem 2rem; }
}

/* ── MARKET WIDGET ── */
.market-section { padding: 0 3rem 4rem; }
.market-panel {
  background: var(--bg-glass); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
}
.market-panel::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}
.market-panel-head { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.market-panel-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.market-search {
  font-family: var(--font-mono); font-size: 0.75rem;
  background: var(--bg-elevated); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 0.38rem 0.8rem; color: var(--text);
  outline: none; width: 180px; transition: border-color 0.15s;
}
.market-search::placeholder { color: var(--text-tertiary); }
.market-search:focus { border-color: rgba(46,184,92,0.35); }
.market-sort-bar { padding: 0.6rem 1.4rem; border-bottom: 1px solid var(--glass-border); display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.sort-label { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-tertiary); margin-right: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }
.sort-btn {
  font-family: var(--font-mono); font-size: 0.68rem; padding: 0.28rem 0.7rem;
  background: var(--bg-elevated); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-tertiary); cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; gap: 0.25rem;
}
.sort-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--glass-border-hover); }
.sort-btn.active { background: var(--green-dim); border-color: rgba(46,184,92,0.3); color: var(--green); }
.market-table-wrap { overflow-y: auto; max-height: 560px; }
.market-table-wrap::-webkit-scrollbar { width: 4px; }
.market-table-wrap::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }
.mw-table { width: 100%; border-collapse: collapse; }
.mw-table th {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-tertiary);
  text-align: left; padding: 0.5rem 1rem; border-bottom: 1px solid var(--glass-border);
  text-transform: uppercase; letter-spacing: 0.06em;
  position: sticky; top: 0; background: var(--bg-elevated);
  white-space: nowrap; cursor: pointer; user-select: none;
}
.mw-table th:hover { color: var(--text-secondary); }
.mw-table th.sorted { color: var(--green); }
.mw-table th.right { text-align: right; }
.mw-table td { padding: 0.52rem 1rem; border-bottom: 1px solid var(--glass-border); font-size: 0.82rem; white-space: nowrap; }
.mw-table tr:hover td { background: rgba(46,184,92,0.04); }
.mw-table tr:last-child td { border-bottom: none; }
.mw-row-clickable { cursor: pointer; }
.mw-row-clickable:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.mw-table a { display: contents; color: inherit; }
.mw-rank { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-tertiary); min-width: 28px; }
.mw-coin { display: flex; align-items: center; gap: 0.55rem; }
.mw-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-surface-2); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.mw-icon-img { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; display: block; }
.mw-icon-init { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; color: var(--text-tertiary); }
.mw-name { font-weight: 600; font-size: 0.82rem; color: var(--text); }
.mw-sym  { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-tertiary); margin-top: 1px; }
.mw-price { font-family: var(--font-mono); font-size: 0.78rem; text-align: right; }
.mw-chg   { font-family: var(--font-mono); font-size: 0.74rem; text-align: right; }
.mw-mcap  { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-secondary); text-align: right; }
.mw-up    { color: var(--positive); }
.mw-down  { color: var(--negative); }
.mw-empty { text-align: center; padding: 2rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-tertiary); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.market-row { }

@media (max-width: 900px) { .market-section { padding: 0 1.25rem 3rem; } }
