/*
  Clean Digital Card для головної сторінки.
  Файл містить тільки CSS: без Tailwind, Bootstrap, CDN або клієнтського роутера.
*/
:root {
  --home-primary: #4f46e5;
  --home-primary-dark: #3730a3;
  --home-secondary: #06b6d4;
  --home-accent: #8b5cf6;
  --home-foreground: #0f172a;
  --home-muted: #64748b;
  --home-border: #e2e8f0;
  --home-background: #ffffff;
  --home-soft: #f8fafc;
  --home-soft-blue: #eef2ff;
  --home-ring: rgba(79, 70, 229, 0.16);
  --home-shadow: 0 22px 58px rgba(15, 23, 42, 0.10);
  --home-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.07);
}

* { box-sizing: border-box; }

.home-page {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--home-foreground);
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.13), transparent 30rem),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

.home-page a { color: inherit; }

.home-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.home-header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.home-brand,
.home-header__actions,
.home-nav,
.home-language,
.home-card-row,
.home-feature__head { display: flex; align-items: center; }
.home-brand { min-width: 0; gap: 10px; text-decoration: none; }
.home-brand__mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 15px; display: grid; place-items: center; color: #ffffff; background: linear-gradient(135deg, var(--home-primary), var(--home-accent)); box-shadow: 0 12px 28px rgba(79, 70, 229, 0.22); }
.home-brand__title { display: block; font-size: 1.04rem; font-weight: 900; line-height: 1.1; }
.home-brand__subtitle { display: none; color: var(--home-muted); font-size: 0.78rem; margin-top: 2px; }
.home-nav { display: none; gap: 20px; }
.home-nav a { color: var(--home-muted); font-size: 0.94rem; font-weight: 800; text-decoration: none; }
.home-nav a:hover { color: var(--home-primary); }
.home-header__actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.home-language .qr-language-switcher { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--home-border); border-radius: 999px; background: #ffffff; box-shadow: var(--home-shadow-soft); }
.home-language .qr-language-switcher a { min-width: 34px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; border-radius: 999px; color: var(--home-muted); font-size: 0.76rem; font-weight: 900; text-decoration: none; }
.home-language .qr-language-switcher a[aria-current="true"] { color: #ffffff; background: linear-gradient(135deg, var(--home-primary), var(--home-accent)); }

.home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 1px solid transparent; border-radius: 15px; font-weight: 850; line-height: 1.15; text-align: center; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease; }
.home-button:hover { transform: translateY(-1px); }
.home-button.home-button--primary { color: #ffffff; background: linear-gradient(135deg, var(--home-primary), var(--home-accent)); box-shadow: 0 16px 34px rgba(79, 70, 229, 0.23); }
.home-button.home-button--primary:hover,
.home-button.home-button--primary:focus-visible { color: #ffffff; }
.home-button.home-button--secondary { color: var(--home-primary-dark); background: #ffffff; border-color: var(--home-border); box-shadow: var(--home-shadow-soft); }
.home-button.home-button--ghost { color: var(--home-foreground); background: transparent; }
.home-button.home-button--ghost:hover { background: var(--home-soft); }
.home-button.home-button--cta { color: #ffffff; background: linear-gradient(135deg, #2563eb, var(--home-primary), var(--home-accent)); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.26); }
.home-button--full { width: 100%; }
.home-header__actions .home-button--ghost { display: none; }
.home-header__actions .home-button--primary { min-height: 40px; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; }
.home-page :focus-visible { outline: 3px solid var(--home-ring); outline-offset: 3px; }

.home-hero { position: relative; overflow: hidden; padding: 48px 0 38px; }
.home-hero::before { content: ''; position: absolute; inset: 10px auto auto 50%; width: min(620px, 92vw); height: min(620px, 92vw); border-radius: 999px; background: radial-gradient(circle, rgba(6, 182, 212, 0.18), rgba(139, 92, 246, 0.10) 45%, transparent 72%); transform: translateX(-50%); pointer-events: none; }
.home-hero__grid { position: relative; display: grid; gap: 34px; align-items: center; }
.home-hero__copy { max-width: 650px; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 12px; border: 1px solid rgba(226, 232, 240, 0.94); border-radius: 999px; color: var(--home-primary-dark); background: rgba(255, 255, 255, 0.86); font-weight: 850; font-size: 0.86rem; box-shadow: var(--home-shadow-soft); }
.home-hero h1 { max-width: 650px; margin: 0; font-size: clamp(2rem, 8vw, 3.55rem); line-height: 1.08; letter-spacing: -0.045em; }
.home-hero__text { max-width: 610px; margin: 20px 0 0; color: var(--home-muted); font-size: clamp(1rem, 3vw, 1.16rem); line-height: 1.72; }
.home-hero__actions { display: grid; gap: 12px; margin-top: 28px; }

.home-preview { width: min(100%, 382px); margin: 0 auto; padding: 0; border: 1px solid rgba(226, 232, 240, 0.95); border-radius: 28px; background: #ffffff; box-shadow: var(--home-shadow); }
.home-card { padding: 28px 24px 26px; }
.home-card__top { text-align: center; }
.home-avatar { width: 92px; height: 92px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 28px; color: #ffffff; background: linear-gradient(135deg, var(--home-primary), var(--home-accent)); font-size: 1.72rem; font-weight: 950; box-shadow: 0 14px 32px rgba(79, 70, 229, 0.22); }
.home-card h2 { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.18; }
.home-card__role,
.home-card__company { margin: 0; color: var(--home-muted); line-height: 1.45; }
.home-card__body { padding-top: 22px; }
.home-card-row { gap: 12px; min-height: 48px; padding: 8px 10px; border-radius: 14px; color: var(--home-muted); background: var(--home-soft); }
.home-card-row + .home-card-row { margin-top: 8px; }
.home-card-row svg { color: var(--home-primary); flex: 0 0 auto; }
.home-qr { width: 148px; height: 148px; margin: 24px auto 26px; padding: 18px; border: 1px solid var(--home-border); border-radius: 24px; background: #ffffff; box-shadow: inset 0 0 0 8px #ffffff, var(--home-shadow-soft); }
.home-qr__grid { width: 100%; height: 100%; border-radius: 12px; background: radial-gradient(circle at 18px 18px, var(--home-foreground) 0 13px, transparent 14px), radial-gradient(circle at calc(100% - 18px) 18px, var(--home-foreground) 0 13px, transparent 14px), radial-gradient(circle at 18px calc(100% - 18px), var(--home-foreground) 0 13px, transparent 14px), linear-gradient(90deg, var(--home-foreground) 9px, transparent 9px) 4px 4px / 23px 23px, linear-gradient(var(--home-foreground) 9px, transparent 9px) 4px 4px / 23px 23px; opacity: 0.92; }

.home-section { padding: 50px 0; }
.home-section__title { margin: 0 0 30px; font-size: clamp(1.8rem, 6vw, 2.65rem); line-height: 1.12; text-align: center; letter-spacing: -0.04em; }
.home-steps { display: grid; gap: 18px; }
.home-step { padding: 28px 24px; border: 1px solid rgba(226, 232, 240, 0.95); border-radius: 24px; background: #ffffff; text-align: center; box-shadow: var(--home-shadow-soft); }
.home-step__number { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; color: var(--home-primary); background: rgba(79, 70, 229, 0.10); font-weight: 900; font-size: 1.12rem; }
.home-step:nth-child(3) .home-step__number { color: #0891b2; background: rgba(6, 182, 212, 0.12); }
.home-step h3 { margin: 0 0 14px; font-size: 1.18rem; line-height: 1.25; }
.home-step p { margin: 0; color: var(--home-muted); line-height: 1.6; }

.home-features-section { margin: 18px auto 58px; padding: 38px clamp(18px, 4vw, 44px); border: 1px solid rgba(226, 232, 240, 0.9); border-radius: 28px; background: linear-gradient(135deg, rgba(79, 70, 229, 0.07), rgba(139, 92, 246, 0.07)); }
.home-features-grid { display: grid; gap: 20px 28px; }
.home-feature { min-width: 0; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.72); }
.home-feature__head { gap: 12px; margin-bottom: 8px; }
.home-feature__check { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border: 2px solid rgba(79, 70, 229, 0.75); border-radius: 999px; color: var(--home-primary); font-size: 0.82rem; font-weight: 900; }
.home-feature:nth-child(3n) .home-feature__check { border-color: rgba(6, 182, 212, 0.85); color: #0891b2; }
.home-feature h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.home-feature p { margin: 0 0 0 40px; color: var(--home-muted); line-height: 1.58; }

.home-cta { margin: 14px auto 56px; padding: clamp(32px, 6vw, 52px) 22px; border-radius: 28px; color: #ffffff; text-align: center; background: linear-gradient(135deg, var(--home-primary), var(--home-accent)); box-shadow: 0 26px 62px rgba(79, 70, 229, 0.25); }
.home-cta h2 { margin: 0 0 16px; font-size: clamp(1.85rem, 7vw, 2.8rem); line-height: 1.14; letter-spacing: -0.04em; }
.home-cta p { max-width: 660px; margin: 0 auto 26px; color: rgba(255, 255, 255, 0.88); font-size: 1.06rem; line-height: 1.65; }
.home-footer { border-top: 1px solid var(--home-border); background: #ffffff; }
.home-footer__inner { min-height: 88px; display: flex; align-items: center; justify-content: center; color: var(--home-muted); font-size: 0.92rem; }

@media (min-width: 560px) {
  .home-brand__subtitle { display: block; }
  .home-header__actions .home-button--ghost { display: inline-flex; }
  .home-hero__actions { display: flex; }
  .home-button--full { width: auto; }
}

@media (min-width: 760px) {
  .home-steps { grid-template-columns: repeat(3, 1fr); }
  .home-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .home-nav { display: flex; }
  .home-header__inner { min-height: 78px; }
  .home-hero { padding: 78px 0 58px; }
  .home-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); gap: 72px; }
  .home-hero::before { inset: 64px -180px auto auto; transform: none; }
  .home-preview { margin-right: 0; }
  .home-features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .home-shell { width: min(100% - 24px, 1160px); }
  .home-header__inner { align-items: flex-start; }
  .home-header__actions { max-width: 168px; }
  .home-header__actions .home-button--primary { width: 100%; }
  .home-hero { padding-top: 36px; }
  .home-card { padding: 24px 18px; }
}

/*
  На телефонах блок «Можливості» не має бути великою карткою,
  всередині якої лежать ще менші картки. Залишаємо картками самі пункти,
  а зовнішню обгортку робимо прозорою: так текст отримує більше ширини,
  але структура і desktop-оформлення не змінюються.
*/
@media (max-width: 640px) {
  .home-shell {
    width: min(1160px, calc(100% - 20px));
  }

  .home-features-section {
    margin: 10px auto 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-features-grid {
    gap: 12px;
  }

  .home-feature {
    padding: 16px;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--home-shadow-soft);
  }

  .home-feature__head {
    align-items: flex-start;
  }

  .home-feature p {
    margin-left: 0;
  }
}
