/* MyBoard — Landing Page Styles
   Design: Dark editorial, copper/amber accent
   Fonts: Inter (sjednoceno s myinvoice.cz)
   ================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Custom Properties ───────────────────────── */
:root {
  --bg:          #0b0c11;
  --bg-2:        #101218;
  --bg-3:        #181a22;
  --surface:     #1c1e28;
  --surface-2:   #24262f;

  /* Accent — indigo→violet (variable names kept for minimal diff) */
  --copper:      #6d6cf5;
  --copper-light:#9aa0ff;
  --amber:       #a78bfa;
  --amber-dim:   #7c6fd6;

  --text:        #e7e8ee;
  --text-muted:  #9095a6;
  --text-dim:    #565a69;

  --line:        rgba(109, 108, 245, 0.20);
  --line-subtle: rgba(255,255,255,0.06);

  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --shadow-card: 0 4px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(109,108,245,0.10);
  --shadow-glow: 0 0 60px rgba(109,108,245,0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Accessibility: screen-reader only ───────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

::selection {
  background: var(--copper);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Typography ───────────────────────────────── */
.display-1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.label-caps {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Layout Utilities ─────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ── Decorative Lines ─────────────────────────── */
.rule {
  height: 1px;
  background: var(--line);
  border: none;
}

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 14, 15, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav__logo svg { width: 32px; height: 32px; }

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--copper);
  color: #000;
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn--primary:hover::after { background: rgba(255,255,255,0.12); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(109,108,245,0.4); }

.btn--outline {
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(109,108,245,0.06);
}

.btn--large {
  padding: 1rem 2.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ── HERO SECTION ─────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 9rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-subtle) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  opacity: 0.5;
}

.hero__bg-glow {
  position: absolute;
  width: 900px;
  height: 600px;
  top: -100px;
  right: -200px;
  background: radial-gradient(ellipse at center, rgba(109,108,245,0.08) 0%, transparent 70%);
  filter: blur(40px);
}

.hero__bg-glow-2 {
  position: absolute;
  width: 600px;
  height: 400px;
  bottom: 0;
  left: -100px;
  background: radial-gradient(ellipse at center, rgba(167,139,250,0.05) 0%, transparent 70%);
  filter: blur(60px);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__text { min-width: 0; }

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-bottom: 2.5rem;
  background: rgba(109,108,245,0.06);
}

.hero__tag span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.hero__tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero__headline {
  margin-bottom: 1rem;
  max-width: 820px;
}

.hero__headline em {
  font-style: italic;
  color: var(--copper-light);
}

.hero__subline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 680px;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero__desc {
  max-width: 560px;
  margin-bottom: 3rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-subtle);
  flex-wrap: wrap;
}

.hero__proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__proof-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
}

.hero__proof-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.hero__proof-sep {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* ── HERO VISUAL / BANNER ─────────────────────── */
.hero__visual {
  position: relative;
}

.hero__panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.hero__panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--copper), var(--amber), var(--copper));
}

.hero__panel-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-subtle);
}

.hero__panel-dot { width: 9px; height: 9px; border-radius: 50%; }
.hero__panel-dot:nth-child(1) { background: #ff5f57; }
.hero__panel-dot:nth-child(2) { background: #ffbd2e; }
.hero__panel-dot:nth-child(3) { background: #28c941; }

.hero__panel-title {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
}

.hero__panel-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line-subtle);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

.hero__chip svg { width: 11px; height: 11px; }

.hero__board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.hero__col {
  background: var(--bg);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-md);
  padding: 0.6rem;
  min-width: 0;
}

.hero__col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}

.hero__col-head span {
  background: var(--bg-3);
  color: var(--text-muted);
  border-radius: 100px;
  padding: 0.05rem 0.4rem;
  font-size: 0.55rem;
}

.hero__card {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-sm);
  padding: 0.5rem;
  margin-bottom: 0.45rem;
}

.hero__card:last-child { margin-bottom: 0; }

.hero__card--accent {
  background: rgba(109,108,245,0.12);
  border-color: rgba(109,108,245,0.32);
}

.hero__card-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.hero__card-avatar {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__card-tag {
  margin-left: auto;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.08rem 0.35rem;
  border-radius: 100px;
  color: #000;
  background: var(--copper);
}

.hero__card-line {
  height: 5px;
  border-radius: 3px;
  background: var(--line-subtle);
  margin-bottom: 0.3rem;
}

.hero__card-line:last-child { margin-bottom: 0; }
.hero__card-line--short { width: 58%; }

.hero__float {
  position: absolute;
  bottom: -1.1rem;
  right: -0.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.6rem 0.85rem;
  box-shadow: var(--shadow-card);
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero__float { right: 0.5rem; }
}

@media (max-width: 560px) {
  .hero__board { grid-template-columns: repeat(2, 1fr); }
  .hero__board .hero__col:last-child { display: none; }
}

/* ── WHAT ─────────────────────────────────────── */
#what {
  padding: 8rem 0 6rem;
  position: relative;
}

.section-header {
  margin-bottom: 5rem;
}

.section-header .label-caps {
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.section-header p {
  margin-top: 1.25rem;
  max-width: 540px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.what__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (max-width: 768px) {
  .what__grid { grid-template-columns: 1fr; }
}

.what__item {
  background: var(--bg-2);
  padding: 2.5rem;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.what__item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.what__item:hover {
  background: var(--bg-3);
}
.what__item:hover::before { opacity: 1; }

.what__item-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 1rem;
}

.what__item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.what__item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── FEATURES ─────────────────────────────────── */
#features {
  padding: 8rem 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

#features::before {
  content: '';
  position: absolute;
  top: -200px; right: -300px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(109,108,245,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-md);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--copper) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.feature-card:hover {
  border-color: rgba(109,108,245,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::after { opacity: 0.15; }

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--copper);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-card--highlight {
  border-color: rgba(109,108,245,0.3);
  background: linear-gradient(135deg, rgba(109,108,245,0.06) 0%, var(--bg) 60%);
}

/* ── WHY / VALUE PROP ─────────────────────────── */
#why {
  padding: 8rem 0;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

@media (max-width: 900px) {
  .why__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why__item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-subtle);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  align-items: start;
  cursor: default;
  transition: background var(--transition);
}

.why__item:first-child { border-top: 1px solid var(--line-subtle); }

.why__item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(109,108,245,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--copper);
  transition: background var(--transition);
}

.why__item:hover .why__item-icon {
  background: rgba(109,108,245,0.2);
}

.why__item-icon svg { width: 18px; height: 18px; }

.why__item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.why__item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why__visual {
  position: relative;
}

.why__visual-card {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.why__visual-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--amber), var(--copper));
}

.why__mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-subtle);
}

.why__mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.why__mockup-dot:nth-child(1) { background: #ff5f57; }
.why__mockup-dot:nth-child(2) { background: #ffbd2e; }
.why__mockup-dot:nth-child(3) { background: #28c941; }

.why__mockup-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.why__mockup-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.4rem;
  transition: background var(--transition);
}

.why__mockup-row:hover { background: var(--bg-3); }

.why__mockup-row--active {
  background: rgba(109,108,245,0.1);
  border: 1px solid rgba(109,108,245,0.2);
}

.why__mockup-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #000;
}

.why__mockup-content { flex: 1; min-width: 0; }

.why__mockup-from {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.why__mockup-subject {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.why__mockup-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  background: var(--copper);
  color: #000;
  flex-shrink: 0;
}

.why__mockup-badge--gh {
  background: #2ea043;
  color: #fff;
}

.why__mockup-badge--trello {
  background: #0052cc;
  color: #fff;
}

/* ── BETA SIGNUP ──────────────────────────────── */
#beta {
  padding: 8rem 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.beta__bg-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(109,108,245,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.beta__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.beta__inner .label-caps {
  margin-bottom: 1.25rem;
}

.beta__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.beta__inner h2 em {
  font-style: italic;
  color: var(--copper-light);
}

.beta__inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.beta-form__row {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .beta-form__row { flex-direction: column; }
}

.beta-form__input-wrap {
  flex: 1;
  position: relative;
}

.beta-form__input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.875rem 1.25rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.beta-form__input::placeholder { color: var(--text-dim); }
.beta-form__input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(109,108,245,0.15);
}

/* Honeypot */
.beta-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.beta-form__msg {
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  display: none;
}

.beta-form__msg--success {
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid rgba(46, 160, 67, 0.3);
  color: #4ade80;
  display: block;
}

.beta-form__msg--error {
  background: rgba(220, 60, 60, 0.1);
  border: 1px solid rgba(220, 60, 60, 0.25);
  color: #f87171;
  display: block;
}

.beta__privacy {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line-subtle);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__brand svg { width: 24px; height: 24px; }

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--copper); }

/* ── Scroll Animations ────────────────────────── */
/* Skrytí jen když je JS aktivní — bez JS jsou prvky hned viditelné */
html.js .animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

html.js .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
html.js .animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
html.js .animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
html.js .animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
html.js .animate-on-scroll[data-delay="5"] { transition-delay: 0.5s; }
html.js .animate-on-scroll[data-delay="6"] { transition-delay: 0.6s; }

/* Hero prvky jsou vždy viditelné — reveal se nesmí odložit na scroll */
html.js #hero .animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

/* ── Integrations Ticker ──────────────────────── */
.integrations-bar {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.integrations-bar__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker 28s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.integrations-bar__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.integrations-bar__item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* ── Responsive adjustments ───────────────────── */
@media (max-width: 640px) {
  .hero__proof-sep:nth-child(4) { display: none; }
  .hero__proof-item:last-child { display: none; }
  footer .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

/* ── Copper HR accent ─────────────────────────── */
.accent-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.accent-rule::before, .accent-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.accent-rule__mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--copper);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Loading state for button ─────────────────── */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
