:root {
  --widgetly-accent: #2fd5ff;
  --widgetly-accent-dim: rgba(47, 213, 255, 0.2);
  --widgetly-surface: rgba(17, 17, 17, 0.88);
  --widgetly-surface-strong: rgba(10, 10, 10, 0.92);
}

.widgetly-page {
  position: relative;
  z-index: 1;
}

.widgetly-page .container {
  max-width: 1080px;
}

.widgetly-hero,
.widgetly-story,
.widgetly-types,
.widgetly-faq,
.widgetly-cta,
.widgetly-footer {
  opacity: 0;
  animation: fadeIn 0.55s ease forwards;
}

.widgetly-hero { animation-delay: 0ms; }
.widgetly-story { animation-delay: 120ms; }
.widgetly-types { animation-delay: 240ms; }
.widgetly-faq { animation-delay: 360ms; }
.widgetly-cta { animation-delay: 480ms; }
.widgetly-footer { animation-delay: 560ms; }

.widgetly-hero {
  padding: calc(var(--unit) * 12) 0 calc(var(--unit) * 5);
}

.widgetly-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--widgetly-accent);
  margin-bottom: calc(var(--unit) * 2);
}

.widgetly-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 7.5vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin-bottom: calc(var(--unit) * 2);
}

.widgetly-title strong {
  color: var(--widgetly-accent);
  font-weight: 700;
}

.widgetly-lead {
  max-width: 64ch;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: calc(var(--unit) * 3);
}

.widgetly-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--unit) * 1.5);
  margin-bottom: calc(var(--unit) * 2);
}

.widgetly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: var(--bg-secondary);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.widgetly-btn:hover {
  transform: translateY(-2px);
  border-color: var(--widgetly-accent-dim);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  color: var(--text-primary);
}

.widgetly-btn-primary {
  gap: 8px;
  border-color: var(--widgetly-accent-dim);
  box-shadow: inset 0 0 0 1px var(--widgetly-accent-dim);
}

.widgetly-proof {
  color: var(--text-secondary);
  font-size: 13px;
}

.widgetly-shot-grid {
  margin-top: calc(var(--unit) * 5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--unit) * 2);
}

.widgetly-shot {
  background: var(--widgetly-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 92%;
  margin: 0 auto;
}

.widgetly-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.widgetly-shot figcaption {
  padding: calc(var(--unit) * 1.25);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.widgetly-story,
.widgetly-types,
.widgetly-faq,
.widgetly-cta {
  padding: calc(var(--unit) * 4) 0;
}

.widgetly-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: calc(var(--unit) * 2);
}

.widgetly-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: calc(var(--unit) * 1.5);
}

.widgetly-intro {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 66ch;
  margin-bottom: calc(var(--unit) * 3);
}

.widgetly-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--unit) * 2.5);
}

.widgetly-feature-card {
  background: var(--widgetly-surface-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 96%;
  margin: 0 auto;
}

.widgetly-feature-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.widgetly-feature-media img {
  display: block;
  width: 100%;
  height: auto;
}

.widgetly-feature-content {
  padding: calc(var(--unit) * 2.5);
}

.widgetly-feature-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: calc(var(--unit) * 1);
}

.widgetly-feature-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.widgetly-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--unit) * 2);
}

.widgetly-types-card {
  padding: calc(var(--unit) * 2.5);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.widgetly-types-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  margin-bottom: calc(var(--unit) * 1);
}

.widgetly-types-card ul {
  list-style: none;
  display: grid;
  gap: calc(var(--unit) * 0.75);
}

.widgetly-types-card li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.widgetly-types-card li::before {
  content: '• ';
  color: var(--widgetly-accent);
}

.widgetly-faq-list {
  display: grid;
  gap: calc(var(--unit) * 1.5);
}

.widgetly-faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: calc(var(--unit) * 2);
}

.widgetly-faq-item h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  margin-bottom: calc(var(--unit) * 0.75);
}

.widgetly-faq-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.widgetly-cta-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: calc(var(--unit) * 3);
  background: var(--widgetly-surface-strong);
}

.widgetly-cta-wrap p {
  color: var(--text-secondary);
  max-width: 60ch;
  font-size: 14px;
  margin-bottom: calc(var(--unit) * 2);
}

.widgetly-footer {
  padding: calc(var(--unit) * 5) 0 calc(var(--unit) * 9);
  border-top: 1px solid var(--border);
  margin-top: calc(var(--unit) * 5);
}

.widgetly-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--unit) * 2);
  justify-content: space-between;
  align-items: center;
}

.widgetly-footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
}

.widgetly-footer-links {
  display: flex;
  gap: calc(var(--unit) * 2);
}

.widgetly-footer-links a {
  font-size: 13px;
}

@media (max-width: 980px) {
  .widgetly-shot-grid {
    grid-template-columns: 1fr;
  }

  .widgetly-shot {
    width: 90%;
  }

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

  .widgetly-feature-card {
    width: 92%;
  }

  .widgetly-types-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .widgetly-hero {
    padding-top: calc(var(--unit) * 8);
  }

  .widgetly-title {
    font-size: clamp(36px, 13vw, 52px);
  }

  .widgetly-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .widgetly-btn {
    width: 100%;
  }

  .widgetly-h2 {
    font-size: clamp(25px, 8vw, 32px);
  }

  .widgetly-shot {
    width: 92%;
  }

  .widgetly-feature-card {
    width: 94%;
  }

  .widgetly-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .widgetly-hero,
  .widgetly-story,
  .widgetly-types,
  .widgetly-faq,
  .widgetly-cta,
  .widgetly-footer {
    opacity: 1;
    animation: none;
  }
}
