/* ═══════════════════════════════════════════════════════════════
   say.work — Section Styles
   Hero, features grid, story, highlight, audience, CTA, footer.
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero Branding (logo + tagline) ────────────────────────── */

.hero__branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.hero__logo {
  height: 56px;
  width: auto;
}

.hero__divider {
  width: 1px;
  height: 28px;
  background: var(--color-border);
}

.hero__tagline {
  font-size: var(--font-size-h2);
  font-weight: 200;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
  padding-top: var(--nav-height);
}

[data-theme="dark"] .hero {
  background: var(--color-bg-dark);
  color: #fff;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  padding-block: 0 var(--spacing-2xl);
}

.hero__content {
  max-width: 580px;
}

.hero__badge {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.hero__title {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

[data-theme="dark"] .hero__title {
  color: #fff;
}

.hero__title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--font-size-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
}

[data-theme="dark"] .hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.hero__actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
}

.hero__screenshot {
  width: 140%;
  max-width: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

/* Medium screens — give more space to the image, prevent clipping */
@media (min-width: 1025px) and (max-width: 1600px) {
  .hero__inner {
    grid-template-columns: 4fr 6fr;
    gap: var(--spacing-lg);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__screenshot {
    width: 100%;
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  }

  .hero__subtitle {
    font-size: var(--font-size-body);
  }

}



/* Placeholder for screenshot */
.hero__placeholder {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* ── Story / Origin ───────────────────────────────────────────── */

.story {
  background: var(--color-bg);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.story__content {
  max-width: 520px;
}

.story__text {
  font-size: var(--font-size-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

.story__highlight {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.story__highlight-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0;
  color: var(--color-primary);
  opacity: 0.7;
}

.story__highlight-text {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
}

.story__highlight-text strong {
  color: var(--color-text);
}

/* ── Features Grid ────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

/* ── Feature Grid (subpage: 2-column text cards) ──────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.feature-card {
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.feature-card__label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-xs);
}

.feature-card__title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}

.feature-card__text {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.feature-card__list {
  list-style: none;
  padding: 0;
  margin-top: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.feature-card__list li {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  padding-left: 1.25rem;
  position: relative;
}

.feature-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

.feature-card__list li strong {
  color: var(--color-text);
}

.feature-card__list li code {
  background: var(--color-bg-alt);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--color-primary);
}

/* Legacy feature-row support (kept for backward compat) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  align-items: center;
  padding-block: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row__label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-xs);
}

.feature-row__title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}

.feature-row__text {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.feature-row__list {
  list-style: none;
  padding: 0;
  margin-top: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.feature-row__list li {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  padding-left: 1.25rem;
  position: relative;
}

.feature-row__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

.feature-row__list li strong {
  color: var(--color-text);
}

.feature-row__list li code {
  background: var(--color-bg-alt);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--color-primary);
}

.feature-row__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* ── Feature Highlight (full-width featured section) ──────────── */

.feature-highlight {
  background: var(--color-bg);
}

.feature-highlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.feature-highlight__content {
  max-width: 520px;
}

.feature-highlight__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.feature-highlight__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
}

.feature-highlight__item .icon {
  flex-shrink: 0;
  color: var(--color-success);
  font-size: 1.25rem;
  margin-top: 2px;
}

.feature-highlight__image {
  position: relative;
}

.feature-highlight__image img {
  width: 140%;
  max-width: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .feature-highlight__inner {
    grid-template-columns: 4fr 6fr;
    gap: var(--spacing-lg);
  }

  .feature-highlight__content {
    max-width: 100%;
  }

  .feature-highlight__image img {
    width: 100%;
    max-width: 100%;
  }
}

.feature-highlight__screenshot {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.feature-highlight__placeholder {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  background: var(--gradient-subtle);
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* ── Audience / Dla kogo ──────────────────────────────────────── */

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.audience-card {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.audience-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.audience-card__title {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-xs);
}

.audience-card__text {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
}

/* ── CTA Section ──────────────────────────────────────────────── */

.cta-section {
  background: var(--gradient-cta);
  color: #fff;
  text-align: center;
  padding-block: var(--spacing-3xl);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
}

.cta-section__title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  color: #fff;
}

.cta-section__text {
  font-size: var(--font-size-body-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
}

.cta-section .btn--ghost {
  font-size: var(--font-size-body-lg);
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-section .btn--ghost:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

/* ── Footer ───────────────────────────────────────────────────── */

.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--spacing-2xl) var(--spacing-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

.footer__desc {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--line-height-relaxed);
}

.footer__heading {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-sm);
}

.footer__link {
  display: block;
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.5);
  padding-block: 0.3rem;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

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

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: var(--spacing-xl);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__badge {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__screenshot {
    width: 100%;
  }

  .hero__image {
    max-width: 100%;
    margin-inline: auto;
  }

  .story__grid {
    grid-template-columns: 1fr;
  }

  .story__content {
    max-width: 100%;
  }

  .feature-highlight__inner {
    grid-template-columns: 1fr;
  }

  .feature-highlight__content {
    max-width: 100%;
  }

  .feature-highlight__image img {
    width: 100%;
    max-width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--spacing-2xl);
  }

  /* Subpage hero sections — less top padding on mobile */
  .section[style*="padding-top"] {
    padding-top: calc(var(--nav-height) + var(--spacing-sm)) !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .audience__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-bottom: var(--spacing-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }
}
