/* ============================================
   VARIABLES
   ============================================ */
:root {
  /* Colors — clean, timeless palette */
  --c-bg:       #FAFBFF;   /* light neutral white */
  --c-surface:  #FFFFFF;   /* pure white */
  --c-text:     #1A1A1A;   /* dark gray (not blue) */
  --c-text-2:   #5A5A5A;   /* medium gray */
  --c-text-3:   #8A8A8A;   /* light gray */
  --c-accent:   #1F6EDB;   /* soft cool blue */
  --c-accent-h: #1855B8;
  --c-border:   rgba(0,0,0,0.06);
  --c-dark:     #111111;   /* strong dark, not pure black */
  --c-dark-2:   #1A1A1C;   /* slightly lighter */
  --c-dark-b:   #2A2A2D;   /* border for dark */

  /* Shadows — elevation system */
  --shadow-sm:    0 1px 2px rgba(17,17,17,0.03),
                  0 2px 6px  rgba(17,17,17,0.04);
  --shadow-md:    0 1px 2px  rgba(17,17,17,0.03),
                  0 4px 12px rgba(17,17,17,0.06);
  --shadow-lg:    0 2px 6px  rgba(17,17,17,0.04),
                  0 16px 48px rgba(17,17,17,0.1);
  --shadow-hover: 0 2px 8px rgba(17,17,17,0.06),
                  0 12px 32px rgba(17,17,17,0.1);

  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 62px;
  --max-w: 1160px;
  --r:     10px;
  --t:     200ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img   { display: block; max-width: 100%; }
ul    { list-style: none; }
a     { color: inherit; text-decoration: none; }
input, button { font: inherit; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--tight {
  padding: 4rem 0;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 1.25rem;
}

.section__sub {
  font-size: 1.0625rem;
  color: var(--c-text-2);
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ============================================
   PANEL — large elevated white container
   ============================================ */
.panel {
  background: var(--c-surface);
  border-radius: 16px;
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(28,78,219,0.3);
}
.btn--primary:hover {
  background: var(--c-accent-h);
  box-shadow: 0 4px 14px rgba(28,78,219,0.4);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn--outline:hover {
  border-color: rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.03);
}

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--active {
  background: #EDFAF3;
  color: #1A8050;
}

.badge--soon {
  background: #EBEBF2;
  color: var(--c-text-3);
}

.badge--dark {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.nav__logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__menu a {
  padding: 0.4rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: 6px;
  transition: color var(--t), background var(--t);
}

.nav__menu a:hover,
.nav__menu a.active {
  color: var(--c-text);
  background: var(--c-bg);  /* cool gray pill — matches page surface */
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-text);
  transition: transform var(--t), opacity var(--t);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--c-dark);
  color: #fff;
  padding: 8rem 0 9rem;
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: rgba(255,255,255,0.3);
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,0.45);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================
   ABOUT BLOCK (homepage)
   ============================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-split__heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--c-text);
}

.about-split__body {
  color: var(--c-text-2);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.about-split__body p + p {
  margin-top: 1rem;
}

/* ============================================
   FEATURED PROJECT
   ============================================ */
.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.875rem;
}

.featured__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.featured__name-sub {
  font-size: 1rem;
  color: var(--c-text-2);
  margin-bottom: 1.5rem;
}

.featured__desc {
  color: var(--c-text-2);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.featured__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.featured__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* App mock visual */
.app-mock {
  background: var(--c-dark-2);
  border-radius: 12px;
  border: 1px solid var(--c-dark-b);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.16);
}

.app-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-dark-b);
}

.app-mock__bar span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-dark-b);
}

.app-mock__bar span:first-child  { background: #FF5F57; }
.app-mock__bar span:nth-child(2) { background: #FFBD2E; }
.app-mock__bar span:last-child   { background: #28CA41; }

.app-mock__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-mock__row {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

.app-mock__row--short  { width: 55%; }
.app-mock__row--medium { width: 78%; }
.app-mock__row--long   { width: 92%; }
.app-mock__row--xshort { width: 38%; }

.app-mock__divider {
  height: 1px;
  background: var(--c-dark-b);
  margin: 0.375rem 0;
}

/* ============================================
   CARDS & GRID
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--c-surface);
  border-radius: var(--r);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t), transform var(--t);
  will-change: transform;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.card__text {
  font-size: 0.9375rem;
  color: var(--c-text-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.card__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-3);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--t);
  margin-top: auto;
}

.card:hover .card__link { color: var(--c-text); }

/* "Coming soon" placeholder card */
.card--placeholder {
  background: rgba(255,255,255,0.5);
  box-shadow: none;
  border: 1.5px dashed rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.75rem;
}

.card--placeholder:hover {
  transform: none;
  box-shadow: none;
}

/* Project list cards (projekty.html) */
.project-card {
  background: var(--c-surface);
  border-radius: var(--r);
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t), transform var(--t);
  will-change: transform;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.project-card--featured {
  background: var(--c-dark);
  color: #fff;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25), 0 24px 56px rgba(0,0,0,0.2);
}

.project-card--featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3), 0 32px 64px rgba(0,0,0,0.22);
}

.project-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 0.5rem;
}

.project-card--featured .project-card__eyebrow {
  color: rgba(255,255,255,0.3);
}

.project-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: 0.9375rem;
  color: var(--c-text-2);
  line-height: 1.65;
}

.project-card--featured .project-card__desc {
  color: rgba(255,255,255,0.45);
}

.project-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.page-header__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.page-header__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--c-text);
  margin-bottom: 1rem;
}

.page-header__sub {
  font-size: 1.0625rem;
  color: var(--c-text-2);
  max-width: 480px;
  line-height: 1.7;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  padding: 1.75rem;
  background: var(--c-surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
  will-change: transform;
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-card__icon {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--c-accent);
  opacity: 0.6;
}

.value-card__title {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}

.value-card__text {
  font-size: 0.9375rem;
  color: var(--c-text-2);
  line-height: 1.6;
}

.text-block {
  max-width: 660px;
}

.text-block + .text-block {
  margin-top: 4rem;
}

.text-block__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.text-block__body {
  color: var(--c-text-2);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.text-block__body p + p {
  margin-top: 0.875rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--c-dark);
  color: rgba(255,255,255,0.45);
}

.footer__main {
  padding: 4rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__brand-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  display: block;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer__nav {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  align-items: flex-end;
}

.footer__nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--t);
}

.footer__nav a:hover { color: #fff; }

/* Footer details — company info */
.footer__details {
  padding: 2.5rem 0;
}

.footer__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer__block {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.footer__value {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
}

.footer__value a {
  color: rgba(255,255,255,0.6);
  transition: color var(--t);
  text-decoration: none;
}

.footer__value a:hover {
  color: #fff;
}

.footer__bottom {
  padding: 1.25rem 0;
  font-size: 0.8125rem;
}

/* ============================================
   SECTION SPACING OVERRIDES
   ============================================ */
#flo {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* ============================================
   FLO BENEFITS BLOCK
   ============================================ */
.flo-benefits {
  margin: 1.75rem 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border-left: 2px solid var(--c-accent);
}

.flo-benefits__list {
  font-size: 0.9375rem;
  color: var(--c-text-2);
  line-height: 1.8;
  margin: 0;
}

/* ============================================
   CARD LINK WRAPPER
   ============================================ */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ============================================
   PLACEHOLDER CARD CONTENT
   ============================================ */
.card--placeholder-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-text-3);
  margin-bottom: 0.5rem;
}

.card--placeholder-text {
  font-size: 0.875rem;
  color: var(--c-text-3);
  line-height: 1.5;
}

/* ============================================
   INLINE LINK STYLES
   ============================================ */
.ecosystem-link {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--c-accent);
  transition: opacity var(--t);
}

.ecosystem-link:hover {
  opacity: 0.8;
}

.footer-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

/* ============================================
   UTILS
   ============================================ */
.text-secondary  { color: var(--c-text-2); }
.text-muted      { color: var(--c-text-3); }
.text-muted--small { color: var(--c-text-3); font-size: 0.875rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3.5rem; }

.stack > * + * { margin-top: 1.25rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-split,
  .featured__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .featured__visual { order: -1; }

  .cards-grid  { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card__aside {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .panel { padding: 2.5rem 2rem; }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }

  .container { padding: 0 1.25rem; }

  .section  { padding: 4rem 0; }
  .hero     { padding: 5rem 0 6rem; min-height: auto; }

  .nav__menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__menu a {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
  }

  .nav__toggle { display: flex; }

  .cards-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__nav {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
  }

  .page-header { padding: 3rem 0 2.5rem; }
  .panel { padding: 1.75rem 1.25rem; }

  .footer__info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
