/* ============================================
   Woriq.online — Design System & Layout
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --primary-hover: #1d4ed8;
  --accent: #10b981;
  --accent-soft: #ecfdf5;
  --lavender: #8b5cf6;
  --lavender-soft: #f5f3ff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 41, 59, 0.1);
  --header-h: 72px;
  --font-heading: "General Sans", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-ui: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  color: var(--text-secondary);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, 720px);
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow,
.ui-label {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn--secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: #cbd5e1;
  background: var(--bg-alt);
}

.btn--ghost {
  color: var(--text-secondary);
  padding-inline: 0.75rem;
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn--lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
}

.btn--ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  transition: gap 0.2s var(--ease);
}

.text-link:hover {
  text-decoration: underline;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
}

.logo__text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo__tld {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav__list a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--text);
  background: var(--bg-alt);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__header.section__header--center,
.section__header {
  text-align: left;
}

.section__lead {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  max-width: 36rem;
}

/* Hero */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(37, 99, 235, 0.06), transparent),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(16, 185, 129, 0.05), transparent),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  max-width: 32rem;
}

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

.hero__trust {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero__trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #94a3b8;
}

/* Dashboard mockup */
.hero__preview {
  position: relative;
  min-height: 420px;
}

.dash {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dash-float 6s ease-in-out infinite;
}

@keyframes dash-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.dash__chrome {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.dash__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dash__dot:nth-child(1) {
  background: #f87171;
}
.dash__dot:nth-child(2) {
  background: #fbbf24;
}
.dash__dot:nth-child(3) {
  background: #34d399;
}

.dash__title {
  margin-left: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.dash__body {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 280px;
}

.dash__sidebar {
  padding: 0.75rem 0.5rem;
  border-right: 1px solid var(--border);
  background: #fcfcfd;
}

.dash__nav-item {
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.dash__nav-item.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.dash__main {
  padding: 0.875rem;
  overflow: hidden;
}

.dash__board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.dash__col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash__col-head span {
  background: var(--bg-alt);
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  font-size: 0.625rem;
}

.dash__card {
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  animation: card-in 0.6s var(--ease) both;
}

.dash__card:nth-child(2) {
  animation-delay: 0.1s;
}
.dash__card:nth-child(3) {
  animation-delay: 0.2s;
}
.dash__card:nth-child(4) {
  animation-delay: 0.3s;
}

.dash__card--accent {
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--primary-soft);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.875rem 1rem;
  box-shadow: var(--shadow-md);
  width: min(180px, 42%);
  animation: float-in 0.7s var(--ease) both;
}

.float-card .ui-label {
  margin-bottom: 0.5rem;
}

.float-card__text {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text);
}

.float-card--calendar {
  top: -12px;
  right: -8px;
  animation-delay: 0.3s;
}

.float-card--notes {
  bottom: 48px;
  left: -20px;
  animation-delay: 0.45s;
}

.float-card--activity {
  bottom: -16px;
  right: 24px;
  width: min(200px, 48%);
  animation-delay: 0.55s;
}

.float-card--timeline {
  top: 40%;
  right: -28px;
  animation-delay: 0.4s;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mini-cal__row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.mini-cal__row span {
  flex: 1;
  height: 18px;
  border-radius: 4px;
  background: var(--bg-alt);
}

.mini-cal__row span.is-busy {
  background: rgba(37, 99, 235, 0.2);
}

.mini-cal__row span.is-meet {
  background: rgba(16, 185, 129, 0.35);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text);
}

.av {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.av--blue {
  background: var(--primary);
}
.av--green {
  background: var(--accent);
}

.mini-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-timeline__bar {
  height: 8px;
  width: var(--w, 70%);
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.25);
}

.mini-timeline__bar--accent {
  background: rgba(16, 185, 129, 0.35);
}

.mini-timeline__bar--lav {
  background: rgba(139, 92, 246, 0.3);
}

/* Workspace templates */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.workspace-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s;
}

.workspace-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.workspace-card__preview {
  height: 120px;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.workspace-card__preview--marketing {
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
}
.workspace-card__preview--product {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
}
.workspace-card__preview--design {
  background: linear-gradient(145deg, #f5f3ff, #ede9fe);
}
.workspace-card__preview--hr {
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
}
.workspace-card__preview--sales {
  background: linear-gradient(145deg, #fef2f2, #fee2e2);
}
.workspace-card__preview--startup {
  background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
}

.wp-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  height: 100%;
}

.wp-board span {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  border: 1px solid rgba(30, 41, 59, 0.06);
  box-shadow: var(--shadow-sm);
}

.wp-board span::before,
.wp-board span::after {
  content: "";
  display: block;
  height: 6px;
  margin: 10px 8px;
  border-radius: 3px;
  background: rgba(30, 41, 59, 0.08);
}

.wp-board span::after {
  width: 60%;
  margin-top: 0;
}

.workspace-card__body {
  padding: 1.25rem;
}

.workspace-card__body h3 {
  margin-bottom: 0.375rem;
}

.workspace-card__body .ui-label {
  margin-bottom: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Feature columns */
.feature-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-col h3 {
  margin: 1.25rem 0 0.5rem;
}

.feature-col p {
  font-size: 0.9375rem;
}

.ui-preview {
  height: 160px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  content-visibility: auto;
}

.ui-preview--kanban .ui-preview__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  height: 100%;
}

.ui-preview__cols > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ui-preview__cols i {
  display: block;
  height: 28px;
  border-radius: 6px;
  background: #e2e8f0;
  font-style: normal;
}

.ui-preview__cols i.is-accent {
  background: rgba(37, 99, 235, 0.2);
}

.ui-preview__lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.ui-preview__lines span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  width: 100%;
}

.ui-preview__lines span.is-title {
  height: 12px;
  width: 55%;
  background: #cbd5e1;
  margin-bottom: 0.5rem;
}

.ui-preview__lines span.is-short {
  width: 70%;
}

.ui-preview__thread {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bubble {
  height: 28px;
  width: 70%;
  border-radius: 10px 10px 10px 4px;
  background: var(--primary-soft);
}

.bubble--reply {
  align-self: flex-end;
  width: 55%;
  background: var(--accent-soft);
  border-radius: 10px 10px 4px 10px;
}

.mention {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
  width: fit-content;
}

/* Workflow */
.workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.workflow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 110px;
  padding: 0.5rem;
  text-align: center;
  opacity: 0.4;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.workflow__step.is-active {
  opacity: 1;
  transform: translateY(-2px);
}

.workflow__step p {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  max-width: 7.5rem;
}

.workflow__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.workflow__step.is-active .workflow__icon {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.workflow__arrow {
  width: 40px;
  height: 24px;
  color: #cbd5e1;
  flex-shrink: 0;
}

.workflow__path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.workflow.is-animated .workflow__path {
  animation: draw-arrow 0.6s var(--ease) forwards;
}

.workflow.is-animated .workflow__arrow:nth-of-type(2) .workflow__path {
  animation-delay: 0.35s;
}
.workflow.is-animated .workflow__arrow:nth-of-type(4) .workflow__path {
  animation-delay: 0.7s;
}
.workflow.is-animated .workflow__arrow:nth-of-type(6) .workflow__path {
  animation-delay: 1.05s;
}
.workflow.is-animated .workflow__arrow:nth-of-type(8) .workflow__path {
  animation-delay: 1.4s;
}

@keyframes draw-arrow {
  to {
    stroke-dashoffset: 0;
    color: var(--primary);
  }
}

/* Integrations */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s;
  min-height: 140px;
}

.integration-card:hover,
.integration-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  outline: none;
}

.integration-card__logo {
  width: 48px;
  height: 48px;
  transition: transform 0.25s var(--ease);
}

.integration-card:hover .integration-card__logo {
  transform: scale(1.08);
}

.integration-card__logo svg {
  width: 48px;
  height: 48px;
}

.integration-card__name {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.integration-card__detail {
  display: none;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 14rem;
}

.integration-card:hover .integration-card__detail,
.integration-card:focus-visible .integration-card__detail,
.integration-card.is-open .integration-card__detail {
  display: block;
}

.integration-card:hover .integration-card__name,
.integration-card.is-open .integration-card__name {
  display: none;
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.insight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.25s var(--ease);
}

.insight-card:hover {
  box-shadow: var(--shadow-md);
}

.insight-card__value {
  margin: 0.75rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.insight-card__delta {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.insight-card__delta--up {
  color: var(--accent);
}

/* Stories */
.stories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease);
}

.story-card:hover {
  box-shadow: var(--shadow-md);
}

.story-card__media {
  position: relative;
  min-height: 220px;
}

.story-card__photo {
  height: 100%;
  min-height: 220px;
}

.story-card__photo--1 {
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.2)),
    repeating-linear-gradient(
      -12deg,
      #e2e8f0 0 12px,
      #f1f5f9 12px 24px
    );
}

.story-card__photo--2 {
  background:
    linear-gradient(200deg, rgba(139, 92, 246, 0.18), rgba(37, 99, 235, 0.15)),
    repeating-linear-gradient(
      18deg,
      #e2e8f0 0 14px,
      #f8fafc 14px 28px
    );
}

.story-card__logo {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
}

.story-card__content {
  padding: 1.75rem 2rem;
}

.story-card__content h3 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.story-card__content dl {
  display: grid;
  gap: 1rem;
}

.story-card__content dt {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.story-card__content dd {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.resource-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.resource-card .ui-label {
  color: var(--lavender);
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.resource-card p {
  font-size: 0.9375rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease);
}

.price-card:hover {
  box-shadow: var(--shadow-md);
}

.price-card--featured {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.price-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.25rem;
}

.price-card__price {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.price-card__price span {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.price-card__desc {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1;
}

.price-card__features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' fill='none' stroke='%2310B981' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.125rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.faq__question:hover {
  background: #fafbfc;
}

.faq__question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

.faq__icon::before {
  width: 12px;
  height: 2px;
  top: 9px;
  left: 4px;
}

.faq__icon::after {
  width: 2px;
  height: 12px;
  top: 4px;
  left: 9px;
}

.faq__question[aria-expanded="true"] .faq__icon::after {
  transform: rotate(90deg) scaleY(0);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
}

.faq__answer p {
  font-size: 0.9375rem;
  max-width: 40rem;
}

/* CTA */
.cta {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, var(--primary-soft) 0%, #dbeafe 100%);
}

.cta__inner {
  text-align: center;
  max-width: 640px;
}

.cta__inner h2 {
  margin-bottom: 0.875rem;
}

.cta__inner > p {
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 2rem 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  max-width: 220px;
}

.footer__col h3 {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}

.footer__copy {
  font-size: 0.8125rem;
}

.footer__legal,
.footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer__legal a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer__legal a:hover {
  color: var(--text);
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer__social a:hover {
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--primary-soft);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .dash,
  .float-card,
  .dash__card,
  .workflow__path {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__preview {
    max-width: 560px;
    margin-inline: auto;
  }

  .float-card--timeline,
  .float-card--calendar {
    right: 0;
  }

  .float-card--notes {
    left: 0;
  }

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

  .feature-cols,
  .insights-grid,
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .integrations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__list a {
    padding: 0.875rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .header__actions .btn--ghost {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

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

  .workflow {
    justify-content: flex-start;
    padding: 1.25rem;
  }

  .workflow__arrow {
    transform: rotate(90deg);
    width: 24px;
    margin: 0.25rem 0;
  }

  .workflow {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .workspace-grid,
  .feature-cols,
  .insights-grid,
  .resources-grid,
  .integrations-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .dash__sidebar {
    display: flex;
    gap: 0.25rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }

  .dash__nav-item {
    white-space: nowrap;
    margin-bottom: 0;
  }

  .float-card--timeline,
  .float-card--activity {
    display: none;
  }

  .hero__preview {
    min-height: 320px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
