/* Eagle Harbor — Premium layout & polish (uses tokens.css) */

/* ── Base typography reset ── */
body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: var(--tracking-normal);
  background: var(--bg-base);
  color: var(--text);
  line-height: var(--leading-normal);
}

.label,
.spot-card__tag,
.stage-card__metric-label,
.logos-band__label,
.hero__metric span,
.pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.label { color: var(--accent-dim); margin-bottom: 14px; }

.dim { color: var(--text-3); }
.muted { color: var(--text-3); font-size: var(--text-sm); }

/* ── Header ── */
.header {
  height: var(--header-h);
  background: rgba(7, 7, 8, 0.8);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 7, 8, 0.92);
}

.brand__name {
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: var(--tracking-tight);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-2);
}

.nav__link:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-normal);
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}

.btn--solid {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: none;
}

.btn--solid:hover {
  background: #3df7ca;
  transform: none;
  box-shadow: none;
}

.btn--outline,
.btn--glass {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  backdrop-filter: none;
}

.btn--outline:hover,
.btn--glass:hover {
  background: var(--glass);
  border-color: var(--border-strong);
  transform: none;
}

.btn--lg {
  padding: 13px 24px;
  font-size: var(--text-base);
}

.btn--glow { box-shadow: none; }
.btn--glow:hover { box-shadow: none; }

.text-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-dim);
}

.text-link::after { content: " →"; }

/* ── Section headings ── */
.section-head__title,
.display,
.stats__heading,
.spot-card__title,
.cta-panel h2,
.contact__info h2 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

.section-head--center { text-align: center; max-width: 640px; margin-inline: auto; }
.section-head--center .section-head__desc { margin-inline: auto; }

.section-head__title.display {
  font-size: var(--text-4xl);
  font-weight: 500;
  line-height: var(--leading-tight);
  margin-bottom: 18px;
}

.section-head__desc {
  font-size: var(--text-md);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}

/* ── Hero ── */
.hero--premium {
  min-height: calc(100svh - var(--header-h));
  padding: clamp(56px, 9vh, 112px) 0 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

.hero__ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.hero__orb--1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: rgba(30, 244, 192, 0.09);
}

.hero__orb--2 {
  width: 360px;
  height: 360px;
  bottom: 0;
  left: -100px;
  background: rgba(77, 141, 255, 0.05);
}

.hero__orb--3 { display: none; }

.hero__gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 85%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
  flex: 1;
  padding-bottom: 56px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
  animation: none;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}

.hero__line { display: block; }

.hero__line:first-child .hero__line-inner {
  font-weight: 400;
  color: var(--text-2);
}

.hero__line:nth-child(2) .hero__line-inner {
  font-weight: 500;
  color: var(--text);
}

.hero__line--accent .hero__line-inner {
  font-weight: 500;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: unset;
}

.hero__body {
  font-size: var(--text-md);
  color: var(--text-2);
  max-width: 460px;
  line-height: var(--leading-relaxed);
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.hero__metric { padding: 0; text-align: left; }

.hero__metric strong {
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.hero__metric span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
}

.hero__metric-divider { display: none; }

/* Stage card */
.hero__stage {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

.stage-card--main {
  width: 100%;
  max-width: 400px;
  padding: 24px;
}

.stage-card--float { display: none; }

.stage-card__header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.stage-card__title {
  font-size: var(--text-sm);
  color: var(--text-2);
  font-weight: 400;
}

.stage-card__time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.04em;
}

.stage-card__metric-label {
  color: var(--text-3);
  margin-bottom: 6px;
}

.stage-card__num {
  font-family: var(--font);
  font-size: 3.25rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.stage-card__pct {
  font-size: var(--text-xl);
  color: var(--text-3);
  font-weight: 400;
}

.stage-card__delta {
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  color: var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.stage-card__chart {
  height: 88px;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 1px solid var(--border);
}

.stage-card__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stage-stat span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-4);
}

.stage-stat strong {
  font-size: var(--text-base);
  font-weight: 500;
}

.chart-line {
  stroke: var(--accent-dim);
  stroke-width: 1.5;
}

/* Logos band */
.logos-band {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px 0 28px;
  background: var(--bg-base);
}

.logos-band__label {
  text-align: center;
  color: var(--text-4);
  margin-bottom: 14px;
}

.logos-band__track {
  display: flex;
  gap: 56px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.logos-band__track span {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-4);
  letter-spacing: 0.02em;
}

/* Products */
.products--premium {
  padding: var(--section-y) 0;
  background: var(--bg-base);
}

.products__shell {
  padding: clamp(28px, 4vw, 40px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.products--premium .product-nav__btn {
  padding: 9px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  font-family: var(--font);
}

.products--premium .product-nav__btn.active {
  background: var(--text);
  color: var(--bg-base);
}

.products--premium .product-slide__text h3 {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.products--premium .product-slide__ui {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border-color: var(--border);
  min-height: 360px;
}

.product-progress {
  height: 1px;
  background: var(--border);
  margin: -28px 0 36px;
}

.product-progress__bar {
  background: var(--accent-dim);
  height: 1px;
}

/* Spotlight */
.spotlight--premium { padding: var(--section-y) 0; }

.spotlight--premium .spot-card {
  padding: clamp(32px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
  border-color: var(--border);
}

.spotlight--premium .spot-card--featured {
  background: var(--bg-surface);
  border-color: var(--accent-border);
  box-shadow: none;
}

.spotlight--premium .spot-card__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: var(--leading-tight);
}

.spot-card__tag { color: var(--accent-dim); }

.rating-num {
  font-weight: 500;
  color: var(--accent-dim);
}

/* Cases */
.cases {
  padding: var(--section-y) 0;
  background: var(--bg-raised);
}

.cases .case {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border-color: var(--border);
  min-height: 280px;
}

.cases .case h3 {
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
}

.case__stat { color: var(--accent-dim); font-size: var(--text-sm); }

/* Solutions */
.solutions-section { padding: var(--section-y) 0; }

.solutions-card {
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  border-color: var(--border);
}

.solutions-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.solutions-card h3 {
  font-weight: 500;
  font-size: var(--text-base);
}

/* Stats */
.stats--premium {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
}

.stats__glow { display: none; }

.stats--premium .stats__heading {
  font-size: var(--text-3xl);
  font-weight: 500;
  margin-bottom: 40px;
}

.stats--premium .stats__value {
  font-family: var(--font);
  font-size: clamp(4.5rem, 13vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--text) 30%, var(--text-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
}

.stats--premium .stats__currency,
.stats--premium .stats__unit {
  font-weight: 400;
  color: var(--text-3);
}

.stats__caption {
  font-size: var(--text-md);
  color: var(--text-2);
}

/* CTA */
.cta-block--premium {
  padding: var(--section-y) 0;
  background: var(--bg-raised);
}

.cta-panel {
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  text-align: center;
}

.cta-panel__glow { display: none; }

.cta-panel h2 {
  font-size: var(--text-3xl);
  font-weight: 500;
  margin-bottom: 14px;
}

.cta-panel p {
  font-size: var(--text-md);
  color: var(--text-2);
}

/* Cards global */
.insights--premium,
.developers,
.faq,
.contact {
  padding: var(--section-y) 0;
}

.insights--premium .article-card,
.developers .dev-card {
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  border-color: var(--border);
}

.insights--premium .article-card h3,
.developers .dev-card h3 {
  font-weight: 500;
  font-size: var(--text-base);
}

.article-card__type {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-dim);
}

.contact__form {
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.contact__info h2 {
  font-size: var(--text-3xl);
  font-weight: 500;
}

.contact__dl dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
}

.field input,
.field textarea {
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  background: var(--bg-surface);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.telegram-banner {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
}

.telegram-banner__icon {
  background: var(--bg-overlay);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.telegram-banner__copy em { color: var(--text-2); }

.footer {
  padding-top: 80px;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}

.grain { opacity: 0.02; }

.trust { display: none; }

.pill--live {
  background: var(--accent-muted);
  color: var(--accent-dim);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
}

.pill__dot { animation: none; }

.pay-submit { background: var(--accent); color: var(--accent-on); border-radius: var(--radius-sm); }

/* Announcement */
.announcement {
  background: var(--bg-raised);
  border-bottom-color: var(--border);
}

.announcement__track a { color: var(--accent-dim); }

/* Responsive */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; gap: 48px; }
  .hero__stage { min-height: 340px; }
}

@media (max-width: 768px) {
  .hero--premium { min-height: auto; padding-top: 40px; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .hero__metrics { gap: 20px 28px; }
  .products__shell { padding: 20px 16px; }
  .stage-card__num { font-size: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .logos-band__track { animation: none; }
  .hero__orb { animation: none; }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
