/* =========================================================
   Halo / USD Halo — fintech stablecoin landing (koncept)
   Ručně psané CSS podle spec (Tailwind → vanilla)
   ========================================================= */

:root {
  --bg: #F5F5F5;
  --card-dark: #2B2644;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --black-70: rgba(0, 0, 0, .7);
  --black-60: rgba(0, 0, 0, .6);
  --black-50: rgba(0, 0, 0, .5);
  --white-60: rgba(255, 255, 255, .6);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: #000;
  letter-spacing: -0.01em; /* náhrada za TT Norms Pro — Inter s těsnějším prostrkáním */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.5;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

/* Vnitřní šířka všech sekcí: max-w-[88rem] mx-auto */
.container {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
}

/* ---------- Obrazovka 1 (h-screen overflow-hidden) ---------- */

.screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@supports (height: 100dvh) {
  .screen { height: 100dvh; }
}

/* ---------- Navigace ---------- */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 20px 24px; /* px-6 py-5 */
}

.nav-row {
  max-width: 88rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
}

.logo-icon {
  width: 28px;  /* w-7 h-7 */
  height: 28px;
  color: #000;
  flex-shrink: 0;
}

.logo-icon--sm {
  width: 18px;
  height: 18px;
}

.nav-word {
  font-size: 24px;        /* text-2xl */
  font-weight: 600;       /* font-medium (nejtěžší řez = 600) */
  letter-spacing: -0.025em; /* tracking-tight */
  line-height: 1;
}

.nav-links {
  display: none; /* skryté pod md */
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px; /* gap-8 */
  }
}

.nav-links a {
  font-size: 16px;       /* text-base */
  font-weight: 600;      /* font-medium */
  color: var(--gray-700);
  transition: color .2s;
}

.nav-links a:hover {
  color: #000;
}

/* Černé pill tlačítko (Otevřít peněženku) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 28px; /* px-7 py-2.5 */
  border-radius: 9999px;
  transition: background-color .2s;
  white-space: nowrap;
}

.btn-pill:hover {
  background: var(--gray-800);
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  padding: 80px 24px 24px; /* px-6 pt-20 pb-6 */
  display: flex;
  align-items: flex-end;
}

.hero-container {
  display: flex;
  height: 100%;
  align-items: flex-end;
}

.hero-card {
  position: relative;
  width: 100%;
  border-radius: 16px; /* rounded-2xl */
  overflow: hidden;
  height: calc(100vh - 96px);
  background: #E7E4EE; /* dokud se nenačte video */
}

@supports (height: 100dvh) {
  .hero-card { height: calc(100dvh - 96px); }
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  padding: 144px 48px 48px; /* p-12 pt-36 */
}

.hero-title {
  color: #000;
  font-size: 48px;       /* text-5xl */
  font-weight: 600;
  line-height: 1.25;     /* leading-tight */
  letter-spacing: -0.04em;
  max-width: 36rem;      /* max-w-xl */
  margin-bottom: 16px;   /* mb-4 */
}

.hero-sub {
  color: var(--black-70);
  font-size: 16px;       /* text-base */
  line-height: 1.625;    /* leading-relaxed */
  max-width: 28rem;      /* max-w-md */
  margin-bottom: 32px;   /* mb-8 */
}

@media (min-width: 768px) {
  .hero-title { font-size: 60px; }  /* md:text-6xl */
  .hero-sub   { font-size: 18px; }  /* md:text-lg */
}

/* Pill tlačítko se šipkou v bílém kroužku (Přidejte se / Prozkoumat) */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px; /* gap-3 */
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 8px 8px 32px; /* pl-8 pr-2 py-2 */
  border-radius: 9999px;
  transition: background-color .2s;
}

@media (min-width: 768px) {
  .btn-arrow { font-size: 18px; } /* md:text-lg */
}

.btn-arrow--base,
.btn-arrow--base:hover {
  font-size: 16px !important; /* varianta text-base (Prozkoumat) */
}

.btn-arrow:hover {
  background: var(--gray-800);
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 9999px;
  padding: 8px; /* p-2 */
  color: #000;
}

.arrow-circle svg {
  width: 20px;  /* w-5 h-5 */
  height: 20px;
}

/* ---------- Marquee značek v hero ---------- */

.hero-marquee {
  margin-top: 96px; /* mt-24 */
  width: 100%;
  max-width: 28rem; /* max-w-md */
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand {
  margin: 0 28px; /* mx-7 */
  flex-shrink: 0;
  color: var(--black-60);
  white-space: nowrap;
  line-height: 1.5;
}

/* Typografické „loga“ jednotlivých značek */
.brand-stripe    { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }
.brand-coinbase  { font-family: Arial, Helvetica, sans-serif; font-weight: 900; letter-spacing: 0.08em; font-size: 13px; text-transform: uppercase; }
.brand-uniswap   { font-family: 'Trebuchet MS', Tahoma, sans-serif; font-weight: 600; letter-spacing: 0.01em; font-size: 15px; font-style: italic; }
.brand-aave      { font-family: 'Courier New', Courier, monospace; font-weight: 700; letter-spacing: 0.12em; font-size: 13px; text-transform: uppercase; }
.brand-compound  { font-family: Palatino, 'Book Antiqua', 'Palatino Linotype', serif; font-weight: 400; letter-spacing: -0.01em; font-size: 16px; }
.brand-makerdao  { font-family: Impact, 'Arial Narrow', sans-serif; font-weight: 400; letter-spacing: 0.04em; font-size: 14px; }
.brand-chainlink { font-family: Verdana, Geneva, sans-serif; font-weight: 700; letter-spacing: -0.03em; font-size: 13px; }

/* ---------- Sekce: Seznamte se s USD Halo ---------- */

.info {
  background: var(--bg);
  padding: 96px 24px; /* px-6 py-24 */
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;          /* gap-12 */
  margin-bottom: 64px; /* mb-16 */
  align-items: start;
}

@media (min-width: 768px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

.info-title {
  color: #000;
  font-size: 36px;     /* text-4xl */
  font-weight: 600;
  line-height: 1.25;   /* leading-tight */
  letter-spacing: -0.03em;
  margin-bottom: 32px; /* mb-8 */
}

.info-lead {
  color: var(--black-70);
  font-size: 24px;     /* text-2xl */
  line-height: 1.625;  /* leading-relaxed */
}

@media (min-width: 768px) {
  .info-title { font-size: 48px; } /* md:text-5xl */
  .info-lead  { font-size: 30px; } /* md:text-3xl */
}

/* Karty */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px; /* gap-4 */
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card-img { grid-column: span 2; } /* lg:col-span-2 */
}

.card {
  border-radius: 16px; /* rounded-2xl */
  padding: 28px;       /* p-7 */
  min-height: 320px;   /* min-h-80 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-img {
  background-image: url('assets/card-bloom.webp');
  background-size: cover;
  background-position: center;
}

.card-dark {
  background: var(--card-dark);
}

.card-title {
  color: #000;
  font-size: 24px;     /* text-2xl */
  font-weight: 600;
  line-height: 1.375;  /* leading-snug */
  letter-spacing: -0.02em;
}

.card-title--light {
  color: #fff;
}

.card-body {
  color: var(--black-70);
  font-size: 16px;
  max-width: 20rem; /* max-w-xs */
}

.card-body--light {
  color: var(--white-60);
  max-width: none;
}

/* ---------- Sekce: Partneři (marquee) ---------- */

.backed {
  background: var(--bg);
  padding: 0 24px; /* px-6 */
}

.backed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px; /* gap-8 */
  align-items: center;
}

@media (min-width: 768px) {
  .backed-grid { grid-template-columns: repeat(4, 1fr); }
  .backers { grid-column: span 3; }
}

.backed-note {
  color: var(--black-70);
  font-size: 16px;
  line-height: 1.625;
}

.backers {
  overflow: hidden;
  min-width: 0;
}

.backers-track {
  display: flex;
  width: max-content;
  animation: backers-marquee 30s linear infinite;
}

@keyframes backers-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.backer {
  margin: 0 40px; /* mx-10 */
  flex-shrink: 0;
  color: var(--black-50);
  white-space: nowrap;
  line-height: 1.5;
}

.backer-fundamental { font-family: 'Times New Roman', Times, serif; font-weight: 400; letter-spacing: 0.02em; font-size: 14px; }
.backer-kucoin      { font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; letter-spacing: 0.08em; font-size: 16px; }
.backer-ngc         { font-family: Impact, 'Arial Narrow', sans-serif; font-weight: 700; letter-spacing: 0.05em; font-size: 18px; }
.backer-nxgen       { font-family: Georgia, serif; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.backer-matter      { font-family: Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -0.01em; font-size: 15px; }
.backer-dextools    { font-family: Verdana, Geneva, sans-serif; font-weight: 700; letter-spacing: 0.06em; font-size: 14px; text-transform: uppercase; }
.backer-ngrave      { font-family: 'Courier New', Courier, monospace; font-weight: 700; letter-spacing: 0.18em; font-size: 14px; }
.backer-polychain   { font-family: Palatino, 'Palatino Linotype', 'Book Antiqua', serif; font-weight: 500; letter-spacing: 0.03em; font-size: 15px; }

/* ---------- Sekce: Způsoby využití ---------- */

.usecases {
  background: var(--bg);
  padding: 96px 24px; /* px-6 py-24 */
}

.usecases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px; /* gap-8 */
  align-items: start;
}

@media (min-width: 768px) {
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-left { padding-right: 48px; padding-top: 8px; } /* md:pr-12 md:pt-2 */
}

.eyebrow {
  color: var(--black-60);
  font-size: 14px;    /* text-sm */
  margin-bottom: 8px; /* mb-2 */
}

.usecases-title {
  color: #000;
  font-size: 48px;   /* text-5xl */
  font-weight: 600;
  line-height: 1;    /* leading-none */
  letter-spacing: -0.04em;
  margin-bottom: 24px; /* mb-6 */
}

@media (min-width: 768px) {
  .usecases-title { font-size: 60px; } /* md:text-6xl */
}

.usecases-sub {
  color: var(--black-60);
  font-size: 16px;
  line-height: 1.625;
  max-width: 24rem; /* max-w-sm */
}

.usecase-card {
  position: relative;
  border-radius: 24px; /* rounded-3xl */
  overflow: hidden;
  min-height: 720px;
  background: #DDD8E4;
}

.usecase-overlay {
  position: relative;
  z-index: 10;
  padding: 40px; /* p-10 */
}

@media (min-width: 768px) {
  .usecase-overlay { padding: 48px; } /* md:p-12 */
}

.usecase-heading {
  color: #000;
  font-size: 36px;   /* text-4xl */
  font-weight: 600;
  line-height: 1.25; /* leading-tight */
  letter-spacing: -0.03em;
  margin-bottom: 20px; /* mb-5 */
}

@media (min-width: 768px) {
  .usecase-heading { font-size: 48px; } /* md:text-5xl */
}

.usecase-body {
  color: var(--black-70);
  font-size: 16px;
  max-width: 28rem;   /* max-w-md */
  margin-bottom: 32px; /* mb-8 */
  line-height: 1.625;
}

.know-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

.know-more-circle {
  width: 36px;  /* w-9 h-9 */
  height: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background-color .2s;
  flex-shrink: 0;
}

.know-more-circle svg {
  width: 16px;  /* w-4 h-4 */
  height: 16px;
}

.know-more:hover .know-more-circle {
  background: #fff;
}

/* ---------- Patička s kreditem ---------- */

.footer {
  background: var(--bg);
  padding: 64px 24px 32px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(0, 0, 0, .45);
  font-size: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .logo-icon--sm {
  color: rgba(0, 0, 0, .45);
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.footer-credit a:hover {
  color: #000;
}

/* ---------- Reveal animace (IntersectionObserver) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s var(--ease-out),
    transform .8s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Demo toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: #000;
  color: #fff;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 9999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease-out);
  z-index: 50;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Mobilní doladění ---------- */

@media (max-width: 639px) {
  .hero {
    padding: 80px 16px 16px;
  }

  .hero-card {
    height: calc(100vh - 88px);
  }

  @supports (height: 100dvh) {
    .hero-card { height: calc(100dvh - 88px); }
  }

  .hero-content {
    padding: 104px 24px 28px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-marquee {
    margin-top: 48px;
  }

  .btn-pill {
    padding: 10px 20px;
    font-size: 15px;
  }

  .usecase-card {
    min-height: 560px;
  }

  .toast {
    white-space: normal;
    text-align: center;
    border-radius: 20px;
  }
}

/* ---------- Omezený pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee-track,
  .backers-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
